limiting prop_physics_respawnable with math counter

limiting prop_physics_respawnable with math counter

Re: limiting prop_physics_respawnable with math counter Posted by TheSchwartz on Mon Jan 3rd 2005 at 1:16pm
TheSchwartz
30 posts
Posted 2005-01-03 1:16pm
30 posts 63 snarkmarks Registered: Dec 7th 2004 Occupation: Project Lead Process Improvement Location: Denmark
Anyone got any ideas on how to limit the number of spawned oilbarrels using a math_counter, template like construciont like the one used in dm_lockeddown dm map - I am trying to figures this out, any hint to a sdk documentation or a tutorial is OK.

I just ned somewhere to go to start reading and understanding the intent of this...
Re: limiting prop_physics_respawnable with math counter Posted by Sp3ctre on Sat Jan 22nd 2005 at 10:34am
Sp3ctre
27 posts
Posted 2005-01-22 10:34am
Sp3ctre
member
27 posts 23 snarkmarks Registered: Dec 11th 2004 Occupation: Student Location: Italy
valve released the source for dm_lockdown! you can freely learn from that...

there should be something also with the sdk example maps
Re: limiting prop_physics_respawnable with math counter Posted by keved on Sun Jan 23rd 2005 at 6:03pm
keved
252 posts
Posted 2005-01-23 6:03pm
keved
member
252 posts 515 snarkmarks Registered: Jan 21st 2005 Occupation: Games designer, Rockstar Leeds Location: Leeds, UK
<DIV class=quote>
<DIV class=quotetitle>? quoting TheSchwartz</DIV>
<DIV class=quotetext>Anyone got any ideas on how to limit the number of spawned oilbarrels using a math_counter, template like construciont like the one used in dm_lockeddown dm map - I am trying to figures this out, any hint to a sdk documentation or a tutorial is OK.</DIV></DIV>

All that happens is that there are x barrels initially in the level. A maths_counter keeps tabs on how many have been destroyed. When destroyed they do not respawn. Once they've ALL been destroyed, new barrels are created using point_template.

Don't use prop_physics_respawnable - just make them prop_physics instead. If you use prop_physics_respawnable, they will respawn shortly after being destroyed AND when the maths_counter value is reached a bunch of new barrels are spawned too. If someone just destroys the same barrel over and over, and the maths_counter keeps reaching its max value, pretty soon the would be 100s of barrels active.
If you want I can send you the entities I've used in my level NP Refinery.