[L4D2] Pause
1 Attachment(s)
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* Version 0.2.0: -Chat is now forced to display during pause* Version 0.1.1: -Fixed typo* Version 0.1.0: -Initial Release |
Re: [L4D2] Pause
sounds cool!
i'd like to see screenies pls! |
Re: [L4D2] Pause
Go ingame and hit F5 at any given moment.
|
Re: [L4D2] Pause
Taking a screenshot of it would be no different then any other screenshot with the exception of a paused message being in the middle of the screen.
Made a few changes. See first post for download. Quote:
-Fix problem with people sometimes not being able to chat while game is paused |
Re: [L4D2] Pause
Works :up: but yeah, chat doesn't work sometimes when it's paused.
|
Re: [L4D2] Pause
It says me that only and admin can pause the game in coop.
How can I get admin privileges? (Itīs a LAN, me and my brother) |
Re: [L4D2] Pause
You need to add yourself as a sourcemod admin with the ban flag set. See http://wiki.alliedmods.net/Adding_Ad...28SourceMod%29 for information on how to do that. Once you have done that you have to use the !forcepause command for coop games.
Added a few more changes. See first post for download. Quote:
|
Re: [L4D2] Pause
Looks a lot like the pausing in Frustian's competitive plugin except you use 'setpause' instead of manual pausing? Even the forcepause and everything is there.
Source of inspiration? |
Re: [L4D2] Pause
Yea, I used Frustian's plugin on my server in L4D1. One of the first things my friends asked me when we started playing L4D2 was if we could pause the game. So as soon as sourcemod for L4D2 went public I decided to see about using the built in pause function as the core of a pause plugin. This was so even time sensitive things like scavenge matches are paused without error.
I went with similar commands to keep things simple and familiar to players. Frustian's plugin is definitely what triggered me to make this plugin. I'm actually hoping to have it trigger like any other vote in the future, except maybe only one check mark per team in the vote box, or even a vote similar to how the "Rematch" votes work in L4D2 now. Of course, it would still require a command to start the vote, but once started players would be able to simply hit F1/F2 to vote on it. |
Re: [L4D2] Pause
Chat is still missing sometimes, but overall it works.
|
All times are GMT -4. The time now is 18:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.