hsw shouldn't track strafes on w

This commit is contained in:
rtldg 2022-01-10 19:41:18 +00:00
parent ec881bbae5
commit 573e97e9dc
2 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,7 @@
"force_hsw" "1"
"strafe_count_w" "1"
"strafe_count_w" "0"
"strafe_count_a" "1"
"strafe_count_s" "0"
"strafe_count_d" "1"

View File

@ -3321,6 +3321,7 @@ public void OnPlayerRunCmdPost(int client, int buttons, int impulse, const float
if (GetStyleSettingBool(gA_Timers[client].bsStyle, "strafe_count_w")
&& !GetStyleSettingBool(gA_Timers[client].bsStyle, "block_w")
&& (gA_Timers[client].fLastInputVel[0] <= 0.0) && (vel[0] > 0.0)
&& GetStyleSettingInt(gA_Timers[client].bsStyle, "force_hsw") != 1
)
{
gA_Timers[client].iStrafes++;