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 // ///////////////////////////////////////////////////////////////////////////
To run a script in-game, use command sm_ent_script(name of script), in this instance, sm_ent_scriptbigass_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
- 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.