Thread: [L4D2] Pause
View Single Post
Author Message
pvtschlag
Member
Join Date: Nov 2009
Old 11-23-2009 , 22:10   [L4D2] Pause
Reply With Quote #1

Description:
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.

Commands:
!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.

CVars:
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.

Changelog:
* 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:
-Fixed typo
-Added a timeout for pause requests
-Pause requests now get reset when map ends
* Version 0.1.0:
-Initial Release
Attached Files
File Type: sp Get Plugin or Get Source (l4d2pause.sp - 9914 views - 13.8 KB)

Last edited by pvtschlag; 11-25-2009 at 21:03.
pvtschlag is offline