note: my hook_settransmit is still global so you'll need to wait til i get around to focusing on that
so this is something i made while playing around with sourcemod's new entitylump module added in 1.12. so this won't support any sourcemod version older than 1.12. it is a sourcemod plugin for visualizing and debugging triggers in source engine games. handy for mappers or server owners, or just surfers. this plugin lets you:
- toggle visibility individual triggers by targetname, or classname.
- change colours of individual triggers by targetname, or classname.
- search for specific triggers by targetname or classname.
- identify triggers by pointing your crosshair at them
- easily view a list of all triggers currently on the map
- view entity info like outputs and other properties for any trigger
- save and load profiles so you can easily reload your colour / trigger visibility setup
- share profiles with others
| command | description |
|---|---|
!st or !showtriggers |
opens the main menu |
!stsearch [term] |
search triggers by name/class (empty = show all) |
!identifytrigger |
opens settings for whatever trigger you're looking at |
!sthelp |
get help |
the main menu (!st) gives you access to:
- toggle by type - enable/disable entire trigger categories by classname
- search / find triggers - find specific triggers and view their properties, toggle visibility, etc.
- my enabled triggers - manage triggers that you have toggled on
- display settings - opacity and display mode (todo)
- commands & help - quick reference
when you select a trigger, you can view detailed info including:
- classname and targetname
- entity index and hammerid
- spawnflags
- world position and bounding box
- parent entity (if any)
- all outputs and their targets
- command to change its colour
i will add more soon, but currently we support 4 entities, with some special cases for trigger_multiple:
0 = trigger_multiple
1 = trigger_push
2 = trigger_teleport
3 = trigger_teleport_relative
sm_stcolor <type> <r> <g> <b> [a]
0 = normal
1 = gravity
2 = anti-gravity
3 = base velocity
sm_stcolor_special <type> <r> <g> <b> [a]
// the search menu will generate this link for you with the ent index
sm_stcolor_ent <entity_index> <r> <g> <b> [a]
sm_stopacity <0-255>
todo: currently only solid. want to add beam outlines at some point.
profiles let you save and load your trigger display settings per-map. you can also share and copy other peoples.
sm_stprofile_save <name> [public]
sm_stprofile_load <name> [public] [map]
sm_stprofile_list [public] [map]
sm_stprofile_copy <name> <frommap> [public] [newname]
all color preferences are saved via clientprefs cookies, so they persist across sessions. profiles are stored in a sqlite database triggerprefs.sq3. make sure you add to your addons/sourcemod/configs/databases.cfg:
"triggerprefs"
{
"driver" "sqlite"
"host" "localhost"
"database" "triggerprefs"
"user" "root"
"pass" ""
}
the database will autogenerate
- outline mode is disabled in this version (the beam rendering was causing issues)
- individual trigger settings are stored by hammerid, so they'll persist across map reloads but not across different maps
- the search function checks both targetname and classname
- profiles are map-specific by design



