Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified addons/sourcemod/plugins/optional/pause.smx
Binary file not shown.
10 changes: 10 additions & 0 deletions addons/sourcemod/scripting/pause.sp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ void FindServerNamer()
// ======================================
// Forwards
// ======================================
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
{
if (isPaused && (buttons & IN_ATTACK) && GetClientTeam(client) == L4D2Team_Infected && IsInfectedGhost(client))
{
buttons &= ~IN_ATTACK;
return Plugin_Changed;
}
return Plugin_Continue;
}

public void OnClientPutInServer(int client)
{
if (isPaused)
Expand Down
Loading