Description:
I made this modified plugin for surf servers in general, for maps with weapon spawners.
It will remove collision on weapons which reduces server lag. It will also remove all weapons if there are too many on the map which could prevent a crash.
Note that this does not remove weapons completely or on player drop, use another plugin for that.
CVars:
Code:
sm_weaponoptimizer_enable //Enable or disable collision checker
//Default 1
sm_weaponoptimizer_time //Disables collision on all weapons (and removes if limit reached) every X seconds
//Requires sm_weaponoptimizer_enable 1
//Default 10
//Min 5, Max 600
sm_weaponoptimizer_remove //Enable remove all weapons
//Default 1
sm_weaponoptimizer_limit //Remove all weapons once the amount of weapons reaches this limit
//Requires sm_weaponoptimizer_remove 1
//Default 35
//Min 1, Max 500
Idea taken from:
http://forums.alliedmods.net/showthread.php?p=870661
and
http://forums.alliedmods.net/showthread.php?p=1612901
Modified to apply to all weapons instead of dropped ones, and works on an interval timer instead of game events.