Exemplo n.º 1
0
        private static void OnActorBeginPlay(IntPtr address)
        {
            UObject obj = GCHelper.Find(address);

            ActorBeginPlayDel_ThisCall original = actorBeginPlay.GetOriginal <ActorBeginPlayDel_ThisCall>(obj);

            original(address);
            //Native_VTableHacks.CallOriginal_ActorBeginPlay(original, address);

            obj.BeginPlayInternal();
        }
Exemplo n.º 2
0
        private static void OnActorBeginPlay(IntPtr address)
        {
            try
            {
                UObject obj = GCHelper.Find(address);

                ActorBeginPlayDel_ThisCall original = actorBeginPlay.GetOriginal <ActorBeginPlayDel_ThisCall>(obj);
                original(address);
                //Native_VTableHacks.CallOriginal_ActorBeginPlay(original, address);

                obj.BeginPlayInternal();
            }
            catch (Exception e)
            {
                LogCallbackException(nameof(OnActorBeginPlay), e);
            }
        }