Allows teams to pause the game when agreed on, and allows admins with ban permission to force the game to pause.
This plugin uses the built in pause function. This causes everything in the game to pause. Players that disconnected and reconnect during the pause will be met with a black screen, but they are still in the game and will be normal once the game is unpaused.
Co-op games can only be paused by an admin, and versus/scavenger games require one person from each team to type !pause.
I haven't tested this extensively, but so far it seems to work great. Any feedback would be appreciated. It should also work in L4D1, but that is completely untested. Don't know about other games or not, but I think at least !forcepause should work for some.
!pause (sm_pause) - Used to send a pause request to the other team. Once the other teams accepts the game will be paused.
!unpause (sm_unpause) - Used to unpause a game that was paused with !pause.
!forcepause (sm_forcepause) - Used by admins to force the game to pause and unpause.
l4d2pause_version - Plugin version
l4d2pause_timeout (30.0) - The amount of time it takes an unaccepted pause request to expire. Setting to 0 causes them to never expire.
l4d2pause_alltalk (0) - Set to 1 to enable alltalk while the game is paused.
l4d2pause_forceonly (0) - Set to 1 to only allow the !forcepause command to be used. This makes pausing the game admin only.
* Version 0.2.1:
-Fixed some more chat that didn't show
-Added option for only allowing the !forcepause command
* Version 0.2.0:
-Chat is now forced to display during pause
-Added option for enabling alltalk while game is paused
-Added cvar to configure how long a pause request takes to timeout
* Version 0.1.1:
-Added a timeout for pause requests
-Pause requests now get reset when map ends
* Version 0.1.0: