AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Entity Utilities (v1.18 07/06/2018) (https://forums.alliedmods.net/showthread.php?t=307573)

Rachnus 05-15-2018 17:57

[ANY] Entity Utilities (v1.18 07/06/2018)
 
Entity Utilities v1.18


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

v1.18
  • Can now set/get Prop_Send values

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:

404UserNotFound 05-15-2018 21:05

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Nice, been waiting for another entity management system while tinkering with tEntDev to try to get it working again. I'm switching to this.

Obyboby 05-16-2018 00:17

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
LOL THAT HUGE CHICKEN
I'm downloading it even just for that feature LOL.
Thanks dev!

Rachnus 05-16-2018 01:04

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Quote:

Originally Posted by Obyboby (Post 2592382)
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 :bee:

Obyboby 05-16-2018 01:23

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Quote:

Originally Posted by Rachnus (Post 2592385)
chicken command has already been requested, so might even add that for instant big chicken cuz why not :bee:

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

Rachnus 05-16-2018 01:40

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Quote:

Originally Posted by Obyboby (Post 2592387)
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

Obyboby 05-16-2018 01:55

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Quote:

Originally Posted by Rachnus (Post 2592388)
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?

Rachnus 05-16-2018 02:34

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Quote:

Originally Posted by Obyboby (Post 2592391)
Could still make them follow you then scale them afterwards, right?

Yes

PinHeaDi 05-16-2018 05:19

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Could this be used to delete entities from the map permanently and save them in a config maybe?

Rachnus 05-16-2018 11:31

Re: [ANY] Entity Utilities (v1.0 16/05/2018)
 
Quote:

Originally Posted by PinHeaDi (Post 2592406)
Could this be used to delete entities from the map permanently and save them in a config maybe?

Stripper already does that


All times are GMT -4. The time now is 08:58.

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