This is a Anti-Barrier-Jumping-Plugin. You can create zones in a cuboid form that will be a zone of death for either the Allies or the Axis team. Players in the zone with the specified team will be instandly slain. So you can prevent Players to get in the enemy spawn zone.
Features:- Create a new zone ingame as Spectrator.
- Up to 5 individual zones per team (maximum of 10 zones) storing for each map.
- Set the output messages the way you want.
Requirements:
Installation:- antibarrierjumping.sp (put in addons/sourcemod/scripting)
- antibarrierjumping.smx (put in addons/sourcemod/plugins)
- antibarrierjumping.cfg (put in cfg/sourcemod)
- abj_dod_avalanche.txt (put in addons/sourcemod/data) an example file with 1 zone for each team on dod_avalanche. Axis-Dead-Zone is the zone if you go in the building over the archway near the Allies spawn where a lot of trash should block the axis their way. Allies-Dead-Zone is the zone near the Axis spawn in their base with many railing and one or two big sunshade where the railings should block the Allies way.
Console Commands:
These Commands are only avaible with Root-Admin-Permission and for the Spectrator Team. Beware also that only one Player is using these commands at the same time because of all Players will have access to the same holding variables.- sm_setzone
- set 3 point coordinates and the min/max height for Barrier-Jumping-Zone. You have to fly as Spectrator to a point where the first edge of the zone begins and enter sm_setzone. Next fly to the second point where the second edge of the zone should be and enter sm_setzone again. Now fly to the thirt point and enter again. The fourth point will automatically calculated so that it become a cuboid. At least the minimum and maximum height for the cuboid have to be specified if you enter sm_setzone 2 more times.
- sm_clearzone
- clears current point coordinates for Barrier-Jumping-Zone. Use this to reset the holding variables that are already filled with sm_setzone.
- sm_savezone_allies
- save the current cooridinates for Barrier-Jumping-Zone that will slay the Allies team. The holding variables that are filled with the command sm_setzone will now be stored and specified for the Allies team as a dead zone.
- sm_savezone_axis
- save the current cooridinates for Barrier-Jumping-Zone that will slay the Axis team. The holding variables that are filled with the command sm_setzone will now be stored and specified for the Axis team as a dead zone.
- sm_testzones
- test the Barrier-Jumping-Zones by your current position. Just Fly in a zone and enter this command. It will tell you if you are in a zone and in which team you will be slain.
- sm_delzone_allies
- delete the last saved Barrier-Jumping-Zone that will slay the Allies team.
- sm_delzone_axis
- delete the last saved Barrier-Jumping-Zone that will slay the Axis team.
CVars:- abj_verbose
- Sets when/where output is sent and to whom
- 0 = No output
- 1 = Show only to the user involved
- 2 = Show to admins and user involved
- 3 = Show to admins only
- 4 = Show to everyone
- Default: "1"
Changelog:
Credits:
Thank you to the following:
GODJonez: for helping with the is-player-in-zone calculating.
BAILOPAN: for Sourcemod