Raised This Month: $89 Target: $400
 22% 

[CSS] AutoGungame


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Plugin ID:
1016
Plugin Version:
1.4
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    A plugin to change between CSS and Gungame based on map prefixes
    Old 07-20-2009 , 07:51   [CSS] AutoGungame
    Reply With Quote #1

    Autogungame by BDeep Version 1.4

    This plugin executes different configs based on the map prefix. If a map begins with de_ or cs_ it will exec the config that you specify in the autoguname.cfg, any other map it will exec the config that you specify autoguname.cfg.

    CVars:

    // This file was auto-generated by SourceMod (v1.2.1)
    // ConVars for plugin "autogungame.smx"
    // The prefix of a hostage map.
    // Default: "cs_"
    sm_autogungame_csMapPrefix "cs_"
    // A CFG File to run for NON Gungame Maps. Example EXEC CSS.CFG
    // Default: ""
    sm_autogungame_csscfg "exec csscvars.cfg"
    // The prefix of a defuse map.
    // Default: "de_"
    sm_autogungame_deMapPrefix "de_"
    // A CFG File to run for Gungame Maps. Example EXEC GG.CFG
    // Default: ""
    sm_autogungame_ggcfg "exec ggcvars.cfg"

    I created this plugin for a few reasons.
    1. Couldnt find one like it here
    2. I wanted to move away from EventScripts and any other addons due to crashes
    3. I like the idea of one server running two mods.

    I ran this plugin all last night on my server with 15 people playing for about 5 hours and had no issues. If you have any or want any changes please let me know. This is only my second plugin so be gentle

    I would like to thank these people for helping me learn to write plugins:
    psyconic
    pheadxdll
    pRED
    GreyScale
    bl4nk
    DJ Tsunami
    Also Berni for the Approval and the last code changes

    Version 1.4 - Changed last elseif once again per Berni's post on page 2 Also changed the sm_auto_gungame_version per Berni's post.

    Version 1.3 - Changed last Elseif back to using strcontains.

    Version 1.2 - Updated Version cvar to sm_auto_gungame_version. Alos updated code per bl4nk's post.

    Version 1.1 - Updated cvar AutoGungame Version to AutoGunGameVersion (per Antithasys)
    Version 1.0 - Updated to add cvar for the version.
    Please update your servers, Thanks
    Attached Files
    File Type: zip example_configs.zip (1.6 KB, 2946 views)
    File Type: sp Get Plugin or Get Source (autogungame.sp - 3799 views - 2.4 KB)
    __________________

    Last edited by BDeep; 09-10-2009 at 16:56. Reason: Update to 1.4
    BDeep is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 07-23-2009 , 15:37   Re: [CSS] AutoGungame
    Reply With Quote #2

    Over 100 views and no comments!?
    Just out of curiousity do I have to do something to get this approved or did I do something wrong?
    __________________
    BDeep is offline
    coach
    SourceMod Donor
    Join Date: Jun 2008
    Old 07-24-2009 , 08:07   Re: [CSS] AutoGungame
    Reply With Quote #3

    Loaded this plugin but not quite sure if what I want is possible as I can't seem to get it. I want it to be in GunGame mode on "cs" maps & normal css on "de" maps. This is how I setup the autogungame.cfg:

    // The prefix of a hostage map.
    // -
    // Default: "cs_"
    sm_autogungame_csMapPrefix "cs_"

    // A CFG File to run for NON Gungame Maps. Example EXEC CSS.CFG
    // -
    // Default: ""
    sm_autogungame_ggcfg "exec gg.cfg"

    // The prefix of a defuse map.
    // -
    // Default: "de_"
    //sm_autogungame_deMapPrefix "de_"

    // A CFG File to run for Gungame Maps. Example EXEC GG.CFG
    // -
    // Default: ""
    sm_autogungame_csscfg "exec css.cfg"

    I changed it around & thought it would work but no go. I have the normal CSS working but it doesn't run the GunGame cfg on map change. If I run the gg.cfg from console it will then become GunGame but would like it to this automatically.
    coach is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 07-24-2009 , 08:12   Re: [CSS] AutoGungame
    Reply With Quote #4

    Try this,

    // The prefix of a hostage map.
    // -
    // Default: "cs_"
    sm_autogungame_csMapPrefix "XX_"

    Then as long as you dont have a map that has "XX_" in it you should be ok.

    It will run GG on cs_ maps (and and thing else that doesnt have cs_) and turn it off on de_

    If this doesnt work let me know I will make on/off cvars for the de_ and the cs_ cvars.

    So here is what your config should be:

    // The prefix of a hostage map.
    // -
    // Default: "cs_"
    sm_autogungame_csMapPrefix "XX_"

    // A CFG File to run for NON Gungame Maps. Example EXEC CSS.CFG
    // -
    // Default: ""
    sm_autogungame_ggcfg "exec css.cfg"

    // The prefix of a defuse map.
    // -
    // Default: "de_"
    //sm_autogungame_deMapPrefix "de_"

    // A CFG File to run for Gungame Maps. Example EXEC GG.CFG
    // -
    // Default: ""
    sm_autogungame_csscfg "exec gg.cfg"
    __________________

    Last edited by BDeep; 07-24-2009 at 08:17. Reason: missed some mistakes in previous post added eample config
    BDeep is offline
    coach
    SourceMod Donor
    Join Date: Jun 2008
    Old 07-24-2009 , 08:36   Re: [CSS] AutoGungame
    Reply With Quote #5

    Thanks, yep that worked good. Testing now
    coach is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 07-24-2009 , 09:03   Re: [CSS] AutoGungame
    Reply With Quote #6

    Cool, let me know how it works or if you have any other problems.
    __________________
    BDeep is offline
    Aresz
    New Member
    Join Date: Jul 2009
    Old 07-25-2009 , 03:11   Re: [CSS] AutoGungame
    Reply With Quote #7

    You dont realy need this plugin, if you have Mani Admin pluing installed. Just maka a gg_map.cfg and put it in your cstrike/cfg/mani_admin_plugin/map_config/ directory.
    Aresz is offline
    coach
    SourceMod Donor
    Join Date: Jun 2008
    Old 07-25-2009 , 04:53   Re: [CSS] AutoGungame
    Reply With Quote #8

    All working fine. As I use SM & not mani it is not an option.

    My current cfg:

    // The prefix of a hostage map.
    // Default: "cs_"
    sm_autogungame_csMapPrefix "XX_"

    // A CFG File to run for NON Gungame Maps. Example EXEC CSS.CFG
    // -
    // Default: ""
    sm_autogungame_ggcfg "exec gg.cfg"

    // The prefix of a defuse map.
    // -
    // Default: "de_"
    //sm_autogungame_deMapPrefix "de_"

    // A CFG File to run for Gungame Maps. Example EXEC GG.CFG
    // -
    // Default: ""
    sm_autogungame_csscfg "exec css.cfg"

    I am wanting to add gg maps. Hints on how to have GunGame run on both cs_ & gg_ maps. Still leaving de_ maps as normal CSS.
    coach is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 07-25-2009 , 13:33   Re: [CSS] AutoGungame
    Reply With Quote #9

    You dont need to do anything. That is what the plugin was designed to do. Your current config is perfect no changes needed just add your gungame maps as you would any other map.
    __________________
    BDeep is offline
    coach
    SourceMod Donor
    Join Date: Jun 2008
    Old 07-25-2009 , 21:43   Re: [CSS] AutoGungame
    Reply With Quote #10

    Excellent!!!! Thank you.
    coach 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 00:54.


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