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.