Raised This Month: $51 Target: $400
 12% 

Death Zone


Post New Thread Reply   
 
Thread Tools Display Modes
Author
[KH] Royal CS
Junior Member
Join Date: May 2008
Plugin ID:
431
Plugin Version:
2.4
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    This is a Death Zone Plugin. You can create zones in a cuboid form that will be a zone of death for either the CT, the T team or All players. Players in the zone with the specified team will be slain after the given time.
    Old 06-19-2008 , 15:27   Death Zone
    Reply With Quote #1

    Death Zone

    Version: 2.4
    Author: SWAT_88 / [KH] Royal CS / lamdacore

    1.0 Initial release for DoD:S.
    2.0 Remake for CS:S.
    2.0 Added many features:
    Escape Time for each Zone.
    Countdowns, Sounds, and Explosions.
    Reason for each Zone.
    Death Zone that will slay everybody.
    2.1 Fixed a bug in "Reason Message"
    2.2 Added Admin immunity.
    2.3 Fixed another bug in "Reason Message"
    2.4 Added deactivation and botimmunity

    Requirements:
    The latest sourcemod build
    Description:
    This is a Death Zone Plugin.
    You can create zones in a cuboid form that will be a zone of death for either the CT, the T team or All players.
    Players in the zone with the specified team will be slain after the given time.
    Useful for:
    • Preventing Players to get in the enemy spawn zone.
    • Anti rush.
    • Anti Bug using.
    • Camping.
    • Not solid walls.
    • AFK.
    Features:
    • Create a new zone ingame as Spectrator.
    • Up to 20 individual zones per team (maximum of 60 zones) storing for each map.
    • Set the output messages the way you want.
    • Create Escape Times for each zone.
    • Create Reasons for killing a player for each zone.
    Commands:
    "dz_clearzone"
    Clears current point coordinates for Death Zone.

    "dz_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, the Reason and the Escape Time have to be specified if you enter sm_setzone 4 more times.

    "dz_savezone_ct"
    Save the current cooridinates for Death Zone that will slay the CT team.

    "dz_savezone_t"
    Save the current cooridinates for Death Zone that will slay the T team.

    "dz_savezone_all"
    Save the current cooridinates for Death Zone that will slay everybody.

    "dz_delzone_ct"

    Delete the last saved Death Zone that will slay the CT team.

    "dz_delzone_t"

    Delete the last saved Death Zone that will slay the T team.

    "dz_delzone_all"
    Delete the last saved Death Zone that will slay everybody.

    "dz_testzones"
    Test the Death Zones by your current position.
    Cvars:
    "dz_verbose" "2" 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

    "dz_immunity" "1"
    - 0 : Admins get killed in a DeathZone.
    - 1 : Admins don't get killed in a DeathZone.

    "dz_time" "0" DeactivationTime:
    - 0: Zones are never disabled.
    - x: Time for deactivation.

    "dz_botimmunity" "0"
    - 1: Bots don't get killed in a DeathZone,
    - 0: Bots get killed in a DeathZone.
    Setup (SourceMod):
    Install the smx file to addons\sourcemod\plugins.
    (Re)Load Plugin or change Map.
    TO DO:
    Nothing make a request.
    Modifications:

    MOD_DeathZone bomb-hostage css.zip:
    by kicia

    Zones will be disabled after the bomb has been planted or after the hostages have been rescued.

    MOD_Translations_warmup_alert.zip:
    by axon_pl

    -added translations
    -added cvar for enabling or disabling logging
    -added cvar for mani admin warmup compatibility (this disables/enables zones during mani warmup, tested for Mani 1.2 beta R)
    -added cvar for alert time (so thas beep sound doesn't play all the time you're in zone just for x last seconds - default 10)

    MOD_Bomb_De_and_Re_activate.zip:
    by foohey

    -added events for disable zones when bomb is dropped, and reactivate zones when picked up.
    Copyright:
    Everybody can edit this plugin and copy this plugin.
    Thanks to:
    lamdacore
    GODJonez for helping with the is-player-in-zone calculating.
    Bailopan for timebomb
    Carn for bugreporting
    SWAT for annoying the fuck out of me ;) damn perfectionist
    Testservers:
    [KH] www.kh-clan.com #2
    Please Feedback!
    HAVE FUN!!!
    Attached Files
    File Type: zip MOD_DeathZone bomb-hostage css.zip (22.8 KB, 1282 views)
    File Type: sp Get Plugin or Get Source (DeathZone.sp - 2821 views - 29.9 KB)
    File Type: zip MOD_Translations_warmup_alert.zip (23.3 KB, 1081 views)
    File Type: zip MOD_Bomb_De_and_Re_activate.zip (23.2 KB, 928 views)
    File Type: smx DeathZone.smx (15.6 KB, 873 views)
    __________________

    Last edited by [KH] Royal CS; 09-23-2012 at 15:37. Reason: uploaded working compiled version from 9.23.12
    [KH] Royal CS is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 06-20-2008 , 00:03   Re: Death Zone
    Reply With Quote #2

    You ..are the man...lk;ajflajf i dont know how to think. I'm taking the cross off my wall in the bedroom and hanging up your avatar.

    Otto
    ottobohn is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 06-20-2008 , 13:58   Re: Death Zone
    Reply With Quote #3

    Quote:
    Originally Posted by ottobohn View Post
    You ..are the man...lk;ajflajf i dont know how to think. I'm taking the cross off my wall in the bedroom and hanging up your avatar.

    Otto
    I programmed 1 week and 500 lines of code.
    Therefore, it is nice to hear that after such an effort.
    SWAT_88 is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 06-26-2008 , 13:45   Re: Death Zone
    Reply With Quote #4

    Is there a possibility to light up the dead zones? Maybe for ct spawn, we can do a cvar to have lasers to let you know you're in a blue kill zone. Know what I mean? I want to use your plugin to create a kill zone in CT spawn after 10. It lights up with lasers and kills you if you do'nt get out in 5 seconds. Etc etc.

    i would also like to use it for soccer mod around the goal. It only allows T into the T goal area and zapz ct for being too close. Your mod has many applications.

    Otto
    ottobohn is offline
    kropka
    New Member
    Join Date: Jun 2008
    Old 06-26-2008 , 15:30   Re: Death Zone
    Reply With Quote #5

    For me it dosen't work. I cant add zones:/ Got only message "u not allowed use this command" or somethink like this :/ Are added zones to default map ?
    kropka is offline
    [KH] Royal CS
    Junior Member
    Join Date: May 2008
    Old 06-26-2008 , 21:29   Re: Death Zone
    Reply With Quote #6

    @ kropka:

    You must be spectator and you need the root flag to add zones.
    __________________
    [KH] Royal CS is offline
    hubington
    Junior Member
    Join Date: Aug 2007
    Old 09-05-2008 , 18:37   Re: Death Zone
    Reply With Quote #7

    I've only had it on for a day or so but I only seem to get the message that pops up in the middle of screen giving me the countdown with an audiable alert once.

    I don't want them to not use tunnel I just don't want them to hang around in it. Hence my wanting to link several zones that would cover the tunnel without falling outside it.

    in addition while looking at the code I notice a way to improve performance.

    In the function CalculatePlayerInZone which I imagine fires many times each round you have a section that reads

    if (ZoneMinZ > ZoneMaxZ)
    {
    Temp = ZoneMinZ;
    ZoneMinZ = ZoneMaxZ;
    ZoneMaxZ = Temp;
    }

    however you can pull this from that section if you make a change to the function CommandSetZone

    change the section that said

    else if (g_SetCoords[7] == 0.0)
    {
    g_SetCoords[7] = PlayerCoords[2];
    ReplyToCommand(client, "Maximum height setted. (zMax: %f)\nNext will be the Reason.", PlayerCoords[2]);
    }

    to

    else if (g_SetCoords[7] == 0.0)
    {
    if (PlayerCoords[2] < g_SetCoords[6])
    {
    g_SetCoords[7] = g_SetCoords[6]
    g_SetCoords[6] = PlayerCoords[2]
    }
    g_SetCoords[7] = PlayerCoords[2];
    ReplyToCommand(client, "Maximum height setted. (zMax: %f)\nNext will be the Reason.", PlayerCoords[2]);
    }

    Then you have made sure the data is formated properly just once before it's saved rather than needing to check it everytime you scan a player which saves on cycles.

    It may be the same logic can be applied to the X & Y co-ordinates too but the Z ones are a lot more simple to read and I've not got round to following the rest of it yet.

    If you have any ideas on why I'm not getting the audable warnings & count downs it would be much appreceated. For the record I'm running the std version for the moment so it isn't that I've broken it.
    __________________
    If it's stupid, but it works, it's not stupid
    hubington is offline
    Jason Argo
    Member
    Join Date: Apr 2008
    Location: Sydney, Australia
    Old 09-05-2008 , 21:03   Re: Death Zone
    Reply With Quote #8

    Hi SWAT_88,

    Could you add a Cvar that allows for an expiry of zones for each round, like dz_roundexpire 60, that zone would work for the first minute of each round. This would be a near perfect solution to spawn killing on surf maps, spawn protection just doesn't work as each map is different and players go different ways on the map resulting in players being unprotected and others not being able to kill each other. Having zones of death for a particular amount of time at the beginning of each round would be great, thanks if you look into this request.
    __________________

    "Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1.5 tonnes"


    - Popular Mechanics magazine, March 1949.
    Jason Argo is offline
    hubington
    Junior Member
    Join Date: Aug 2007
    Old 09-06-2008 , 05:51   Re: Death Zone
    Reply With Quote #9

    So long as you want it to effect ALL zones not that you specify an expiry for each zone, I think I can help you (i.e. a global experation from round start then all zones stop working till the next round). You could then get a plugin that lets you change the public values by map if you wanted to vary the time frame from map to map. Technically either is possaible but that way should be quite quick where as the other would be extreamly involved and require a whole load of testing that I don't really have an enviroment set up for.

    I don't belive I can post an attachment though so if that sounds like it could do the trick then send me a pm with your email and I'll give it my best and forward it on to you. All I ask in exchange is you drink a cold beer under the suns rays for me, being in England I have to experiance good weather vicariously.

    Also if any of the Devs on this project want me to forward what I do to them so they can make it avalialbe to everyone then just let me know.
    __________________
    If it's stupid, but it works, it's not stupid
    hubington is offline
    SWAT_88
    SourceMod Donor
    Join Date: Jan 2008
    Location: Austria
    Old 09-09-2008 , 16:44   Re: Death Zone
    Reply With Quote #10

    Quote:
    Originally Posted by hubington View Post
    So long as you want it to effect ALL zones not that you specify an expiry for each zone, I think I can help you (i.e. a global experation from round start then all zones stop working till the next round). You could then get a plugin that lets you change the public values by map if you wanted to vary the time frame from map to map. Technically either is possaible but that way should be quite quick where as the other would be extreamly involved and require a whole load of testing that I don't really have an enviroment set up for.

    I don't belive I can post an attachment though so if that sounds like it could do the trick then send me a pm with your email and I'll give it my best and forward it on to you. All I ask in exchange is you drink a cold beer under the suns rays for me, being in England I have to experiance good weather vicariously.

    Also if any of the Devs on this project want me to forward what I do to them so they can make it avalialbe to everyone then just let me know.
    Yes, of course, because I have no time at the moment.
    Therefore it would be really nice if you want to optimize the plugin and add some features.
    You could send me a pm if you are finished.

    Thanks in Advance.
    __________________
    SWAT_88 is offline
    Reply



    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 12:35.


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