Raised This Month: $32 Target: $400
 8% 

SpecialAttack Zones


Post New Thread Reply   
 
Thread Tools Display Modes
Author
VictorOfSweden
Junior Member
Join Date: Aug 2008
Location: Sweden
Plugin ID:
934
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Executes commands when clients are located in predefined zones.
    Old 06-17-2009 , 16:53   SpecialAttack Zones
    Reply With Quote #1

    This plugin regularly checks player locations. If found to be in one of the user configurable zones, players are then filtered by team and class. If a player passes the filters, a given command is executed (from the server console).

    sm_spa_zones_enabled (0/1, def 1)
    Enable/disable player location checking.

    sm_spa_zones_file (def "configs/zones.txt")
    The configuration file to load.

    sm_spa_zones_interval (def 10)
    Time (in seconds) between checking player locations.

    sm_spa_zones_debug (1/0, def 0)
    Enable/disable debug output (to file & server console).

    By default the plugin reads the configuration from the file configs/zones.txt, which has the following format:

    Code:
    "Zones"
    {
        "ctf_2fort"
        {
            "red_spawn"
            {
                "minx"        "175"
                "miny"        "1310"
                "minz"        "250"
                
                "maxx"        "800"
                "maxy"        "1630"
                "maxz"        "275"
                
                "teams"        "4"
                "classes"      "1"
                
                "command"    "say Hi ''{CLIENT_NAME}''! You are a red scout in front of red spawn on ''ctf_2fort''!"
            }
        }
    }
    Teams

    Red = 4, Blu = 8
    Sum up the numbers corresponding to the teams you want to be affected (Red+Blu=12).

    Classes

    Scout = 1, Soldier = 2, Pyro = 4, ...
    Sum up the numbers corresponding to the classes you want to be affected (Scout+Pyro=5)..

    Command

    The command field can contain the following tolkens: {CLIENT_NAME}, {CLIENT_STEAMID}, {CLIENT_USERID}, {CLIENT_LONG_ID}.

    Changelog
    • 1.0.0
      • Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (SpA-Zones.sp - 1426 views - 11.6 KB)

    Last edited by VictorOfSweden; 07-06-2009 at 14:05. Reason: Fixed plugin info.
    VictorOfSweden is offline
    dohuon
    New Member
    Join Date: Jul 2009
    Old 07-27-2009 , 20:51   Re: SpecialAttack Zones
    Reply With Quote #2

    It is odd to see nobody post reply here ;;
    Thanks for creating great plugin. I really want to use this plugin but I don't know how to get positions (x,y,z min max) in the map.
    anyone please help me
    dohuon is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 07-27-2009 , 23:26   Re: SpecialAttack Zones
    Reply With Quote #3

    type in console: "cl_showpos 1"
    then it will show your x,y,z in top of the screen.
    Sammy-ROCK! is offline
    MacBot
    New Member
    Join Date: Apr 2012
    Location: Virginia, USA
    Old 04-04-2012 , 12:29   Re: SpecialAttack Zones
    Reply With Quote #4

    Very nice plugin you have here. I am trying to get it to do something specific, but I can't figure out why it isn't working. Basically, I want to give players Godmode when they enter the spawn zone of a specific map and take it away when they leave the predefined area. Unfortunately, instead of giving the players godmode, it just says "Console: /god ...." in the chat. Also it would be cool if you added support for only executing the command when the players' zone position changes from one zone to another. Thanks.

    -MacBot
    MacBot is offline
    Doodil
    Senior Member
    Join Date: Mar 2012
    Old 04-04-2012 , 12:33   Re: SpecialAttack Zones
    Reply With Quote #5

    The thing with god mode is that you'd need to have sv_cheats set to 1 and then make the client execute the command. This plugin though makes the server execute a certain command.

    What you would need would be a plugin that implements a command like "sm_activate_godmode [client]", which activates godmode on a certain client and then use this command instead
    Doodil is offline
    MacBot
    New Member
    Join Date: Apr 2012
    Location: Virginia, USA
    Old 04-04-2012 , 12:51   Re: SpecialAttack Zones
    Reply With Quote #6

    So... what you're saying is.. The server doesn't have the power to execute admin commands? Then how do RTD mods work?
    MacBot is offline
    Doodil
    Senior Member
    Join Date: Mar 2012
    Old 04-04-2012 , 12:55   Re: SpecialAttack Zones
    Reply With Quote #7

    I am saying that there is no standard command to activate godmode on a player from the serverside, it is easy to implement such a command, but you need a extra plugin for that (correct me if I'm wrong and there is in fact such a command)
    Doodil is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 09-19-2012 , 04:18   Re: SpecialAttack Zones
    Reply With Quote #8

    I got all excited when I found this plugin, installed it on my server, and wrote a ton of zones specific to the needs of my server/map.

    Unfortunately, if multiple targets meet the criteria set, only one of them is affected. For example, this script forces all heavies in a given area to take out their melee weapons.

    Spoiler


    Should more than 1 Heavy be present within those coordinates, only the Heavy with the lowest UserID will be affected. This problem is not localized to sm_forcecmd; the issue occurs with all commands, even stock Sourcemod ones. It is an issue with SpA-Zones.

    Are there perhaps alternatives to this plugin? Or does someone have the time and interest to fix this one? I don't think the original author visits this site anymore.

    Last edited by ddhoward; 09-19-2012 at 04:18.
    ddhoward 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 01:34.


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