Engine:Console commands: Difference between revisions

Line 12: Line 12:
* In context by default
* In context by default
* Default command is 'varedit' if in context
* Default command is 'varedit' if in context
==== Commands ====
==== Global commands ====
: [[MACRO varedit|varedit]] - (none), / - Prints or sets variable, if variable exists and name is not another command.
: [[MACRO varedit|varedit]] - (none), / - Prints or sets variable, if variable exists and name is not another command.
: [[MACRO var|var]] - var, /var - Creates a variable. If already exists, then does not change value.
: [[MACRO var|var]] - var, /var - Creates a variable. If already exists, then does not change value.
Line 22: Line 22:
: [[MACRO bind|context]] - context, /context - Change context. Change current console context to another known context.
: [[MACRO bind|context]] - context, /context - Change context. Change current console context to another known context.
: [[MACRO bind|run]] - run, /run - Load and run script file. Run a named script file. Name must include extension.
: [[MACRO bind|run]] - run, /run - Load and run script file. Run a named script file. Name must include extension.
==== Intrinsic vars ====
==== Global vars ====
: [[CVAR lib_path|lib_path]] - './lib/' - Path for native 'world' modules.
: [[CVAR lib_path|lib_path]] - './lib/' - Path for native 'world' modules.
: [[CVAR lib_path|base_path]] - './data/' - Path for content and assets.
: [[CVAR lib_path|base_path]] - './data/' - Path for content and assets.
Line 30: Line 30:
: [[CVAR lib_path|map]] - 'maps/base1.bsp' - Full path for default content module.
: [[CVAR lib_path|map]] - 'maps/base1.bsp' - Full path for default content module.
: [[CVAR lib_path|startup]] - (none) - Full path of initial startup script.
: [[CVAR lib_path|startup]] - (none) - Full path of initial startup script.
==== Assignments ====
==== Assignments ====
: Explicit context name is 'global'
: Explicit context name is 'global'
Line 37: Line 36:


=== Render module ===
=== Render module ===
==== Commands ====
==== Global commands ====
: none
: none
==== Intrinsic vars ====
==== Global vars ====
: [[CVAR r_width|r_width]] - '900' - Initial main window height.
: [[CVAR r_width|r_width]] - '900' - Initial main window height.
: [[CVAR r_height|r_height]] - '600' - Initial main window width.
: [[CVAR r_height|r_height]] - '600' - Initial main window width.
Line 47: Line 46:
: [[CVAR r_vsync|r_vsync]] - '1.0' - If should render each frame one frame synced with device rate.
: [[CVAR r_vsync|r_vsync]] - '1.0' - If should render each frame one frame synced with device rate.


==== Assignments ====
: none
=== Input module ===
==== Commands global ====
: [[MACRO quit|quit]] - quit, /quit - Exits engine immediately with graceful shutdown.
==== Vars global ====
: [[CVAR m_sensitivity|m_sensitivity]] - '1.0' - General mouse sensitivity.
: [[CVAR m_raw|m_raw]] - '1' (0,1,2) - 0 off if can, 1 on if can, 2 force on. Windows always on. Off if platform not complete or in a VM.
==== Bindings ====
: KB_ESC - 'quit'
==== Assignments ====
==== Assignments ====
: none
: none