Skip to content

Commit

Permalink
add backwards check for sync (#1194)
Browse files Browse the repository at this point in the history
* add backwards check for sync

* Update shavit-core.sp

now it works
  • Loading branch information
Nairdaa authored Mar 12, 2024
1 parent c2dbf6d commit 388f561
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions addons/sourcemod/scripting/shavit-core.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 388f561

Please sign in to comment.