Files
Amalgam/Amalgam/src/Hooks/CPrediction_RunCommand.cpp
T
2024-10-29 11:30:24 -04:00

11 lines
400 B
C++

#include "../SDK/SDK.h"
#include "../Features/EnginePrediction/EnginePrediction.h"
MAKE_HOOK(CPrediction_RunCommand, U::Memory.GetVFunc(I::Prediction, 17), void, __fastcall,
void* rcx, CTFPlayer* pPlayer, CUserCmd* pCmd, IMoveHelper* pMoveHelper)
{
F::EnginePrediction.ScalePlayers(H::Entities.GetLocal());
CALL_ORIGINAL(rcx, pPlayer, pCmd, pMoveHelper);
F::EnginePrediction.RestorePlayers();
}