A collection of scripts for Garry's Mod to see information about map internals, such as entities, triggers and clip brushes.
Requires NikNaks.
These scripts were migrated from my misc scripts repo, if you need to refer to the history you can find them here: showtriggers/showclips (2), picker3
<TODO: image>
Shows trigger bounds and colors them based on their function.
Setting developer to anything other than 0 will show picker information, such as class, position and outputs, and
draw lines to teleport destinations.
- Orange - Unclassified
- Dark Orange - trigger_once
- Green - trigger_multiple
- Red - Hurt
- Blue - Teleport
- Yellow Green - Speed
- Dark Yellow Green - Anti-Pre-Speed (for Surf/Bunny Hop)
- Cyan - Obsidian Conflict specific
- Light Gray - Functional (Non-Visual) Brush Entities
<TODO: image>
Shows invisible (clip) brushes.
- Magenta - Player Clip
- Purple - NPC Clip
- Red - Player and NPC Clip
- Yellow - Nodraw
- White - Invisible by other means (
tools/toolsinvisible) - Pale Blue - Skybox
<TODO: image>
Shows information about entities you're looking at, such as class, position, angle, model, name (targetname), outputs,
etc. When NikNaks is installed, it will populate static props and entities that are apart of the map.
Entities without models will show up as sprites, correlating to their icon used in the Hammer editor if they exist, a defined icon to closely represent what the entity does, or a question mark otherwise.
If an entity exists to the client, it will have its entity index next to its class name, prepended with an underscore
(e.g. (_1)), or (CS) if the entity only exists clientside.
If an entity uses a brush model (Model: *<number>), it will be outlined in orange.
- Holding
ALTwill show more information such as unmapped keyvalues - Holding
ALTand scrolling will let you move the text vertically, along with unrestricting it from its circle - When the cursor is visible, its position will be used instead of your player's look direction
- If a trigger or brush model entity's position shows as a red
0.00, 0.00, 0.00means that the origin of the brush model is set wrong compared to the center of its bounds- This commonly happens with some older maps, or is a sign of weird data manipulation when the map was created, parts of the map were generated with an external library or tool, or the creator decided to drag the blue ball in Hammer to 0,0,0 for some reason
- please do not take "generated with an external tool" to mean LLMs were used and baselessly harass mappers over it, VMF is a very relaxed format and some libraries forget to fill in information
- This commonly happens with some older maps, or is a sign of weird data manipulation when the map was created, parts of the map were generated with an external library or tool, or the creator decided to drag the blue ball in Hammer to 0,0,0 for some reason
In Sandbox (derived gamemodes), these commands are added to the menu bar
Triggers: showtriggers_lua, sm_showtriggers, sm_triggers, sm_st
Clip brushes: r_drawclipbrushes_lua, sm_showbrushes, sm_showclips, sm_showclipbrushes, sm_showplayerclips,
sm_scb, sm_spc
Picker: picker3
- NikNaks - Making BSP parsing and brushes into meshes easy
- ecsr's showtriggers fork - Inspiration, Trigger color classification
- ShowPlayerClips - Inspiration,
especially because I could never get this plugin to work - bspsrc - BspTreeStats ported to Lua
- Used for fixing multiple brushes tied to one entity
- picker2 - Inspiration
keep_inside_circleandis_outside_circleis copypasted from the Obsidian Conflict ported gamemode