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

            IntPtr original = actorEndPlay.GetOriginal(obj);

            Native_VTableHacks.CallOriginal_ActorEndPlay(original, address, endPlayReason);

            obj.EndPlayInternal(endPlayReason);
        }
Exemplo n.º 2
0
        private static void OnActorComponentEndPlay(IntPtr address, byte endPlayReason)
        {
            UObject obj = GCHelper.Find(address);

            ActorComponentEndPlayDel_ThisCall original = actorComponentEndPlay.GetOriginal <ActorComponentEndPlayDel_ThisCall>(obj);

            original(address, endPlayReason);
            //Native_VTableHacks.CallOriginal_ActorComponentEndPlay(original,

            obj.EndPlayInternal(endPlayReason);
        }
Exemplo n.º 3
0
 private static void OnActorComponentEndPlay(IntPtr address, byte endPlayReason)
 {
     try
     {
         UObject obj = GCHelper.Find(address);
         obj.EndPlayInternal(endPlayReason);
     }
     catch (Exception e)
     {
         LogCallbackException(nameof(OnActorComponentEndPlay), e);
     }
 }
Exemplo n.º 4
0
        private static void OnActorComponentEndPlay(IntPtr address, byte endPlayReason)
        {
            try
            {
                UObject obj = GCHelper.Find(address);

                ActorComponentEndPlayDel_ThisCall original = actorComponentEndPlay.GetOriginal <ActorComponentEndPlayDel_ThisCall>(obj);
                original(address, endPlayReason);
                //Native_VTableHacks.CallOriginal_ActorComponentEndPlay(original,

                obj.EndPlayInternal(endPlayReason);
            }
            catch (Exception e)
            {
                LogCallbackException(nameof(OnActorComponentEndPlay), e);
            }
        }