Let player move while inside Pause zone

Let player move while inside Pause zone
This commit is contained in:
haooy 2025-08-28 11:35:48 +02:00 committed by GitHub
parent bcf623e588
commit 183faae643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3353,7 +3353,9 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
int flags = GetEntityFlags(client);
if (gA_Timers[client].bClientPaused && IsPlayerAlive(client) && !gCV_PauseMovement.BoolValue)
int track = Shavit_GetClientTrack(client);
if (gA_Timers[client].bClientPaused && IsPlayerAlive(client) && !gCV_PauseMovement.BoolValue && !Shavit_InsideZone(client, Zone_Pause, track))
{
buttons = 0;
vel = view_as<float>({0.0, 0.0, 0.0});