Raised This Month: $32 Target: $400
 8% 

[request] L4D/L4D2: Time Limit Map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 04-10-2020 , 14:49   [request] L4D/L4D2: Time Limit Map
Reply With Quote #1

I wanted to request a plugin that works like this:

Plugin Description:
All survivors must get to the safe room before time runs out,
otherwise, the round will restart.

cvars:
Saved to l4d_time_limit_map.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:
// 0=Plugin off, 1=Plugin on.
// Default: "1"
// Minimum: "0"
// Maximum: "1"
l4d_time_limit_allow "1"

// Enable map timeout in the final.
// Default: "0"
// Minimum: "0"
// Maximum: "1"
l4d_time_limit_final "0"

// Map timeout begins when the safe room door opens.
// Default: "1"
// Minimum: "0"
// Maximum: "1"
l4d_time_limit_star_door "1"

// Map timeout in seconds.
// Default: "200"
// Minimum: "1"
// Maximum: "9999999999"
l4d_time_limit_map "200"

// Kill the survivors? 0=off, 1=all survivors, 2=kill those who didn't make it to the safe room.
// Default: "1"
// Minimum: "0"
// Maximum: "2"
l4d_time_limit_kill "1"

// Where is the time limit of the map shown? 0=off, 1=print to chat, 2=print hint text, 3=print center text. 
// Default: "3"
// Minimum: "0"
// Maximum: "3"
l4d_time_limit_print "3"

// Interval in seconds if l4d_time_limit_print is "1", this will prevent the chat from being saturated with messages.
// Default: "10"
// Minimum: "1"
// Maximum: "9999999999"
l4d_time_limit_chat_interval "10"

// Enable song when time is short (will reproduce: sound\music\the_end\skinonourteeth.wav)
// Default: "1"
// Minimum: "0"
// Maximum: "1"
l4d_time_limit_song "1" 
I am requesting this plugin because it is not in SourceMod.
This would come in handy on my server as many players are lagging behind or lazy.

I'm sorry, i don't speak english well
thanks
Tank Rush is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-10-2020 , 16:21   Re: [request] L4D/L4D2: Time Limit Map
Reply With Quote #2

Sure I could write this.

Quote:
Originally Posted by Tank Rush View Post
l4d_time_limit_start_door
Some maps don't have saferoom doors, so better start when the first person leaves the checkpoint area (with setting "1"). Otherwise "0" = from round_start I guess?

Quote:
Originally Posted by Tank Rush View Post
song when time is short
Instead of "1" to enable, how about making the value the number of seconds before time is up to start playing?

Quote:
Originally Posted by Tank Rush View Post
This would come in handy on my server as many players are lagging behind or lazy.
You could use Anti-Rush plugin to teleport slower players

Edit: sounds simple, until you start messing with checkpoints, figuring out which is saferoom (starting checkpoint triggers with multiple area values), when they left the starting checkpoint (event fires multiple times before/after round_start). This could be resolved simply by using Left4DHooks, but I doubt people would want that. Then some other bug, without even slaying them, survivors spawn dead and you're stuck forever with the round restarting over and over again, which makes no sense. If anyone wants to code to finish off PM me. I'm done trying.
__________________

Last edited by Silvers; 04-11-2020 at 05:03.
Silvers is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 04-10-2020 , 17:02   Re: [request] L4D/L4D2: Time Limit Map
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
Instead of "1" to enable, how about making the value the number of seconds before time is up to start playing?
good idea

Quote:
Originally Posted by Silvers View Post
You could use Anti-Rush plugin to teleport slower players
Ideally in this addon it would be to not teleport, as some players would believe that the teleported player is using cheats.
Tank Rush is offline
Reply


Thread Tools
Display Modes

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 16:32.


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