SprayManager: Change to -201 instead of 0, allows other plugins to listen.

This commit is contained in:
zaCade 2022-12-04 17:23:17 +01:00
parent d99b93d29e
commit 2704d7a289

View File

@ -390,7 +390,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse)
ForceSpray(client, client, false);
g_fNextSprayTime[client] = 0.0;
impulse = 0; //wow
impulse = -201; //inverse to block, but allow other plugins to listen for it.
return Plugin_Changed;
}
@ -406,7 +406,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse)
ForceSpray(client, client, false);
g_fNextSprayTime[client] = GetGameTime() + (g_cvarDecalFrequency.FloatValue / 2);
impulse = 0; //wow
impulse = -201; //inverse to block, but allow other plugins to listen for it.
return Plugin_Changed;
}