Name: Clear map
Description: Remove unnecessary items (weapons, tools, explosives and medical supplies
not in the player's inventory) & zombies from the map.
Useful for maps with lots of waves (like
nms_bunkerdefense and
nms_testone), which drops a lot of things from the dead zombies and may cause an overflow limit edicts («
Ed_alloc: No Free Edicts»).
Especially when used the plugins like
Weapon Menu,
Infinite Ammo and
Full Infinite Ammo on the server.
Installation: Place compiled plugin (
nmrih_clear_map.smx) into the plugins folder (
../addons/sourcemod/plugins/).
For compiling need SM1.8_stable
AdminCommands:- sm_clear - Manual remove unnecessary items from the map (weapons, ammo, tools and medical supplies).
- sm_nonpcs - Manual remove zombies from the map.
- sm_count - Shows the number of items and the zombies on the map.
Console Variables:- sm_clear_map_report - On/Off report after clearing map in the server console & the game chat (only to one who caused the cleaning).
- sm_clear_map_timer - Time (every X seconds after the start of the round), which will be checked a number of items and they will be removed. 0 - disable timer, 1 and more - enable timer
- sm_clear_map_limit - The maximum number of items (counted only weapons, tools, explosives and medical supplies not in the player's inventory) that will be removed unnecessary items from the map.
Changes in v1.1.0 (2015/11/15):- Automatic cleaning map by timer from the new items in excess of a certain limit (set by the plugin CVars).
Changes in v1.2.0 (2016/09/15):- Small fixes
- Added command «sm_count»
- Rewritten using the new syntax (1.7+)