mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 06:34:10 +00:00
Added editLights cmd as shortcut for g_editEntityMode 1
This commit is contained in:
parent
5a24940e08
commit
cde3a596ee
4 changed files with 18 additions and 4 deletions
|
@ -3,12 +3,12 @@ bind "I" "toggle r_showSurfaceInfo"
|
|||
bind "N" "noclip"
|
||||
bind "M" "spawn moveable_macbethchart"
|
||||
|
||||
bind "F1" "toggle r_showViewEnvprobes 1 2 0"
|
||||
bind "F1" "toggle r_showViewEnvprobes 1 2 3 0"
|
||||
bind "F2" "toggle r_showTris 1 2 3 0"
|
||||
bind "F3" "toggle r_forceAmbient 0.2 0.3 0.4 0.5 0"
|
||||
bind "F3" "toggle r_forceAmbient 0.5 0"
|
||||
bind "F4" "toggle r_skipInteractions"
|
||||
bind "F5" "savegame quick"
|
||||
bind "F6" "toggle r_hdrDebug"
|
||||
bind "F6" "toggle r_showLightGrid 1 3 4 0"
|
||||
bind "F7" "toggle r_useSSAO"
|
||||
bind "F8" "toggle r_useFilmicPostProcessing"
|
||||
bind "F9" "loadgame quick"
|
||||
|
|
|
@ -1427,4 +1427,16 @@ void idClass::ExportScriptEvents_f( const idCmdArgs& args )
|
|||
|
||||
delete[] set;
|
||||
}
|
||||
|
||||
void idClass::EditLights_f( const idCmdArgs& args )
|
||||
{
|
||||
if( g_editEntityMode.GetInteger() != 1 )
|
||||
{
|
||||
g_editEntityMode.SetInteger( 1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
g_editEntityMode.SetInteger( 0 );
|
||||
}
|
||||
}
|
||||
// RB end
|
|
@ -297,6 +297,7 @@ public:
|
|||
static void ListClasses_f( const idCmdArgs& args );
|
||||
// RB begin
|
||||
static void ExportScriptEvents_f( const idCmdArgs& args );
|
||||
static void EditLights_f( const idCmdArgs& args );
|
||||
// RB end
|
||||
static idClass* CreateInstance( const char* name );
|
||||
static int GetNumTypes()
|
||||
|
|
|
@ -2738,7 +2738,8 @@ void idGameLocal::InitConsoleCommands()
|
|||
cmdSystem->AddCommand( "closeViewNotes", Cmd_CloseViewNotes_f, CMD_FL_GAME | CMD_FL_CHEAT, "close the view showing any notes for this map" );
|
||||
|
||||
// RB begin
|
||||
cmdSystem->AddCommand( "exportScriptEvents", idClass::ExportScriptEvents_f, CMD_FL_GAME | CMD_FL_CHEAT, "update script/doom_events.script" );
|
||||
cmdSystem->AddCommand( "exportScriptEvents", idClass::ExportScriptEvents_f, CMD_FL_GAME | CMD_FL_TOOL, "update script/doom_events.script" );
|
||||
cmdSystem->AddCommand( "editLights", idClass::EditLights_f, CMD_FL_GAME | CMD_FL_TOOL, "launches the in-game Light Editor" );
|
||||
// RB end
|
||||
|
||||
// multiplayer client commands ( replaces old impulses stuff )
|
||||
|
|
Loading…
Reference in a new issue