mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
Merge pull request #39 from OfficialExtan/fix-noclip-abuse
Fix Noclip Abuse
This commit is contained in:
commit
ccd15110b0
@ -277,7 +277,7 @@ public Action OnPlayerRunCmd(int client, int &buttons)
|
||||
float fSpeed[3];
|
||||
GetEntPropVector(client, Prop_Data, "m_vecVelocity", fSpeed);
|
||||
|
||||
float fSpeed_New = SquareRoot(Pow(fSpeed[0], 2.0) + Pow(fSpeed[1], 2.0));
|
||||
float fSpeed_New = SquareRoot(Pow(fSpeed[0], 2.0) + Pow(fSpeed[1], 2.0) + Pow(fSpeed[2], 2.0)); //edited
|
||||
float fScale = gCV_PrespeedLimit.FloatValue / fSpeed_New;
|
||||
|
||||
if(fScale < 1.0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user