BulletTracers.cpp: Use cmd viewangles instead

Adds support for aimbot
This commit is contained in:
TotallyNotElite 2019-10-13 17:12:53 +02:00
parent 7209a2d1fa
commit ed115d3a33

View File

@ -164,7 +164,7 @@ IClientEntity *GetActiveTFWeapon_detour(IClientEntity *this_ /* C_TFPlayer * */)
QAngle angle = *(QAngle *) &NET_VECTOR(this_, netvar.angEyeAngles);
if (isLocal)
{
g_IEngine->GetViewAngles(angle);
angle = VectorToQAngle(current_user_cmd->viewangles);
eyePos = g_pLocalPlayer->v_Eye;
}
Vector forward;