Raised This Month: $68 Target: $400
 17% 

[ANY] Dev Cmds (1.4.1) [28-Jun-2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3012
Plugin Version:
1.4.1
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    44 
    Plugin Description:
    Provides a heap of commands for admins/developers to use.
    Old 06-15-2012 , 00:51   [ANY] Dev Cmds (1.4.1) [28-Jun-2019]
    Reply With Quote #1

    Thanks:
    • Dont Fear The Reaper - Helped testing and slay code for L4D2.
    • disawar1
    • bubbabyte



    Commands: (require "z" root admin flag)
    • Plugins:
    Code:
    sm_refresh // Refresh plugins (same as "sm plugins refresh"). sm_renew // Unload and Refresh plugins (same as "sm plugins unload_all; sm plugins refresh"). sm_unload // Unload all plugins (same as "sm plugins unload_all).

    • General:
    Code:
    sm_round // Executes 'mp_restartgame 1' to restart round sm_cheats // Toggles sv_cheats. sm_logit <text> // Logs specified text to "sourcemod/logs/sm_logit.txt". sm_gametime // Displays the GetGameTime() float. sm_createent <classname> // Creates and removes the entity classname, reports success.

    • Cvars / Commands / Fake Client Command:
    Code:
    sm_cv <cvar> [value] // Get/Set cvar value without the notify flag. cv <cvar> [value] // Get/Set cvar value without the notify flag. sm_e <command> [args] // Executes a cheat command. e <command> [args] // Executes a cheat command. sm_fcmd <#userid|name> <command> [args] // Executes a fake client command on the target you specify.

    • In-game View/Position stuff:
    Code:
    sm_views // Saves your current position and eye angles. sm_viewr // Teleports you to the saved position and eye angles. sm_pos // Displays your position vector. sm_tel <vector pos> [vector ang] // Teleport yourself to the x y z vector specified.

    • Entity Info / Delete / Entity and Model Lists:
    Code:
    sm_del // Deletes the entity your crosshair is over. sm_ent // Displays info about the entity your crosshair is over. sm_ente <entity> // Displays info about the entity you specify. sm_find <classname> // List entity indexes from the given classname. sm_findname <targetname> // List entity indexes from a partial targetname. sm_box <entity> // Displays a beam box around the specified entity for 5 seconds. sm_count // Displays a list of all spawned entity classnames and count. sm_modlist // Saves a list of all the models used on the current map to "sourcemod/logs/models_<MAPNAME>.txt". sm_anim // Show your players animation sequence number (for 6 * 0.5 seconds).

    • Entity Properties - Prop_Data (sm_dump_datamaps) and Prop_Send (sm_dump_netprops):
    Code:
    sm_prop <prop> [value] // Affects the entity you aim at. sm_propent <ent> <prop> [val] // Affects the specified entity. sm_propself <prop> [value] // Affects yourself. sm_propi <prop> [value] // Affects yourself.

    • Entity Inputs and Outputs:
    Code:
    sm_input <input> [param] // Makes the entity you're aiming at accept an Input. Optionally give a param, eg: sm_input color "255 0 0" sm_inputent <entity|targetname> <input> [param] // Makes the specified entity accept an Input. Optionally give a param, eg: sm_inputent 5 color "255 0 0" sm_inputme <input> [param] // Makes you accept an entity Input. Optionally give a param, eg: sm_inputme color "255 0 0" sm_output <output> // Watches the specified output on the entity aimed at. sm_outputent <ent> <output> // Watches the specified entity and specified output. sm_outputme <output> // Watches the specified output on yourself. sm_outputstop // Stops watching all entity outputs.

    • Particles:
    Code:
    sm_part <name> // Displays a particle you specify. Automatically removed after 5 seconds. sm_parti <name> // Displays a particle where you are pointing. Automatically removed after 5 seconds.

    • L4D / L4D2 Specific:
    Code:
    sm_lobby // Calls a vote (public command access). sm_ledge // Enables/Disables ledge hanging. sm_spit [#userid|name] // Toggles spitter goo dribble on self (with no args) or specified targets. sm_alloff // Toggles - AI director on/off, z_common_limit, sb_hold. sm_director // Toggles - AI director on/off. sm_hold // Toggles sb_hold - Stop the survivor bots moving but allows them to shoot sm_halt // Toggles sb_stop - Stops the survivor bots from moving and shooting. sm_nb // Toggles nb_stop - Stops all survivors/specifial infected from moving. sm_slaycommon // Slays all common infected. (Command thanks to "Don't Fear The Reaper".) sm_slaywitches // Slays all witches. (Command thanks to "Don't Fear The Reaper".) sm_c // Sets the game mode to Coop. sm_r // Sets the game mode to Realism. sm_s // Sets the game mode to Survival. sm_v // Sets the game mode to Versus.

    • CSS / L4D / L4D2 Specific:
    Code:
    sm_nv [#userid|name]          // Toggles nightvision.

    • CSS Specific:
    Code:
    sm_bots                       // Opens a menu to spawn bots. sm_money                      // Opens a menu of players, sets 16000 money.




    Changes:
    Code:
    1.4.1 (28-Jun-2019)
        - Changed PrecacheParticle method.
    
    1.4 (01-Jun-2019)
        - Added "sm_anim" to show your players animation sequence number (for 6 * 0.5 seconds).
        - Changed "sm_tel" to also accept angles when teleporting.
        - Changed "sm_ente" to work from the server console.
    
    1.3 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.2 (09-Aug-2013)
        - Reverted the change to "sm_alloff".
        - Changed "sm_fcmd" to allow command arguments, Usage: sm_fcmd <#userid|name> <command> [args].
    
    1.1 (22-Jun-2012)
        - Added "sm_findname" to list entities by matching a partial targetname.
        - Changed "sm_modlist" to save the file as "models_mapname.txt".
        - Changed "sm_input", "sm_inputent" and "sm_inputme" to accept parameters.
        - Changed "sm_alloff" to not toggle the director or sb_hold_position.
        - Fixed "sm_find" throwing errors for non-networked entities.
    
    1.0 (15-Jun-2012)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_dev_cmds.sp - 311 views - 56.9 KB)
    __________________

    Last edited by Silvers; 06-28-2019 at 10:45.
    Silvers is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 06-15-2012 , 03:18   Re: [ANY] Dev Cmds (1.0) [15-Jun-2012]
    Reply With Quote #2

    Some handy commands. Thanks
    Visual77 is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 06-15-2012 , 04:48   Re: [ANY] Dev Cmds (1.0) [15-Jun-2012]
    Reply With Quote #3

    Quote:
    Originally Posted by Silvers View Post
    Code:
    sm_modlist                    // Saves a list of all the models used on the current map to "sourcemod/logs/models.txt".
    why not "models_<mapname>.txt"?
    Leonardo is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-15-2012 , 04:53   Re: [ANY] Dev Cmds (1.0) [15-Jun-2012]
    Reply With Quote #4

    Quote:
    Originally Posted by Leonardo View Post
    why not "models_<mapname>.txt"?
    Because I didn't think. I only used that command a few times in the past and never needed again. Will change in a future update.
    __________________

    Last edited by Silvers; 06-15-2012 at 04:53.
    Silvers is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 06-15-2012 , 06:50   Re: [ANY] Dev Cmds (1.0) [15-Jun-2012]
    Reply With Quote #5

    also
    are you planning to add command to change gamemode to the some mutation?
    Leonardo is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-15-2012 , 07:08   Re: [ANY] Dev Cmds (1.0) [15-Jun-2012]
    Reply With Quote #6

    For L4D/2? No, that's what I made Vote Mode for: http://forums.alliedmods.net/showthread.php?t=179279
    __________________
    Silvers is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 06-15-2012 , 08:08   Re: [ANY] Dev Cmds (1.0) [15-Jun-2012]
    Reply With Quote #7

    ah ok
    __________________
    Leonardo is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-22-2012 , 03:10   Re: [ANY] Dev Cmds (1.1) [22-Jun-2012]
    Reply With Quote #8

    Plugin updated:

    1.1 (22-Jun-2012)
    - Added "sm_findname" to list entities by matching a partial targetname.
    - Changed "sm_modlist" to save the file as "models_mapname.txt".
    - Changed "sm_input", "sm_inputent" and "sm_inputme" to accept parameters.
    - Changed "sm_alloff" to not toggle the direction or sb_hold_position.
    - Fixed "sm_find" throwing errors for non-networked entities.
    __________________
    Silvers is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 06-22-2012 , 13:10   Re: [ANY] Dev Cmds (1.1) [22-Jun-2012]
    Reply With Quote #9

    Very useful спасибо
    __________________
    disawar1 aka raziEiL on: Sourcemod, GitHub, Bitbucket, DeviantArt
    > Grokking Algorithms!
    disawar1 is offline
    starstrucktiger
    Member
    Join Date: Jul 2012
    Location: Kansas
    Old 06-11-2014 , 09:44   Re: [ANY] Dev Cmds (1.2) [09-Aug-2013]
    Reply With Quote #10

    How exactly do you use the createent command? I create an entity, and it says success. But it doesn't really let me set a model or anything.
    starstrucktiger 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 22:41.


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