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

[ANY] Map Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SimonTheOne
Member
Join Date: Apr 2010
Plugin ID:
1684
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Execute commands when a certain map starts.
    Unapprover:
    Reason for Unapproving:
    Duplicate.
    Old 05-23-2010 , 10:15   [ANY] Map Commands
    Reply With Quote #1

    Map Commands
    Version 1.0

    Description:
    Map Commands is a plugin i made that executes rcon commands when a map starts.

    In the configuration file you can write which commands you want to execute for which map.

    Code:
    "root"
    {
    	"allmaps"
    	{
    		"0"		"sv_cheats 1"
    		"1"		"sv_gravity 600"
    		"2"		"sv_cheats 0"
    	}
    	"dm_lockdown"
    	{
    		"allmaps"	"1"
    		"0"		"sv_cheats 1"
    		"1"		"ent_remove_all prop_dynamic"
    		"2"		"sv_cheats 0"
    	}
    }
    With this written in the configuration file it would remove all the prop_dynamics and turn sv_gravity to 600 when dm_lockdown starts.

    With the allmaps option set to 1 in dm_lockdown its saying it should execute the allmaps commands as well.
    When you turn it to 0 it doesn't execute the allmaps commands and when you dont have the allmaps option in it at all it will still execute the allmaps commands.


    Convars:
    # sm_map_commands_version - Version of the plugin


    Installation:
    Put the config in sourcemod/data and the .smx in sourcemod/plugins
    Attached Files
    File Type: sp Get Plugin or Get Source (mapcommands.sp - 314 views - 2.1 KB)
    File Type: txt mapcommands_config.txt (224 Bytes, 192 views)
    SimonTheOne is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 05-23-2010 , 10:35   Re: [ANY] Map Commands
    Reply With Quote #2

    How is this functionally different from
    http://forums.alliedmods.net/showthread.php?p=543922
    &
    http://forums.alliedmods.net/showthread.php?p=723873
    &
    http://forums.alliedmods.net/showthread.php?p=598817
    &
    http://forums.alliedmods.net/showthread.php?p=607079
    &
    http://forums.alliedmods.net/showthread.php?p=623728
    &
    http://forums.alliedmods.net/showthread.php?p=760501
    &
    The map-specific config file functionality already built into most of Valve's Orangebox and later games.
    psychonic is offline
    SimonTheOne
    Member
    Join Date: Apr 2010
    Old 05-23-2010 , 10:46   Re: [ANY] Map Commands
    Reply With Quote #3

    ah sry didn't know this already existed
    SimonTheOne is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 05-23-2010 , 13:54   Re: [ANY] Map Commands
    Reply With Quote #4

    You can just add mapname.cfg in the maps folder and it will execute whatever's in there.
    noodleboy347 is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 05-23-2010 , 19:19   Re: [ANY] Map Commands
    Reply With Quote #5

    psychonic, while it provides the same functionality, it does so in a different manner and allows server administrators to manage ALL map configurations in one file rather than having to sort through potentially hundreds of .cfgs.
    __________________
    thetwistedpanda is offline
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 05-23-2010 , 21:46   Re: [ANY] Map Commands
    Reply With Quote #6

    Quote:
    Originally Posted by thetwistedpanda View Post
    and allows server administrators to manage ALL map configurations in one file
    oh so you mean like what server.cfg does.
    dirka_dirka is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 05-23-2010 , 23:23   Re: [ANY] Map Commands
    Reply With Quote #7

    Not at all. This plugin would allow you to have numerous *different* configuration files located in a single file, as opposed to potentially hundreds of individual configuration files in a directory. Server.cfg/map directories are fine, but this allows for a different and superior management for those that run multi-mod or map type servers.
    __________________
    thetwistedpanda is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 05-23-2010 , 23:46   Re: [ANY] Map Commands
    Reply With Quote #8

    Quote:
    Originally Posted by thetwistedpanda View Post
    psychonic, while it provides the same functionality, it does so in a different manner and allows server administrators to manage ALL map configurations in one file rather than having to sort through potentially hundreds of .cfgs.
    Yes, and at least one of the other plugins I linked can do that as well.
    psychonic is offline
    Mnkras
    Senior Member
    Join Date: Mar 2009
    Location: 127.0.0.1
    Old 05-24-2010 , 08:52   Re: [ANY] Map Commands
    Reply With Quote #9

    like rtrigs (round triggers)
    __________________
    Mnkras is offline
    gtamike
    Member
    Join Date: Aug 2009
    Location: UK
    Old 08-12-2010 , 05:20   Re: [ANY] Map Commands
    Reply With Quote #10

    Thanks for this pluggin it's much earlier to manage than others.
    Could you also add a time delay feature? (would help pluggin stand out more to)

    E.G.

    "1" "sv_gravity 600" "delay 0secs"
    "2" "sv_gravity 400" "delay 60secs"
    __________________

    Last edited by gtamike; 08-12-2010 at 05:23.
    gtamike 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 16:54.


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