Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Update core.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Makk5 authored Jan 10, 2021
1 parent 13994ac commit cda178a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core.h
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,14 @@ namespace Core
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)ProcessEvent, ProcessEventHook);
DetourAttach(&(PVOID&)PlayEmoteItemInternal, PlayEmoteItemHook);

if (UE4::PlayEmoteItemInternalAddr)
{
PlayEmoteItemInternal = (fPlayEmoteItemInternal)(UE4::PlayEmoteItemInternalAddr);
DetourAttach(&(PVOID&)PlayEmoteItemInternal, PlayEmoteItemHook);
}
else
DEBUG_LOG("PlayEmoteItem address is null, emoting will no longer work.");

if (UE4::CrouchAddr)
{
Expand Down

0 comments on commit cda178a

Please sign in to comment.