AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [NMRiH] Clear map 1.2.0 [2016/09/15] (https://forums.alliedmods.net/showthread.php?t=261361)

Grey83 04-10-2015 19:25

[NMRiH] Clear map 1.2.0 [2016/09/15]
 
7 Attachment(s)
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.
Attachment 144038
Attachment 144039
Attachment 149785

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»
    Attachment 157419
  • Rewritten using the new syntax (1.7+)

Grey83 11-16-2015 07:26

Re: [NMRiH] Clear map
 
There are still some ideas to enhance the functionality of the plugin?

soscrazy89 02-22-2016 18:45

Re: [NMRiH] Clear map 1.1 (15.11.2015)
 
yes function add a lot of zombies + items

Grey83 02-23-2016 05:13

Re: [NMRiH] Clear map 1.1 (15.11.2015)
 
Quote:

Originally Posted by soscrazy89 (Post 2395755)
yes function add a lot of zombies + items

spawn items & zombies?
But this plugin for clearing a maps

Grey83 09-15-2016 07:34

Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
 
Added command «sm_count» (if you want to know the number of existing items or/and zombies, but there is no need to remove them).

yomox9 03-14-2018 19:48

Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
 
1. I don't want remove zombies. (ex. CVAR=sm_clear_map_remove_zombie)
2. I want function. When amount of edicts more than the max edicts, Plugin remove objects. (ex. CVAR=sm_clear_map_max_edicts)
Can you do these?

Grey83 03-15-2018 07:30

Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
 
1. you need remove line 176 if(!(1 < state < 4)) ClearMap();
2. cvar sm_clear_map_limit was created for this

phoenix0001 02-17-2021 23:42

Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
 
1 Attachment(s)
This happens often...

Grey83 02-18-2021 08:56

Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
 
phoenix0001, such messages appear when physics breaks on the server.
In this case You should restart server.

Physics usually breaks when model collisions change frequently.

phoenix0001 02-21-2021 09:07

Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
 
Quote:

Originally Posted by Grey83 (Post 2737391)
phoenix0001, such messages appear when physics breaks on the server.
In this case You should restart server.

Physics usually breaks when model collisions change frequently.

I have never understood how this reason is caused?
How can this cause be fixed or improved?


All times are GMT -4. The time now is 16:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.