make block_pstrafe do nothing when autostrafe is enabled

This commit is contained in:
rtldg 2022-01-15 11:34:10 +00:00
parent 6c88f45ba0
commit 4167001b5c

View File

@ -3056,6 +3056,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
// +strafe block
if (GetStyleSettingInt(gA_Timers[client].bsStyle, "block_pstrafe") > 0 &&
!GetStyleSettingBool(gA_Timers[client].bsStyle, "autostrafe") &&
((vel[0] > 0.0 && (buttons & IN_FORWARD) == 0) || (vel[0] < 0.0 && (buttons & IN_BACK) == 0) ||
(vel[1] > 0.0 && (buttons & IN_MOVERIGHT) == 0) || (vel[1] < 0.0 && (buttons & IN_MOVELEFT) == 0)))
{