Skip to content

Instantly share code, notes, and snippets.

@JJL772
Created April 19, 2022 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JJL772/5320f7f4d098143464d89ea54ee6a408 to your computer and use it in GitHub Desktop.
Save JJL772/5320f7f4d098143464d89ea54ee6a408 to your computer and use it in GitHub Desktop.
Useful debug commands for p2ce/momentum

Debugging Commands/Cvars

Below is a useful list of debugging commands and console variables. They can be used to display material names, entity info and even visualize entity IO.

General Debugging

Name Acceptable Values Description
version Print version info to console
developer 0..4 Display different developer debugging info in console. Levels 0-4
ent_text Display advanced debugging info over entity under crosshair
ent_show_contexts 0..1 Show entity contexts in ent_text display
ent_messages_draw 0..1 Visualizes all entity IO
mat_crosshair Display material on brush under your crosshair
mat_corsshair_edit Open hit material in text editor if it's not packed
mat_crosshair_explorer Open folder containing hit material if it's not packed
mat_crosshair_printmaterial Display hit material's VMT in console
mat_crosshair_reloadmaterial Reload material under crosshair

Physics Debugging

Name Acceptable Values Description
vcollide_wireframe 0..1 Display wireframe of prop collision models
phys_show_active 0..1 Show collision models of currently simulating objects
phys_show_collision 0..1 Show collision wireframe of vphys objects
phys_show_shadows 0..1 Show physics shadows of vphys objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment