Raised This Month: $ Target: $400
 0% 

[L4D2][Idea] Random Prop Spawn - Collect for team points?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 03-09-2010 , 20:40   [L4D2][Idea] Random Prop Spawn - Collect for team points?
Reply With Quote #1

I was thinking about a neat idea around giving some teams some extra bonus points for exploring. I hate it when a team just runs through a map avoiding everything just to get an inch further than the other team and win.

If it's possible to add bonus points to the team scores, then maybe we can hide the gnome (or something else special) around the maps. If a player picks up the prop it disappears and the team is awarded X points. One thing I guess we would have to do is have a config file where we outline the maps and where the props are hidden. Then on round_start, the map randomly chooses 1-X (if any!!) of the spots and spawns the props.

Thoughts about this idea?
Thraka is offline
triggerman
Senior Member
Join Date: Jun 2009
Old 03-10-2010 , 00:33   Re: [L4D2][Idea] Random Prop Spawn - Collect for team points?
Reply With Quote #2

sounds like a cool idea. the scavenge remix plugin does an awesome job of random prop spawning. you should take a look at what he did for placing these items.
__________________
triggerman is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 03-15-2010 , 20:41   Re: [L4D2][Idea] Random Prop Spawn - Collect for team points?
Reply With Quote #3

Yeah I know, I thought about that and that is what made me think this may be possible.

The only thing I don't know about is adding scores to the teams.
Thraka is offline
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 03-15-2010 , 21:56   Re: [L4D2][Idea] Random Prop Spawn - Collect for team points?
Reply With Quote #4

Use Left 4 Downtown and this forward:
PHP Code:
/** 
 * @brief Called whenever CTerrorGameRules::SetCampaignScores(int,int) is invoked 
 * @remarks The campaign scores are updated after the 2nd round is completed 
 *  
 * @param scoreA  score of logical team A 
 * @param scoreB  score of logical team B 
 * @return         Pl_Handled to block campaign scores from being set, Pl_Continue otherwise. 
 */ 
forward Action:L4D_OnSetCampaignScores(&scoreA, &scoreB); 
It would look like something like this:
PHP Code:
public Action:L4D_OnSetCampaignScores(&scoreA, &scoreB)
{
if (
firsthalf()) scoreA += 100 collecteditems;
else 
scoreB += 100 collecteditems;

__________________
DieTeetasse 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 03:57.


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