Also suppress attack3 in vgui screen mode

This commit is contained in:
Peter Covington 2023-08-02 16:48:00 -04:00
parent e304b1a90e
commit 146df3c961
No known key found for this signature in database
GPG Key ID: CE9E79A4A4BDE09B

View File

@ -1146,7 +1146,8 @@ void C_BasePlayer::DetermineVguiInputMode( CUserCmd *pCmd )
// Kill all attack inputs if we're in vgui screen mode
pCmd->buttons &= ~(IN_ATTACK | IN_ATTACK2);
#ifdef MAPBASE
pCmd->buttons = (pCmd->buttons & ~IN_USE) | IN_VGUIMODE;
pCmd->buttons &= ~(IN_USE | IN_ATTACK3);
pCmd->buttons |= IN_VGUIMODE;
#endif // MAPBASE
return;
}
@ -1213,7 +1214,8 @@ void C_BasePlayer::DetermineVguiInputMode( CUserCmd *pCmd )
// Kill all attack inputs if we're in vgui screen mode
pCmd->buttons &= ~(IN_ATTACK | IN_ATTACK2);
#ifdef MAPBASE
pCmd->buttons = (pCmd->buttons & ~IN_USE) | IN_VGUIMODE;
pCmd->buttons &= ~(IN_USE | IN_ATTACK3);
pCmd->buttons |= IN_VGUIMODE;
#endif // MAPBASE
}
}