[TF2] Sound and Entity Debugger
v1.0.0
Description:
This plugin was created for the development, testing, and debugging of plugins particular to sounds, entities, and temp entities. On command toggle, messages will print to chat, displaying information about entities or sound when they are spawned, created, or transmitted. It can get rather messy.
Only tested in TF2
What this plugin does:
When the command is toggled and when one of these hooks is triggered, it prints a message to chat about the entities with the class name within
g_saEntList during whatever phase it is in.
If there is another entity class you want to get information on, add it to g_saEntList and compile.
Uses SDKHooks to hook entity creation, spawn, and transmit.
..//Prints class name of entity created/spawned/transmitted. Prints particle information.
Hooks Normal and Ambient sounds.
..//Prints out the entity which created the sound and the name of the sound which played.
Creates a Temp Ent Hook
..//Prints out the type of temp entity that is created.
This plugin was initially created to test a player hide plugin which deals with sounds and transmission.
Commands: (ADMFLAG_ROOT)
sm_teinf - Toggles Temporary Entity Info
sm_einf - Toggles Entity Info
sm_trinf - Toggles Transmission Info
Forewarning, this command can get messy quick. Use sparingly
sm_pinf - Toggles Particle Info
Forewarning, this command can get messy quick. Use sparingly
sm_sinf - Toggles Sound Info
sm_tedisable - Enable/Disable Temporary Entities
//Used to help determine which items are temp ents
Installation:
Upload to your /addons/sourcemod/plugins directory, and reboot your server or type "sm plugins load debugger" into your console or rcon.
To Do:- None at the moment, unless someone has an idea on cleaning up the chat output or other suggestions.
Changelog:.