AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any?] Pause the Game (https://forums.alliedmods.net/showthread.php?t=263461)

ddhoward 05-26-2015 01:38

[Any?] Pause the Game
 
[TF2/Any?] Pause the Game
v. 18.0114.0

This plugin facilitates the simple function of pausing and unpausing the game. This requires the cvar sv_pausable to be set to 1. If this cvar is set to a non-true value, this plugin will not function.

Normally, all players have access to the "pause", "setpause", and "unpause" commands on servers where sv_pausable is enabled. This plugin restricts usage of the commands to only players who have access to the override sm_pause. sm_pause is itself a command that can be used to quickly pause/unpause the game from the chatbox. Further, this plugin allows the pause and sm_pause commands to be used by the server console, which is normally not possible.

It is not necessary to override "pause", "unpause", "setpause", "sm_unpause" or "sm_setpause". Overriding only sm_pause will function as if you are overriding all these commands.


Changelog:
Spoiler




The plugin requires custom includes. Includes required to compile the plugin are:The Updater plugin does NOT need to be installed for this plugin to function. If you do have Updater installed, integration with this plugin is controlled by the cvar sm_pause_update. Information on this cvar can be found in the ddhoward_updater include.



DOWNLOADS:
If you like what you see here, please consider donating~
http://www.paypalobjects.com/en_US/i..._donate_SM.gif

ddhoward 05-26-2015 01:39

Re: [TF2/Any?] Pause the Game
 
This plugin has only been tested with TF2. I would appreciate feedback, and any tips on making the game fully compatible with other games.

ddhoward 05-26-2015 01:40

Re: [TF2/Any?] Pause the Game
 
reserved

Chdata 05-26-2015 09:07

Re: [TF2/Any?] Pause the Game
 
What exactly does pausing do in multiplayer servers?

Does it just pause everyone in the server if one person pauses?

painn 05-26-2015 10:32

Re: [TF2/Any?] Pause the Game
 
tf2 work thks !

ddhoward 05-26-2015 11:18

Re: [TF2/Any?] Pause the Game
 
Quote:

Originally Posted by Chdata (Post 2301199)
What exactly does pausing do in multiplayer servers?

Does it just pause everyone in the server if one person pauses?

Yes. Players are unable to move or even adjust their eyeangles. They also cannot fire weapons, although there's weirdness with prediction on the client-side. On servers with pause enabled, unless AddCommandListener is used to restrict usage of the command to only admins, then EVERYONE can pause/unpause the game for EVERYONE.

If a client has cl_showpausedimage set to 1, then he/she will see a "PAUSED" overlay when the game is paused.

ddhoward 06-30-2015 02:47

Re: [TF2/Any?] Pause the Game
 
Updated to 15.0629. Minor improvements. If the cvar sv_pausable can't be found, then the plugin won't do anything. If sv_pausable is found, but AddCommandListener is not supported, then the plugin will set sv_pausable to 0 before proceeding to not do anything.

Horsedick 07-18-2015 14:26

Re: [TF2/Any?] Pause the Game
 
Can you add cvar to not require updater? I don't use it and this is throwing back at me.

Quote:

[SM] Unable to load plugin "pause.smx": Could not find required plugin "updater"

ddhoward 07-18-2015 16:05

Re: [TF2/Any?] Pause the Game
 
It should not require updater at all, ever. No cvar will be added, as this is a bug, and will be fixed as soon as I get home.

Horsedick 07-20-2015 20:58

Re: [TF2/Any?] Pause the Game
 
Quote:

Originally Posted by ddhoward (Post 2321346)
It should not require updater at all, ever. No cvar will be added, as this is a bug, and will be fixed as soon as I get home.

Ok great thanks


All times are GMT -4. The time now is 11:02.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.