Raised This Month: $319 Target: $400
 79%   Almost there!

[NMRiH] Clear map 1.2.0 [2016/09/15]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Plugin ID:
4593
Plugin Version:
1.2.0
Plugin Category:
Admin Commands
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    46 
    Plugin Description:
    Remove unnecessary items & zombies from the map.
    Old 04-10-2015 , 19:25   [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #1

    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.
    Name:  Clear map 1.jpg
Views: 3119
Size:  21.4 KB
    Name:  Clear map 2.jpg
Views: 3121
Size:  29.8 KB
    Click image for larger version

Name:	Clear map 3.png
Views:	700
Size:	48.1 KB
ID:	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
      Name:  sm_count.jpg
Views: 2241
Size:  10.2 KB
    • Rewritten using the new syntax (1.7+)
    Attached Files
    File Type: sp Get Plugin or Get Source (nmrih_clear_map.sp - 934 views - 3.0 KB)
    File Type: sp Get Plugin or Get Source (nmrih_clear_map 1.1.sp - 812 views - 4.9 KB)
    File Type: sp Get Plugin or Get Source (nmrih_clear_map 1.2.0.sp - 1281 views - 6.0 KB)
    __________________

    Last edited by Grey83; 09-15-2016 at 07:26. Reason: New version
    Grey83 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 11-16-2015 , 07:26   Re: [NMRiH] Clear map
    Reply With Quote #2

    There are still some ideas to enhance the functionality of the plugin?
    Grey83 is offline
    soscrazy89
    Junior Member
    Join Date: Nov 2015
    Old 02-22-2016 , 18:45   Re: [NMRiH] Clear map 1.1 (15.11.2015)
    Reply With Quote #3

    yes function add a lot of zombies + items
    soscrazy89 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-23-2016 , 05:13   Re: [NMRiH] Clear map 1.1 (15.11.2015)
    Reply With Quote #4

    Quote:
    Originally Posted by soscrazy89 View Post
    yes function add a lot of zombies + items
    spawn items & zombies?
    But this plugin for clearing a maps
    __________________
    Grey83 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 09-15-2016 , 07:34   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #5

    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).
    __________________
    Grey83 is offline
    yomox9
    Member
    Join Date: Jan 2014
    Location: jp
    Old 03-14-2018 , 19:48   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #6

    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?

    Last edited by yomox9; 03-14-2018 at 19:52.
    yomox9 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 03-15-2018 , 07:30   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #7

    1. you need remove line 176 if(!(1 < state < 4)) ClearMap();
    2. cvar sm_clear_map_limit was created for this
    __________________
    Grey83 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 02-17-2021 , 23:42   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #8

    This happens often...
    Attached Thumbnails
    Click image for larger version

Name:	QQ截图20210218123814.png
Views:	42
Size:	49.8 KB
ID:	187357  
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-18-2021 , 08:56   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #9

    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.
    __________________
    Grey83 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 02-21-2021 , 09:07   Re: [NMRiH] Clear map 1.2.0 [2016/09/15]
    Reply With Quote #10

    Quote:
    Originally Posted by Grey83 View Post
    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?
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 00:56.


    Powered by vBulletin®
    Copyright ©2000 - 2021, vBulletin Solutions, Inc.
    Theme made by Freecode