mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-16 03:17:18 +00:00
Unrestricted movement when noclipping.
This commit is contained in:
parent
10f4cd2c2e
commit
8a98fe96b9
@ -1973,10 +1973,9 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
|
||||
#endif
|
||||
|
||||
MoveType mtMoveType = GetEntityMoveType(client);
|
||||
bool bOnLadder = (mtMoveType == MOVETYPE_LADDER);
|
||||
|
||||
// key blocking
|
||||
if(!bOnLadder && !Shavit_InsideZone(client, Zone_Freestyle, -1))
|
||||
if(mtMoveType != MOVETYPE_NOCLIP && mtMoveType != MOVETYPE_LADDER && !Shavit_InsideZone(client, Zone_Freestyle, -1))
|
||||
{
|
||||
// block E
|
||||
if(gA_StyleSettings[gI_Style[client]][bBlockUse] && (buttons & IN_USE) > 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user