mirror of
https://github.com/rei-2/Amalgam
synced 2026-10-10 21:03:09 +08:00
11 lines
400 B
C++
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();
|
|
} |