limiting prop_physics_respawnable with math counter
Post Reply
Quote
Re: limiting prop_physics_respawnable with math counter
Posted by TheSchwartz on Mon Jan 3rd at 1:16pm 2005


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...

[addsig]



Quote
Re: limiting prop_physics_respawnable with math counter
Posted by Sp3ctre on Sat Jan 22nd at 10:34am 2005


valve released the source for dm_lockdown! you can freely learn from that...
there should be something also with the sdk example maps





Quote
Re: limiting prop_physics_respawnable with math counter
Posted by keved on Sun Jan 23rd at 6:03pm 2005


? quoting TheSchwartz
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.

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.






Post Reply