Skip to content

Commit 183faae

Browse files
authored
Let player move while inside Pause zone
Let player move while inside Pause zone
1 parent bcf623e commit 183faae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/sourcemod/scripting/shavit-core.sp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3353,7 +3353,9 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
33533353

33543354
int flags = GetEntityFlags(client);
33553355

3356-
if (gA_Timers[client].bClientPaused && IsPlayerAlive(client) && !gCV_PauseMovement.BoolValue)
3356+
int track = Shavit_GetClientTrack(client);
3357+
3358+
if (gA_Timers[client].bClientPaused && IsPlayerAlive(client) && !gCV_PauseMovement.BoolValue && !Shavit_InsideZone(client, Zone_Pause, track))
33573359
{
33583360
buttons = 0;
33593361
vel = view_as<float>({0.0, 0.0, 0.0});

0 commit comments

Comments
 (0)