Raised This Month: $186 Target: $400
 46% 

[ANY] Entity Utilities (v1.17 18/05/2018)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Rachnus
Senior Member
Join Date: Jun 2016
Location: Funland
Plugin ID:
6128
Plugin Version:
1.17
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Create/View/Edit entities
    Old 05-15-2018 , 17:57   [ANY] Entity Utilities (v1.17 18/05/2018)
    Reply With Quote #1

    Entity Utilities v1.17


    Description:

    Create/View/Edit properties of entities either created by client or map

    Previews:

    Watcher

    Scripts


    Commands:

    Quote:
    sm_ent_create - Creates an entity
    sm_ent_keyvalue - Dispatch a keyvalue to an entity (Used before spawning)
    sm_ent_keyvaluefloat - Dispatch a float keyvalue to an entity (Used before spawning)
    sm_ent_keyvaluevector - Dispatch a vector keyvalue to an entity (Used before spawning)
    sm_ent_spawn - Spawns the entity

    sm_ent_variant- Set Variant String (String will be set before each sm_ent_input call)
    sm_ent_variant_clear- Clear Variant String (Will remove variant string being set before each sm_ent_input call)
    sm_ent_input - Accept Entity Input

    sm_ent_script - Execute multiple lines of command with a help of a script found in configs/entityutilities.cfg
    sm_ent_script_reload - Reloads scripts (configs/entityutilities.cfg)
    sm_ent_script_record - Starts recording all commands executed by this plugin
    sm_ent_script_save - Saves recorded script to configs/entityutilities.cfg
    sm_ent_script_clear - Clears the current recording
    sm_ent_script_delete- Delete existing script from configs/entityutilities.cfg)
    sm_ent_script_list- List all existing scripts in configs/entityutilities.cfg

    sm_ent_position - Sets position of selected entity to aim (Position can be passed as arguments as 3 floats)
    sm_ent_angles - Sets angles of selected entity to aim (Angles can be passed as arguments as 3 floats)
    sm_ent_velocity - Sets velocity of selected entity, passed by argument as 3 floats

    sm_ent_selected - Prints generic information about selected entity
    sm_ent_select - Select an entity at aim (Selects by name if argument is passed)
    sm_ent_select_index - Select an entity by entity index
    sm_ent_select_ref - Select an entity by entity reference
    sm_ent_select_self - Select your player
    sm_ent_select_world - Select the world (Entity 0)

    sm_ent_watch - Prints to chat when prop passed by argument changes
    sm_ent_unwatch - Stops watching for prop
    sm_ent_watch_clear - Clears all watched props
    sm_ent_watch_list - List all props being watched)

    sm_ent_setprop - Set property of an entity
    sm_ent_getprop - Print property of an entity

    sm_ent_killall - Kills all entities spawned by players
    sm_ent_killmy - Kills entities spawned by player using this command
    sm_ent_killunowned - Kills entities spawned by players that disconnected

    sm_ent_list - Lists all entities owned by a client
    sm_ent_count - Prints amount of existing entities with classname passed as arg
    Convars:

    Quote:
    entityutilities_destroy_ents_on_disconnect - 1 - Should the players entities get destroyed on disconnect
    entityutilities_print_precise_vectors - 1 - Should vectors be printed with many decimals or 2 decimals
    Config:

    Quote:
    PHP Code:
    ////////////////////////////////////////////////////////////////////////////
    //                                                            
    //    Enter a number before each step of the script.            
    //    The script will be executed in whatever order             
    //    the numbers are in.                                    
    //                                                            
    //    Commands are listed on the plugin page:                   
    //    https://forums.alliedmods.net/showthread.php?t=307573    
    //                                                   
    ///////////////////////////////////////////////////////////////////////////

    "Scripts"
    {
        
    "bigass_chicken"
        
    {
            
    "1" "sm_ent_create chicken"
            "2" "sm_ent_keyvalue modelscale 20"
            "3" "sm_ent_spawn"
        
    }
        
        
    "watch_health"
        
    {
            
    "1" "sm_ent_select_self"
            "2" "sm_ent_watch m_iHealth"
        
    }
        
        
    "get_pos"
        
    {
            
    "1" "sm_ent_select_self"
            "2" "sm_ent_getprop m_vecOrigin"
        
    }

    To run a script in-game, use command sm_ent_script (name of script), in this instance, sm_ent_script bigass_chicken to spawn a chicken with modelscale 20
    Changelog:

    Quote:
    v1.0
    • Release

    v1.10
    • Fixed plugin to work with other games than CSGO ...
    • Added watch system (Whenever a property changes, it will notify the user in the chat)
    • Added the following commands:
    • - sm_ent_watch - Prints to chat when prop passed by argument changes
    • - sm_ent_unwatch - Stops watching for prop
    • - sm_ent_watch_clear - Clears all watched props
    • - sm_ent_watch_list - List all props being watched

    v1.11
    • Fixed watch errors when a property is being watched and the entity gets killed

    v1.12
    • Can now enter variant string for sm_ent_input calls
    • Added the following commands:
    • - sm_ent_variant - Set Variant String (String will be set before each sm_ent_input call)
    • - sm_ent_variant_clear - Clear Variant String (Will remove variant string being set before each sm_ent_input call)

    v1.13
    • Added scripts, allows you to execute multiple commands by only executing one command
    • Added config file: configs/entityutilities.cfg
    • Added the following commands:
    • - sm_ent_script - Execute multiple lines of command with a help of a script found in configs/entityutilities.cfg
    • - sm_ent_script_reload - Reloads scripts (configs/entityutilities.cfg)

    v1.14
    • Can now record/delete scripts from ingame
    • Added the following commands:
    • - ent_script_record - Starts recording all commands executed by this plugin
    • - ent_script_save - Saves recorded script to configs/entityutilities.cfg"
    • - ent_script_clear - Clears the current recording
    • - ent_script_delete - Delete existing script from configs/entityutilities.cfg

    v1.15
    • No longer records after saving a script

    v1.16
    • Can now list all scripts and its contents ingame
    • Added command:
    • - sm_ent_script_list - List all existing scripts in configs/entityutilities.cfg

    v1.17
    • Can now stop recording by using sm_ent_script_record whilst already recording
    Extra:

    Quote:
    To get list of props/classes, enter these commands in your server console:
    sm_dump_netprops netprops.txt
    sm_dump_datamaps datamaps.txt
    sm_dump_classes classes.txt

    After doing that, there should be 3 .txt files in your server csgo folder

    Using sm_ent_input Kill on player/world will cause your server to crash

    If you're confused what sm_ent_input does, look up an entity on valve developer page. Lets say we have a button selected (https://developer.valvesoftware.com/wiki/Func_button). Press CTRL + F and search for "Inputs" section. Here are more or less all of the inputs you can fire for this particular entity by using this command. sm_ent_input Press will press the button.
    Credits:
    __________________
    Github: https://github.com/Rachnus
    Steam: http://steamcommunity.com/id/rachnus
    _____________________________________________ _________
    Taking private requests

    Last edited by Rachnus; 05-18-2018 at 22:02.
    Rachnus is offline
    404UNF
    ( ͡ ͜ʖ ͡)
    Join Date: Dec 2011
    Location: 🍁
    Old 05-15-2018 , 21:05   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #2

    Nice, been waiting for another entity management system while tinkering with tEntDev to try to get it working again. I'm switching to this.
    __________________
    I'm not a SourcePawn expert, I just play one on TV.
    Want to join the SourceMod Discord server? Click here!

    404UNF is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 05-16-2018 , 00:17   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #3

    LOL THAT HUGE CHICKEN
    I'm downloading it even just for that feature LOL.
    Thanks dev!
    __________________
    Obyboby is offline
    Rachnus
    Senior Member
    Join Date: Jun 2016
    Location: Funland
    Old 05-16-2018 , 01:04   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #4

    Quote:
    Originally Posted by Obyboby View Post
    LOL THAT HUGE CHICKEN
    I'm downloading it even just for that feature LOL.
    Thanks dev!
    chicken command has already been requested, so might even add that for instant big chicken cuz why not
    __________________
    Github: https://github.com/Rachnus
    Steam: http://steamcommunity.com/id/rachnus
    _____________________________________________ _________
    Taking private requests

    Last edited by Rachnus; 05-17-2018 at 12:30.
    Rachnus is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 05-16-2018 , 01:23   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #5

    Quote:
    Originally Posted by Rachnus View Post
    chicken command has already been requested, so might even add that for instant big chicken cuz why not
    Is it still possible to shoot and kill the chickens, or even better, make them follow you when they're scaled?
    LOL THAT WOULD BE DOPE I can't wait to be home tonight to try it ahahaha
    Btw hopefully it works with Advanced admin commands which I use to make the chickens explosive, glowing, etc etc
    __________________
    Obyboby is offline
    Rachnus
    Senior Member
    Join Date: Jun 2016
    Location: Funland
    Old 05-16-2018 , 01:40   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #6

    Quote:
    Originally Posted by Obyboby View Post
    Is it still possible to shoot and kill the chickens, or even better, make them follow you when they're scaled?
    LOL THAT WOULD BE DOPE I can't wait to be home tonight to try it ahahaha
    Btw hopefully it works with Advanced admin commands which I use to make the chickens explosive, glowing, etc etc
    Yea but the hitbox is still the same, so you kind of have to guess where its origin is and spam E until u find it
    __________________
    Github: https://github.com/Rachnus
    Steam: http://steamcommunity.com/id/rachnus
    _____________________________________________ _________
    Taking private requests
    Rachnus is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 05-16-2018 , 01:55   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #7

    Quote:
    Originally Posted by Rachnus View Post
    Yea but the hitbox is still the same, so you kind of have to guess where its origin is and spam E until u find it
    Could still make them follow you then scale them afterwards, right?
    __________________
    Obyboby is offline
    Rachnus
    Senior Member
    Join Date: Jun 2016
    Location: Funland
    Old 05-16-2018 , 02:34   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #8

    Quote:
    Originally Posted by Obyboby View Post
    Could still make them follow you then scale them afterwards, right?
    Yes
    __________________
    Github: https://github.com/Rachnus
    Steam: http://steamcommunity.com/id/rachnus
    _____________________________________________ _________
    Taking private requests
    Rachnus is offline
    PinHeaDi
    Senior Member
    Join Date: Jul 2013
    Location: Bulgaria
    Old 05-16-2018 , 05:19   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #9

    Could this be used to delete entities from the map permanently and save them in a config maybe?
    __________________
    PinHeaDi is offline
    Rachnus
    Senior Member
    Join Date: Jun 2016
    Location: Funland
    Old 05-16-2018 , 11:31   Re: [ANY] Entity Utilities (v1.0 16/05/2018)
    Reply With Quote #10

    Quote:
    Originally Posted by PinHeaDi View Post
    Could this be used to delete entities from the map permanently and save them in a config maybe?
    Stripper already does that
    __________________
    Github: https://github.com/Rachnus
    Steam: http://steamcommunity.com/id/rachnus
    _____________________________________________ _________
    Taking private requests
    Rachnus 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 17:09.


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