Raised This Month: $ Target: $400
 0% 

[L4D2] Change spawn timer for winning team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SGG
Member
Join Date: Feb 2012
Old 03-14-2012 , 03:27   [L4D2] Change spawn timer for winning team
Reply With Quote #1

So I went looking through the forums for something like this but could not find one.

Basically I am after a mod that, at the start of a map, looks at the current versus scores, and then depending on the difference, increases infected spawn timers for the leading team by x according to how far ahead they are (compared to map start).

I've looked at learning it myself, and would eventually figure it out (I hope), and found the events game_newmap and versus_round_start which would be used get the scores and then apply the spawn timer difference, but for a first time mod, well, I have no chance.

If no one wants to make it, just even pointing me in the right direction of how to get the versus scores would be a blessing.

You could even get it to do more than just spawn timers, such as infected HP increase when the winning team is survivors, etc.

Last edited by SGG; 03-14-2012 at 03:34.
SGG is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-14-2012 , 10:17   Re: [L4D2] Change spawn timer for winning team
Reply With Quote #2

I don't know about changing the spawn time, but you could easily freeze the player for n seconds on spawn. And adjusting the player HP is easy too.

To get the team scores, use GetTeamScore, although I'm not sure if that works for L4D2 as I only write plugins for CS:S and recently TF2.
__________________
View my Plugins | Donate
TnTSCS 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 04:25.


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