View Single Post
Author Message
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 12-31-2018 , 16:59   [Any] Entity Debugger (v0.0.5 Jan-04-19)
Reply With Quote #1

.
Entity Debugger
v0.0.5





Description:
Tool for debugging entities/maps


Requirements:
(SM 1.10) or (SDKTools extension version + SM 1.9) found here:
https://github.com/JoinedSenses/Sourcemod-SDKTools


ConVars
sm_entitydebugger_triggerfilter
Toggle use of the trigger filter: see g_sEntityFilterList. When enabled, only those in the list will be active


Commands
sm_entdebug
Toggle debug mode

sm_gethammerid
Shoots lazer beam, provides info about entities it hits (Triggers are whitelisted, see: g_sEntityList) , toggles visibility of triggers and enables debug mode.
Debug messages and triggers are only visible to those who have debug mode enabled.

sm_hasprop <entity> <proptype[data/send]> <"propname">
Checks if ent has prop

sm_getentprop <returntype[e,i,f,s,v]> <entity> <proptype[data/send]/> <propname>
Retrieve prop value - Logs to error if incorrect returntype is specified for propname
e: entity
i: int
f: float
s: string
v: vector

sm_setentprop <entity> <proptype[data/send]> <propName> <value[int,float,string,vector]>
Sets prop value

sm_setentpropent <entity1> <proptype[data/send]> <propName> <entity2>
Sets prop ent value

sm_setvariantstring <"variantStr"> <entity> <"inputstr"> | OPTIONAL: <activator> <caller> <outputid>
Untested - Set variant string and run AcceptEntityInput(entity, "inputstr", activator, caller, outputit)

sm_acceptentityinput <entity> <"inputstr"> | OPTIONAL: <activator> <caller> <outputid>
Same as previous command, except it doesn't set variant string

sm_triggerfilter
Toggles the triggerfilter cvar

sm_dumpentities
Dumps entities to /addons/sourcemod/logs/entities/map_name_entities.log

Project here:
Github
__________________

Last edited by JoinedSenses; 01-04-2019 at 19:58.
JoinedSenses is offline