mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
add backwards check for sync (#1194)
* add backwards check for sync * Update shavit-core.sp now it works
This commit is contained in:
parent
c2dbf6d779
commit
388f561f58
@ -3753,6 +3753,17 @@ void TestAngles(int client, float dirangle, float yawdelta, const float vel[3])
|
||||
gA_Timers[client].iGoodGains++;
|
||||
}
|
||||
}
|
||||
|
||||
// backwards
|
||||
else if(dirangle > 157.5 || dirangle < 202.5)
|
||||
{
|
||||
gA_Timers[client].iTotalMeasures++;
|
||||
|
||||
if((yawdelta > 0.0 && vel[1] <= -100.0) || (yawdelta < 0.0 && vel[1] >= 100.0))
|
||||
{
|
||||
gA_Timers[client].iGoodGains++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void StopTimer_Cheat(int client, const char[] message)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user