add backwards check for sync (#1194)

* add backwards check for sync

* Update shavit-core.sp

now it works
This commit is contained in:
Nairda 2024-03-12 13:57:49 +01:00 committed by GitHub
parent c2dbf6d779
commit 388f561f58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)