This article's documentation is for anything that uses the Source engine. Click here for more information.

Progress enable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Replacing {{console command}}. This operation was performed by a bot.)
m (→‎top: Unicodifying, replaced: [[Image: → [[File:)
 
Line 1: Line 1:
{{this is a|console command|name=progress_enable}}
{{this is a|console command|name=progress_enable}}
[[Image:VGUIProgressBar.png|thumb|400px|right|VGUI Progress Bar]]
[[File:VGUIProgressBar.png|thumb|400px|right|VGUI Progress Bar]]


The <code>progress_enable</code> ConCommand tells the engine to show the Half-Life 2 VGUI progress bar on the screen for the next map load operation.
The <code>progress_enable</code> ConCommand tells the engine to show the Half-Life 2 VGUI progress bar on the screen for the next map load operation.

Latest revision as of 12:06, 8 January 2024

progress_enable is a console command available in all Source Source games.

VGUI Progress Bar

The progress_enable ConCommand tells the engine to show the Half-Life 2 VGUI progress bar on the screen for the next map load operation.


For instance, if calling something like:

engine->ClientCmd("map test");

The screen will freeze while the map is loading, and won't report any progress to the player.


However, if you call progress_enable before the map command:

engine->ClientCmd("progress_enable \n map test");

The map will load and the VGUI loading screen will be shown.


This can be used to make custom menus, where using the old loading panel is desired when the user loads a saved game, or starts a new one.

The code for this function was left out of the 2013 SDK (despite still being usable in game) but is available in Source 2007.