Skip to content

Commit

Permalink
Update shavit-core.sp
Browse files Browse the repository at this point in the history
add backwards hsw sync
  • Loading branch information
Nairdaa authored and rtldg committed Mar 12, 2024
1 parent d57ec73 commit c2dbf6d
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 @@ -3732,6 +3732,17 @@ void TestAngles(int client, float dirangle, float yawdelta, const float vel[3])
}
}

// backwards hsw
else if((dirangle > 112.5 && dirangle < 157.5) || (dirangle > 202.5 && dirangle < 247.5))
{
gA_Timers[client].iTotalMeasures++;

if((yawdelta != 0.0) && (vel[0] >= 100.0 || vel[1] >= 100.0) && (vel[0] >= -100.0 || vel[1] >= -100.0))
{
gA_Timers[client].iGoodGains++;
}
}

// sw
else if((dirangle > 67.5 && dirangle < 112.5) || (dirangle > 247.5 && dirangle < 292.5))
{
Expand Down

0 comments on commit c2dbf6d

Please sign in to comment.