> Folks, > > Need a few pointers/tips/tricks to clean up the map after a round end. > I have completed code to reset func_breakable's, doors and any monsters. > Just need some pointers to clean up (remove) everything else like > weapons, dropped items etc.. > > Regards, > Ron
For removing dropped weapons, you can just loop through the entities looking for a classname that starts with "weapon_" (using strncmp). When you find a match, call UTIL_Remove() on that guy to remove it from the game. I'm trying to remember the way to remove decals at the end of a round (ala Counter-Strike). I thought it was to store the "mp_decals" value, set it to "0.0", wait a second or so, then set it back to the original value, but this doesn't seem to do anything when I test it. I can't seem to remember what the magic CVAR was that sets the decal limit/timeout. I remember (or think I remember) playing with this a couple of years ago and it seemed to work (or maybe that was just a dream). Anybody else remember/know how to remove decals at the end of a round? P.S. I'm getting too old for this s**t. :) Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

