Every time the mission is started or loaded, KDGetInfo
populates a number of mission quest variables with information about the game environment. These values are available at Sim
time and can be tracked by TrigQVar
. They are also updated when this script receives an UpdateVariables
message and, for T2 (TMA), when the player returns from a menu. They are deleted as the script unloads, to prevent them from being stored with the mission in DromEd.
Quest variable | Description | Values |
---|---|---|
info_directx_version | the DirectX version in use | 6 = old, 9 = new |
info_display_height | the height of the canvas (screen/window) | e.g. 1080 for fullscreen 1920×1080 |
info_display_width | the height of the canvas (screen/window) | e.g. 1920 for fullscreen 1920×1080 |
info_has_eax | whether EAX is enabled | 1 = yes, 0 = no |
info_has_fog | whether fogging is enabled | 1 = yes, 0 = no |
info_has_hw3d | whether hardware 3D rendering is enabled | 1 = yes, 0 = no |
info_has_sky | whether NewSky (“high detail”) is enabled | 1 = yes, 0 = no |
info_has_weather | whether weather is enabled | 1 = yes, 0 = no |
info_mission | the number of the current mission * | e.g. 20 for miss20 |
info_mode | the current engine mode | 0 = regular game mode (e.g. thief2.exe )1 = editor (e.g. dromed.exe ) in edit mode2 = editor in game mode |
info_version_major | the major component of the engine version | e.g. 1 for version 1.21 |
info_version_minor | the minor component of the engine version | e.g. 21 for version 1.21 |
The
info_mission
quest variable is available in T2 (TMA) only. It is not available in DromEd game mode, TG, or T1 (TDP), where the variable will not be set.