Windows
The Windows tab is the first tab in the Developer UI menu. It contains various options that control different parts of the engine, from material properties to NPC behaviors. Being very useful for debugging entities and rendering, it has proven to be a great replacement for the basic console commands, making debugging faster and easier.
It consists of two windows - Addon List and Debug Menu.
Addon List
The Addon List window shows all the addons that are installed, with their name, workshop ID and absolute local path. It also shows which addons are currently mounted and which are not.
Additionally, you can mount and unmount addons by checking / unchecking addons, and then applying changes using the button at the bottom of the menu.
Debug Menu
The Debug Menu is made to improve the debugging by reducing the amount of console usage. The menu intends to replaces commands with buttons and checkmarks that are easier and more convenient to use than console ConVars.
The debug menu consists of 5 tabs: Performance, MatSys, Renderer, Entities and AI.
Performance
The first tab has basic buttons - show host speed, FPS counter and player's position with angles.
MatSys
The second menu has options related to rendering and debugging objects, brushes, prop models, lightfaces, visleafs and more.
In P2CE, you can set mat_fullbright to 2. This draws all texture white, allowing to see exactly what lights add to the scene.
mat_bufferprimitivesenables world geometry buffering. Does not draw anything on-screen, barely affects anything.mat_wireframedraws light-blue lines on edges of each model visible and pink lines on edges of each brush with additional diagonal lines indicating faces. Use this caution, as it may cause lag when used in huge areas with lots of entities / brushes visible.mat_luxelsshows lightmaps of each lightmapped face. Each square is a light pixel. Only relevant to bakes lighting, where bigger lightmaps creates sharper shadows. Non-lightmapped faces (i.e. fizzlers) are drawn completely blue.mat_drawflatdisables normals on textures that have them, making them appear "flat". Not relevant for PBR shader.mat_leafvisdraws the visleaf the player is currently in.mat_normalshighlights normals of each face of models with tiny blue lines, and adds XYZ lines to each corner of brushes.mat_reversedepthundraws everything, including world geometry, so basically it holds the frame the option was checked. If SSAO is enabled, a lens circle appears after some time. The image blurs when moving the camera.
Screenshots, showing each of the settings, are added below.
Map with
mat_fullbrightset to 2.Map with
mat_wireframechecked.Map with
mat_luxelschecked.Map with
mat_leafvischecked.Map with
mat_normalschecked.Map with
mat_reversedepthchecked.
Renderer
The third menu consists of options related to drawing different parts of the engine.
Draw Skyboxtoggles the skybox. 3D skybox will disappear and 2D skybox will appear black.Draw VGUItoggles the legacy VGUI. Obsolete since both P2CE and Momentum Mod use Panorama instead of VGUI.Draw Panoramatoggles Panorama, therefore toggling the pause menu, all the screen elements except the crosshair, andpanorama_screenentities.Draw Worldtoggles the visibility of all brush entities and world geometry.Draw Entitiestoggles the visibility of all point entities.Draw Viewmodeltoggles the visibility of the viewmodel.Draw Static Propstoggles the visibility of static props.Draw Detail Propstoggles the visibility of detail props mentioned in the .vbsp file inside the map.Draw Model Light Origindraws green Xs at models' light origins and additionally draws 4 grey lines to each corner of models' bounding boxes.Draw Light Infodraws sprites in each light of the map. The sprites can be seen through world geometry.Draw Decalstoggles decals and overlays.Draw Brush Modelstoggles the visibility of brushes that use models in any way.Draw Area Portalstoggles all the area portals in the map.Draw Beamstoggles beams created byenv_laser,env_beamandbeam_spotlightentities.Draw Ropestogglesmove_ropeandkeyframe_ropeentities.Draw Spritestoggles sprites.Draw Particlestoggles particles.Draw Raintoggles the visibility of rain particles.Draw Water Surfacetoggles water visibility. WHen inside the water, only the fog is seen.Draw VPhysics objectstoggles the visibility of objects that use VPhysics for collisions.Draw Portal Frustumcannot be enabled as of now. It probably draws the debug lines for cameras used in portals.
Entities
The fourth menu contains buttons that draw information about the entity the player is looking at.
Show Debug Informationdisplays the debug information of the entity as if theent_textcommand was used.Show Namedisplays the targetname of the entity.Show Bounding Boxshows the bounding box of the entity by drawing 8 pink lines on its edges and 4 tiny green cubes on the bottom corners of the bounding box.Show Messagesshows messages output by this entity.Pausesfreezes the entity.Pivotdraws the pivot point of the entity.
developer 1 is required to see the effects of this menu.
AI
The last, fifth menu utilizes control over the NPC entity the player is looking at.
ai_disablebypasses all AI logic routines and puts all NPCs into their idle animations.ai_resumeresumes normal processing if the NPC is stepping through tasks.ai_stopcompletely disables AI for the NPC.noclipenables noclip for the player.godenables godmode for the player.notargetmakes enemies ignore player.
NPC Commands dropdown contains the following:
Enemiesoutputs this NPC's current entities.Gotells the NPC to continue following its path.Go Randomtells the NPC to go in a random direction.Routeoutputs this NPC's current route to their goal.Select"selects" the NPC by drawing a dark red box around its bounding box.Destroyremoves the NPC.Visibilitytries to call a missing command callednpc_visibility.Tasksoutputs this NPC's current tasks (rush, cover, heal player, etc.)Combatsets this NPC to its combat mode.Focustells this NPC to focus on the target.
Node Graph dropdown contains the following:
Nodesdisplays this NPC's current nodesNext Hulltells the NPC to move to the next cover position.Show Hullshows this NPC's current cover position.Show Connectshows connection of this NPC.Show Visibilityshows visibility of this NPC.Show Graph Connectshows graph connections of this NPC.













