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

[CS:S] Zone Commands (Race Maps Rewards) [v1.4e]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Plugin ID:
3582
Plugin Version:
1.4e
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Lets you create zones, reward players who reach them, and execute optional config files.
    Old 03-19-2013 , 02:31   [CS:S] Zone Commands (Race Maps Rewards) [v1.4e]
    Reply With Quote #1



    Hi there,

    Playing on a lot of race maps of different kinds (race, sliderace, xc, mg maps, etc...), I noticed that a lot of them were just "missing" a reward for the first player reaching the goal.
    I think it's a pity because a lot of these old maps are great and would deserve to be played on more servers.

    So I had the idea to create a plugin which would allow admins to:
    - draw defined zones in any map
    - reward a player who reaches the zone
    - execute a file as soon as a zone is reached (to allow many more outputs than just a normal reward.)

    I took the code of Peace-Maker's Anti Rush plugin to create and manage zones, and Andi67's sm_skinchooser plugin sourcecode for the skin reward stuff.
    Big thanks to them for making their respective plugins (and allowing me to use them).

    Installation:

    Default:
    Just download the complete_pack(all_in_one).zip and extract it to your server's cstrike folder. It's a ready-to-play pack.
    The sound file used when a zone is reached is included, but the command used (sm_play) can be used with any default sound of the game. Unlike custom sounds, game sounds do not need to be downloaded, which is pretty cool.
    The list can be found in sound/music using GCFScape.

    Custom:
    Spoiler


    cvars:
    Code:
    sm_zones_cmds_enabled - Enable/Disable zones detections (default: 1).
    sm_zones_cmds_postaction - How should the plugin behave when a player reaches a zone. 1: Announce in chat, 2: Announce, reward, execute config file, 3: Slay (default: 2).
    sm_zones_cmds_fencecolor - Which color should the fences have? RGBA: red green blue alpha (default: 255 0 0 255).
    sm_zones_cmds_showzones - Show created zones? (default: 0)
    sm_zones_cmds_newround - Enable/Disable config file executed at roundstart, regardless of sm_zones_cmds_enabled (can be useful as a stand alone function) (default: 0).
    sm_zones_cmds_fragreward - Enable/Disable frag reward (50 frags) (default: 1).
    sm_zones_cmds_cash - Enable/Disable cash reward ($16000) (default: 1).
    sm_zones_cmds_skin_enabled - Enable/Disable skin reward (default: 1).
    sm_zones_cmds_skin_timer - Enable/Disable timer before a skin is applied at spawn (to override other plugins) (default: 0).
    sm_zones_cmds_config_file - File to be executed when a zone is reached, located in cfg/sourcemod folder (default: zones_commands.cfg).
    sm_zones_cmds_newround_file - File to be executed at roundstart, located in cfg/sourcemod folder (default: zones_newround.cfg).
    
    Admin command: sm_zones_cmds_menu: Opens the zones edit menu.
    How to use

    Spoiler


    This plugin can be used/edited freely and I even encourage you to do so to fit your needs. There are a lot of stuff that could be added like making vehicles spawn or changing players glow/color/alpha or many other things.
    For now, when a player reaches a zone, the zone output is disabled (like there can only be one winner for a zone, it was meant to be used on race maps...) but it could easily be modified if needed.
    All comments are, as usual, welcome.

    St00ne

    Change log:

    v1.4b: 1st public release.
    v1.4c: Fixed a 'Native GetClientTeam error' and more zones added in the complete pack.
    v1.4d: Removed FCVAR_REPLICATED flag on version cvar.
    v1.4e: Rewrote Timer_Spawn part using GetClientSerial.
    Attached Files
    File Type: txt sm_zones_cmds.phrases.txt (4.8 KB, 291 views)
    File Type: ini sm_zones_cmds_skins_downloads.ini (1.8 KB, 471 views)
    File Type: ini sm_zones_cmds_skin_t.ini (51 Bytes, 418 views)
    File Type: ini sm_zones_cmds_skin_ct.ini (39 Bytes, 296 views)
    File Type: cfg zones_commands.cfg (93 Bytes, 317 views)
    File Type: cfg zones_newround.cfg (91 Bytes, 447 views)
    File Type: zip example_models_and_mapzones_pack.zip (1.60 MB, 316 views)
    File Type: sp Get Plugin or Get Source (sm_zones_cmds.sp - 1031 views - 67.0 KB)
    File Type: zip complete_pack(all_in_one).zip (1.71 MB, 268 views)
    __________________

    *** *** ***
    -My plugins-

    Last edited by St00ne; 08-11-2019 at 02:44. Reason: Updated spawn timer using GetClientSerial
    St00ne is offline
    ilga80
    Senior Member
    Join Date: Nov 2012
    Old 03-19-2013 , 06:34   Re: sm_zones_cmds
    Reply With Quote #2

    Please add your files in one zip archive
    ilga80 is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 03-20-2013 , 00:45   Re: sm_zones_cmds
    Reply With Quote #3

    Quote:
    Originally Posted by ilga80 View Post
    Please add your files in one zip archive
    Done
    __________________

    *** *** ***
    -My plugins-
    St00ne is offline
    ilga80
    Senior Member
    Join Date: Nov 2012
    Old 03-20-2013 , 06:05   Re: sm_zones_cmds
    Reply With Quote #4

    Quote:
    Originally Posted by St00ne View Post
    Done
    Thanks, but to be honest I don't understand the purpose of this plugin
    ilga80 is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 03-20-2013 , 22:47   Re: sm_zones_cmds
    Reply With Quote #5

    Quote:
    Originally Posted by ilga80 View Post
    Thanks, but to be honest I don't understand the purpose of this plugin
    Haha, I'm surprised you asked for a pack then... anyway I had to add one.

    The purpose of the plugin is explained in the description, and takes all it sense when you load old sliderace maps like sliderace_city or re_sliderace_v2_b4.
    __________________

    *** *** ***
    -My plugins-

    Last edited by St00ne; 03-20-2013 at 22:47.
    St00ne is offline
    nvn
    Junior Member
    Join Date: Aug 2010
    Old 03-28-2013 , 13:17   Re: [CSS] zones commands [1.4c]
    Reply With Quote #6

    We can also configure this plugin to slay everyone who is in zone?
    nvn is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 03-28-2013 , 21:26   Re: [CSS] zones commands [1.4c]
    Reply With Quote #7

    Quote:
    Originally Posted by nvn View Post
    We can also configure this plugin to slay everyone who is in zone?
    Yep

    Quote:
    sm_zones_cmds_postaction - How should the plugin behave when a player reaches a zone. 1: Announce in chat, 2: Announce, reward, execute config file, 3: Slay (default: 2)
    So basically you can event put zones which give rewards, and zones which slay, in the same map.

    Useful for some maps like re_sliderace_v2_b4 which "misses" a zone to kill/respawn at the end.
    Mapzones for this map are included in the full pack.
    __________________

    *** *** ***
    -My plugins-

    Last edited by St00ne; 03-28-2013 at 21:27.
    St00ne is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 10-29-2014 , 01:08   Re: [CSS] zones commands [1.4d]
    Reply With Quote #8

    Small update to avoid console error (removed FCVAR_REPLICATED flag).
    __________________

    *** *** ***
    -My plugins-
    St00ne is offline
    St00ne
    Veteran Member
    Join Date: Jan 2011
    Location: Annecy - France
    Old 07-03-2017 , 23:48   Re: [CSS] zones commands [1.4e]
    Reply With Quote #9

    - Updated Timer_Spawn using GetClientSerial (avoiding a rare possible error)
    - Edited description and images.
    - Enjoy !
    __________________

    *** *** ***
    -My plugins-
    St00ne 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 05:08.


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