Raised This Month: $52 Target: $400
 13% 

[ANY] Map Zones (with forwards)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Plugin ID:
3754
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    78 
    Plugin Description:
    Defines map zones where players are not allowed to enter (with different punishments).
    Old 07-16-2013 , 16:16   [ANY] Map Zones (with forwards)
    Reply With Quote #1

    Hello!
    This time I present my biggest plugin ever made. Previously I just had no idea how to properly set and highlight coordinates by effects (in a box), but Anti Rush plugin helped me alot with it! So credits also goes to Peace-Maker.

    DESCRIPTION:
    This plugin defines zones on a map where players are not allowed to enter. Either for the Terrorists/Red/Allies, CT's/Blu/Axis or even all players.
    Different punishments are allowed (up to 5 default and unlimited custom ones). Admins also can be protected to across that zones.
    Plugin developers can create own plugins that handle custom punishments. See sample test plugin for that.

    This plugin is useful for:
    • Preventing players to get in the enemy spawn zone.
    • Preventing players to get in the any map zones you want.
    • Anti rush.
    • Anti exploits using.
    • Anti camping.
    • Invisible and non-solid walls.
    And much more!

    SETTINGS:
    • Type !zones in chat and select 'Add Zone' (or go into Admin Menu > Server Commands > Setup Zones).
    • Go to first conrner and press E button (+USE or Medic! voice command in TF2) command to set first coordinate for a zone.
    • Go to another place and once again press E button to set end point for a zone.
    • Enter a name of a zone in chat (For example middle).
    • Save a zone.
    • Edit zone punishment and size via menu.
    Here is a presentation video to show features and 'how-to'.
    Spoiler

    P.S Dont forget to save first and second coordinates after editing them! Otherwise zone position and size can not be saved!

    CONVARS:
    • sm_zones_enable - Whether or not enable Zones plugin. (Default: Enabled)
    • sm_zones_punishment - Determines how plugin should handle players who entered a zone (by default):
      • 1 = Announce in chat
      • 2 = Bounce back (Default)
      • 3 = Slay player
      • 4 = Dont allow to shoot
      • 5 = Allow only melee weapon
      • 6 = Custom punishment
    • sm_zones_admin_immunity - Whether or not allow admins to across zones without any punishments. (Default: Dont immune admins)
    • sm_zones_show_messages - Whether or not show messages in chat to a player that entered protected zone. (Default: Show messages)
    • sm_zones_show - Whether or not always show the zones on a map. (Default: Dont show)

    ADMIN COMMANDS:
    ADMFLAG_CONFIG is required. ( by default is i )
    If you want to change flag for admins or groups, setup overrides for sm_zones_immunity command.
    • sm_zones - Opens the zones main menu
    • sm_actzone - Activates a zone (by name)
    • sm_diactzone - Diactivates a zone (by name)
    Admins will receive a list of zones in menu on di/activate commands. But if that command is used via server console, you should enter a full zone name.
    Example: sm_diactzone middle

    NOTES:
    • Diactivated zones are not deleted, those just will not trigger touch functions. To activate them back use Activate Zones menu or !actzone
    • If immunity is enabled, you can use custom overrides ( sm_zones_immunity ) to 'immune' admins with desired flag.
    • You can find map zones for each map in sourcemod/data/zones/ folder.
    • Any zones are automatically re-creates at every round start (does not matter if zone was diactivated before).
    • Red/Blue/Green colors means that players from Red/Blue/Green team can across that zone. Both teams will not see their zones.
    • If zones are disappearing sometimes, you may decrease timer interval. Go to line 27 and change value to less than 5.0 seconds.
    • It's not really recommended to show zones all the times (due to performance purposes for both server and client).
    • Plugin generates a configuration file (cfg/sourcemod/sm_zones.cfg).
    • Plugin is multilinguage!

    Servers with this plugin

    Download plugin
    Browse source code
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot

    Last edited by Root_; 06-25-2014 at 18:49. Reason: Updated
    Root_ is offline
    zipcore
    Veteran Member
    Join Date: Mar 2010
    Location: m_flZipcore
    Old 07-16-2013 , 19:27   Re: [DoD:S] Zones
    Reply With Quote #2

    omg we need a core plugin for zones with touch forwards...anyway nice job
    __________________
    zipcore is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 07-17-2013 , 01:34   Re: [DoD:S] Zones
    Reply With Quote #3

    Nice plugin Root
    __________________
    Happy DODs player is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 07-17-2013 , 02:03   Re: [DoD:S] Zones
    Reply With Quote #4

    Nice!
    Will this also detect shooting? This would be just great in combination with a warning message if someone shoots into that zone

    EDIT:

    25829 Servers with this Plugin is quite a high number =)

    Translated into German
    Attached Files
    File Type: txt dod_zones.phrases.txt (4.8 KB, 204 views)
    __________________

    Last edited by micazoid; 07-17-2013 at 02:29.
    micazoid is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 07-17-2013 , 05:24   Re: [DoD:S] Zones
    Reply With Quote #5

    Quote:
    Originally Posted by zipcore View Post
    omg we need a core plugin for zones with touch forwards...anyway nice job
    Thanks! Actually this plugin should work for any game. You may use this plugin or just edit this one (line 157, rename "dod_round_start" to "round_start")

    Quote:
    Originally Posted by micazoid View Post
    Will this also detect shooting?
    Not yet. That's a good idea! I will implement that in next release.
    Quote:
    Originally Posted by micazoid View Post
    Translated into German
    Thanks!
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 07-17-2013 , 06:36   Re: [DoD:S] Zones (1.1)
    Reply With Quote #6

    An update have been released!
    Changes in 1.1:
    • Added ability to dont allow player to shoot (by default its 4th punishment)
    • Added OnEndTouch output, which defines whether or not player left that zone (useful for weapon punishments)
    • Added stock multilanguage phrase "You cannot go this way." when player touches a zone.
    • Added German translations (thanks to micazoid)
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot

    Last edited by Root_; 07-17-2013 at 07:04. Reason: Added translations
    Root_ is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 07-17-2013 , 06:59   Re: [DoD:S] Zones (1.1)
    Reply With Quote #7

    Wow you are fast as lighning root ^^

    I translated your changes. How is shooting now detected? You cannot shoot into the zone if you are outside of it and not if you are in it?
    Attached Files
    File Type: txt dod_zones.phrases.txt (5.4 KB, 188 views)
    __________________
    micazoid is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 07-17-2013 , 07:01   Re: [DoD:S] Zones (1.1)
    Reply With Quote #8

    Quote:
    Originally Posted by micazoid View Post
    You cannot shoot into the zone if you are in it
    Thanks for updated translation
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 07-17-2013 , 07:25   Re: [DoD:S] Zones (1.1)
    Reply With Quote #9

    Thank you very much Root
    Will try this asap, but I think this Weekend I will have this running. Maybe we can share maps?
    __________________
    micazoid is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 07-17-2013 , 07:40   Re: [DoD:S] Zones (1.1)
    Reply With Quote #10

    Quote:
    Originally Posted by micazoid View Post
    Maybe we can share maps?
    What do you mean? A separate map configs? I dont have any map configs since I dont use this plugin anywhee at this moment.
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ 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 11:59.


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