Raised This Month: $ Target: $400
 0% 

[L4D] Pause Game Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ArchNemesis
Junior Member
Join Date: Apr 2009
Old 07-13-2009 , 15:06   [L4D] Pause Game Plugin
Reply With Quote #1

would it be possible to make a plugin that pauses a L4D game in progress?

some problems may come up throughout the game that needs the game to be
"paused" . such as

(i.e. 1 survivor lags out, the rest of the team says wait don't attack, a new
infected connects in and doesn't know the survivors are waiting for the lagged out survivor to come back and attacks them. and the survivors become *rawr* >:[)
ArchNemesis is offline
cerious
New Member
Join Date: Jul 2009
Old 07-13-2009 , 15:28   Re: [L4D] Pause Game Plugin
Reply With Quote #2

Not sure if it works in L4D, but there is a command in TF2 called 'pause'. Set your server to sv_pausable 1, and then any player can type 'pause' in console to pause the command. You might need another plugin to block non-admins from using it.
cerious is offline
ArchNemesis
Junior Member
Join Date: Apr 2009
Old 07-14-2009 , 00:08   Re: [L4D] Pause Game Plugin
Reply With Quote #3

maybe it can be apart of the sourcemod admin , giving admins a simple command to pause the server or game >
ArchNemesis is offline
Apfrank2008
Junior Member
Join Date: Jul 2009
Old 07-31-2009 , 00:24   Re: [L4D] Pause Game Plugin
Reply With Quote #4

Bump!!! I also myself NEED THIS!!! I cost my team the game during a scrim today because my pc crashed during tank spawn.
Apfrank2008 is offline
uriel18
Senior Member
Join Date: Apr 2009
Old 08-10-2009 , 11:22   Re: [L4D] Pause Game Plugin
Reply With Quote #5

I second this motion.
Is not only for pause terms, think in clan versus battles it maybe be useful, like a time-out.

And the commands sv_pausable 1 and pause doesnīt work.
__________________
uriel18 is offline
EpicFailGames
Member
Join Date: Jun 2009
Old 08-10-2009 , 11:57   Re: [L4D] Pause Game Plugin
Reply With Quote #6

I was in a server just last night, where the server was paused.

I don't remember the cvar or command info displayed in chat, but I know it exists.
__________________
EpicFailGames is offline
uriel18
Senior Member
Join Date: Apr 2009
Old 08-10-2009 , 12:05   Re: [L4D] Pause Game Plugin
Reply With Quote #7

Quote:
Originally Posted by EpicFailGames View Post
I was in a server just last night, where the server was paused.

I don't remember the cvar or command info displayed in chat, but I know it exists.
Well, i supposed a cvar must exists, but the question is which?

You can start a lan server for example, set it to sv_pausable 1, and type pause. Nothing happens.
__________________
uriel18 is offline
guilty80100
Member
Join Date: Jul 2009
Old 08-11-2009 , 05:00   Re: [L4D] Pause Game Plugin
Reply With Quote #8

pause.cfg

sm_cvar z_frustration 0
sm_cvar director_stop 1
sm_freeze @all 1000
sm_cvar god 1
sm_cvar sb_stop 1
say "> Pause <"
echo "> Pause <"

-----------------------
unpause.cfg

sm_cvar z_frustration 1
sm_cvar director_stop 0
sm_freeze @all 0
sm_cvar god 0
sm_cvar sb_stop 0

say "> Pause end <"
echo "> Pause end <"

--------------------------
to bind a cmd:
it's the beggining of the code i can't help you much i'm noob @scripting

public OnPluginStart()
{
RegConsoleCmd("pause", to_pause)
RegConsoleCmd("unpause", to_unpause)
}

--------------------------------------

they're is some problem with that :
- if survivor are hanging during the pause, when unpause they will fall
- infected aren't invincible, god 1 doesn't afect infected team

good points :
- witch will be still here after pause/unpause
- tank don't loose control (z_frustration 0)
-even if an infected is in ghostmod he will be frozen and if he try to spawn for being unstuck he will be frozen instantly
guilty80100 is offline
uriel18
Senior Member
Join Date: Apr 2009
Old 08-12-2009 , 11:24   Re: [L4D] Pause Game Plugin
Reply With Quote #9

Thanks Guilty, you are a crack!!

I have tested the cfgs, and only a problem.

In coop mode on a LAN. Normal infecteds can still move, at least they canīt do damage because survivors are inmune.
But the director still makes appears specials infectes and these specials can move at his pleasure.
And other bad thing i saw was if you pause and unpause in Coop mode a few times. Survivors bots stay stopped and donīt move anymore.

What do you think we can do to solve this?

Thanks in advance, youīre helping us a lot.
__________________

Last edited by uriel18; 08-12-2009 at 11:48.
uriel18 is offline
guilty80100
Member
Join Date: Jul 2009
Old 08-12-2009 , 22:38   Re: [L4D] Pause Game Plugin
Reply With Quote #10

pause_coop.cfg

sm_cvar survivor_speed 0 //survivor_speed 210 to back to normal
sm_cvar survivor_crawl_speed 0 //survivor_crawl_speed 15 to back to normal
sm_cvar survivor_crouch_speed 0 //survivor_crouch_speed 75 to back to normal
sm_cvar survivor_walk_speed 0 // survivor_walk_speed 85 to back to normal
sm_cvar director_no_bosses 0 // director_no_bosses 1 to back to normal
sm_cvar director_no_specials 0 // director_no_specials 1 to back to normal
sm_cvar z_tank_speed 0 // z_tank_speed 210 to back to normal
sm_cvar z_tank_walk_speed // z_tank_walk_speed 100 to back to normal
sm_cvar z_witch_speed 0 // z_witch_speed 300 to back to normal
sm_cvar z_witch_speed_inured 0 // z_witch_speed_inured 200 to back to normal
sm_cvar hunter_pounce_air_speed 0 // hunter_pounce_air_speed 700 to back to normal
sm_cvar tongue_range 0 // tongue_range 750 to back to normal
sm_cvar bot_freeze 1 // bot_freeze 0 to back to normal
sm_cvar god 1 // god 0 to back to normal
sm_cvar sb_stop 1 // sb_stop 0 to back to normal
sm_freeze @all 1000 // sm_freeze @all 0 to back to normal
sm_cvar z_allow_ai_to_use_abilities 0 // z_allow_ai_to_use_abilities 1 to back to normal

say "> Pause <"
echo "> Pause <"

------------------------------------------------------------------
unpause_coop.cfg

sm_cvar survivor_speed 210
sm_cvar survivor_crawl_speed 15
sm_cvar survivor_crouch_speed 75
sm_cvar survivor_walk_speed 85
sm_cvar director_no_bosses 1
sm_cvar director_no_specials 1
sm_cvar z_tank_speed 210
sm_cvar z_tank_walk_speed 100
sm_cvar z_witch_speed 300
sm_cvar z_witch_speed_inured 200
sm_cvar hunter_pounce_air_speed 700
sm_cvar tongue_range 750
sm_cvar bot_freeze 0
sm_cvar god 0
sm_freeze @all 0
sm_cvar z_allow_ai_to_use_abilities 1
sm_cvar sb_stop 0

say "> Unpause <"
echo "> Unpause <"

----------------------------------------
i don't find a way to stop common, because z_speed is on effect with next spawn common not actual spawned. but no body move execpt common, one bug, if you are near the tank when pausing he will continue to attack and to put you in the air so when unpause you'll fly like a bird ^^, i can't help you anymore i search in cvarlist but no command to stop common or to stop tank attack if nearby you
guilty80100 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:23.


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