AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Map Zones (with forwards) (https://forums.alliedmods.net/showthread.php?t=220979)

Root_ 07-16-2013 16:16

[ANY] Map Zones (with forwards)
 
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

zipcore 07-16-2013 19:27

Re: [DoD:S] Zones
 
omg we need a core plugin for zones with touch forwards...anyway nice job

Happy DODs player 07-17-2013 01:34

Re: [DoD:S] Zones
 
Nice plugin Root

micazoid 07-17-2013 02:03

Re: [DoD:S] Zones
 
1 Attachment(s)
Nice!
Will this also detect shooting? This would be just great in combination with a warning message if someone shoots into that zone :bacon!:

EDIT:

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

Translated into German

Root_ 07-17-2013 05:24

Re: [DoD:S] Zones
 
Quote:

Originally Posted by zipcore (Post 1992446)
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 (Post 1992638)
Will this also detect shooting?

Not yet. That's a good idea! I will implement that in next release.
Quote:

Originally Posted by micazoid (Post 1992638)
Translated into German

Thanks!

Root_ 07-17-2013 06:36

Re: [DoD:S] Zones (1.1)
 
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)

micazoid 07-17-2013 06:59

Re: [DoD:S] Zones (1.1)
 
1 Attachment(s)
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?

Root_ 07-17-2013 07:01

Re: [DoD:S] Zones (1.1)
 
Quote:

Originally Posted by micazoid (Post 1992769)
You cannot shoot into the zone if you are in it

Thanks for updated translation :bee:

micazoid 07-17-2013 07:25

Re: [DoD:S] Zones (1.1)
 
Thank you very much Root
Will try this asap, but I think this Weekend I will have this running. Maybe we can share maps?

Root_ 07-17-2013 07:40

Re: [DoD:S] Zones (1.1)
 
Quote:

Originally Posted by micazoid (Post 1992781)
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.


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

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