Raised This Month: $66 Target: $400
 16% 

[ANY] Dev Cmds (1.14) [30-Sep-2020]


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

    Thanks:
    • Dont Fear The Reaper - Helped testing and slay code for L4D2.
    • disawar1 - Testing and smlib code for sm_box.
    • Dragokas - Providing code for several vector commands.
    • 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_ccmd <#userid|name> <command> [args] // Executes a client command on the target you specify. sm_fcmd <#userid|name> <command> [args] // Executes a fake client command on the target you specify. sm_scmd Executes a server command.

    • 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_setang // <#userid|name> <vector ang>. Teleport someone to the x y z angle vector specified. sm_setpos // <#userid|name> <vector ang>. Teleport someone to the x y z angle vector specified. sm_tel <vector pos> [vector ang] // Teleport yourself to the x y z vector specified. sm_range // [entity] Shows how far away an object is that you're aiming at, or optional arg to specify an entity index. sm_near // Lists all nearby entities within the specified range. Usage sm_near: [range]. sm_dist // Enter twice to measure distance between the origins you stand on. sm_distdir // Get distance between you and end point of direction you are looking at (considering collision). sm_distfloor // Get distance between you and floor below you (considering collision). sm_distroof // Get distance between you and roof above your head (considering collision). sm_size // Get sizes (Width, Length, Heigth) of your player. sm_sizee // Get sizes (Width, Length, Heigth) of the entity you are looking at.

    • 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> <maxdist> // 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 // <sequence> (optional). Show aimed entities animation sequence number (for 6 * 0.5 seconds) or your own if not aimed. Optionally, it can set sequence. sm_weapons [index] // Lists players weapons and indexes. Either yourself, or aim target or optional index via cmd args. sm_clients // Lists client indexes/userids and some other data. sm_ice <entity> (optional). Freeze / unfreeze aim target or specified entity. sm_damage <client> - to track damage info dealt to this client or by this client. Use -1 or empty to track everybody.

    • 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] [activator] [caller] // 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] [activator] [caller] // Makes the specified entity accept an Input. Optionally give a param, eg: sm_inputent 5 color "255 0 0". sm_inputme <input> [param] [activator] [caller] // 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_nospawn // Prevents all types of infected from spawning sm_slayall // Slays all common and special infected and witches sm_slaycommon // Slays all common infected. sm_slaywitches // Slays all witches. 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.14 (30-Sep-2020)
        - Fixed compile errors on SM 1.11.
    
    1.13 (20-Sep-2020)
        - Added command "sm_setpos" to set target(s) origin position. Requested by "Tonblader".
        - Fixed command "sm_cheats" not working in all games.
        - Increased model string length for "sm_ent" and "sm_ente" commands.
    
    1.12 (07-Jun-2020)
        - Added command "sm_setang" to set target(s) view angles. Requested by "Tonblader".
    
    1.11 (10-May-2020)
        - Various changes to tidy up code.
    
    1.10 (25-Mar-2020)
        - Changed "sm_range" to add an optional arg for specifying an entity.
        - Fixed command "sm_cheats" not toggling "sv_cheats".
        - Some text changes from previously added commands.
    
    1.9 (19-Mar-2020)
        Update with changes provided by "Dragokas":
        - Added command "sm_ice" to freeze any client/entity from moving.
        - Changed command "sm_anim" to allow getting the sequence for a specified entity.
        - Fixed command "sm_stopang" from not repeating.
        - Fixed commands "sm_halt", "sm_hold" and "sv_cheats" from not accurately detecting the cvar setting being changed.
    
    1.8 (02-Mar-2020)
        Update by "Dragokas":
        - Appended "sm_find" <classname> <maxdist> (2nd argument filters entities located in specified radius).
        - Added command "sm_damage" <client> - to track damage info dealt to this client or by this client. Use -1 or empty to track everybody.
        - (L4D & L4D2) Added command "sm_nospawn" to prevent all types of infected from spawning.
        - (L4D & L4D2) Added command "sm_slayall" to slay all common and special infected and witches.
    
        Update by "Silvers":
        - Added command "sm_scmd" to execute a server command.
        - Changed command "sm_count" to work better and sort the classnames list.
    
    1.7 (02-Nov-2019)
        - Fixed copy paste error preventing the plugin from compiling. Thanks to "eyal282" for reporting.
    
    1.6 (01-Nov-2019)
        - Changed "sm_input", "sm_inputent" and "sm_inputme" to accept activator and caller params.
        - Fixed commands "sm_ledge", "sm_spit" and "sm_nv" failing with ProcessTargetString. Thanks to "Marttt".
    
    1.5 (30-Oct-2019)
        - Added command "sm_clients" to list client indexes/userids and some other data.
        - Added command "sm_weapons" to list your own weapons or that of the target you're aiming at or specified index by command arg.
        - Added command "sm_range" to find how far away an object is.
        - Added command "sm_near" to list nearby object classnames.
        - Added various vector commands  provided by "Dragokas": "sm_dist", "sm_distdir", "sm_distfloor", "sm_distroof", "sm_size", "sm_sizee".
        - Changed "sm_ent" and "sm_ente" to add more info. Provided by "Marttt".
        - Changed "sm_box" laser outlines to use smlib draw box with correct angles matrix rotation. Provided by "disawar1".
        - The "sm_box" changes work when the smlib include is present, or defaults to old version, no edits required.
        - Various fixes and changes.
    
    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.



    Optional Include:
    1. The sm_box command can use SMLib when the <smlib> include is detected on compiling the plugin.
    2. Download SMLib here: for new syntax or old syntax



    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 - 65 views - 94.7 KB)
    __________________

    Last edited by Silvers; 09-29-2020 at 23:00.
    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 спасибо
    __________________
    > Contact me in Steam for private works.
    Sourcemod, GitHub, Bitbucket, DeviantArt
    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 14:40.


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