Game state
The game session: saving and reverting checkpoints, difficulty, co-op state, winning and losing, and the tick counters.
- Functions
- 66
- Work in this build
- 34
- Compiled out
- 32
66 names
- game_all_players_active
- game_all_quiet
- game_award_level_complete_achievements
- game_campaign
- game_can_use_flashlights
- game_coop_player_count
- game_coop_players
- game_difficulty
- game_difficulty_get
- game_difficulty_get_real
- game_engine_objects
- game_export_variant_settings
- game_grief_record_custom_penalty
- game_grief_reset
- game_grief_set_ai_multiplier
- game_grief_set_betrayal_base_penalty
- game_grief_set_betrayal_boot_cutoff
- game_grief_set_betrayal_decay_seconds
- game_grief_set_body_damage_base_penalty
- game_grief_set_eject_decay_seconds
- game_grief_set_ejection_cutoff
- game_grief_set_enemy_ai_nearby_multiplier
- game_grief_set_enemy_player_nearby_multiplier
- game_grief_set_objects_in_sphere_radius
- game_grief_set_shield_damage_base_penalty
- game_initial_zone_set
- game_insertion_point_get
- game_insertion_point_lock
- game_insertion_point_set
- game_insertion_point_unlock
- game_is_cooperative
- game_is_playtest
- game_lost
- game_multiplayer
- game_player_count
- game_rate
- game_revert
- game_reverted
- game_safe_to_respawn
- game_safe_to_save
- game_safe_to_speak
- game_save
- game_save_and_quit
- game_save_cancel
- game_save_cinematic_skip
- game_save_immediate
- game_save_no_timeout
- game_save_unsafe
- game_saving
- game_seconds_from_ticks
- game_set_random_holiday
- game_set_variant
- game_sound_stress_test_message_queue
- game_splitscreen
- game_start
- game_start_when_joined
- game_start_when_ready
- game_start_with_squad_session
- game_start_with_squad_session_simple
- game_survival
- game_tick_get
- game_tick_length
- game_tick_rate
- game_tick_rate_get
- game_ticks_from_seconds
- game_won
game_all_players_active
→ booleanNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_all_players_active) | boolean | 1458 |
console: game_all_players_active
Called 26 times by the shipped campaign scripts, with 0 arguments.
game_all_quiet
→ booleanNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_all_quiet) | boolean | 1072 |
console: game_all_quiet
Called 7 times by the shipped campaign scripts, with 0 arguments.
game_award_level_complete_achievements
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_award_level_complete_achievements) | void | 1025 |
console: game_award_level_complete_achievements
game_campaign
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_campaign) | void | 926 |
game_can_use_flashlights
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_can_use_flashlights <boolean>) | void | 1028 |
console: game_can_use_flashlights <boolean>
game_coop_player_count
→ longNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_coop_player_count) | long | 1457 |
console: game_coop_player_count
Called 144 times by the shipped campaign scripts, with 0 arguments.
game_coop_players
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_coop_players <long>) | void | 932 |
game_difficulty
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_difficulty <game_difficulty>) | void | 931 |
game_difficulty_get
→ game_difficultyThe difficulty the game was started on.
| Signature | Returns | Slot |
|---|---|---|
| (game_difficulty_get) | game_difficulty | 824 |
console: game_difficulty_get
Called 113 times by the shipped campaign scripts, with 0 arguments.
game_difficulty_get_real
→ game_difficultyNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_difficulty_get_real) | game_difficulty | 825 |
console: game_difficulty_get_real
Called 135 times by the shipped campaign scripts, with 0 arguments.
game_engine_objects
→ object_listNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_engine_objects) | object_list | 187 |
console: game_engine_objects
game_export_variant_settings
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_export_variant_settings <string>) | void | 1058 |
game_grief_record_custom_penalty
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_record_custom_penalty <player> <real>) | void | 1658 |
console: game_grief_record_custom_penalty <player> <real>
game_grief_reset
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_reset) | void | 1659 |
game_grief_set_ai_multiplier
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_ai_multiplier <real>) | void | 1661 |
game_grief_set_betrayal_base_penalty
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_betrayal_base_penalty <real>) | void | 1666 |
game_grief_set_betrayal_boot_cutoff
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_betrayal_boot_cutoff <real>) | void | 1667 |
game_grief_set_betrayal_decay_seconds
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_betrayal_decay_seconds <real>) | void | 1669 |
game_grief_set_body_damage_base_penalty
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_body_damage_base_penalty <real>) | void | 1665 |
game_grief_set_eject_decay_seconds
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_eject_decay_seconds <real>) | void | 1670 |
game_grief_set_ejection_cutoff
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_ejection_cutoff <real>) | void | 1668 |
game_grief_set_enemy_ai_nearby_multiplier
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_enemy_ai_nearby_multiplier <real>) | void | 1662 |
game_grief_set_enemy_player_nearby_multiplier
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_enemy_player_nearby_multiplier <real>) | void | 1663 |
game_grief_set_objects_in_sphere_radius
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_objects_in_sphere_radius <real>) | void | 1660 |
game_grief_set_shield_damage_base_penalty
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_grief_set_shield_damage_base_penalty <real>) | void | 1664 |
game_initial_zone_set
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_initial_zone_set <string>) | void | 933 |
game_insertion_point_get
→ insertion_pointNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_insertion_point_get) | insertion_point | 826 |
console: game_insertion_point_get
Called 39 times by the shipped campaign scripts, with 0 arguments.
game_insertion_point_lock
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_insertion_point_lock <insertion_point>) | void | 1032 |
console: game_insertion_point_lock <insertion_point>
game_insertion_point_set
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_insertion_point_set <insertion_point>) | void | 1033 |
console: game_insertion_point_set <insertion_point>
game_insertion_point_unlock
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_insertion_point_unlock <insertion_point>) | void | 1031 |
console: game_insertion_point_unlock <insertion_point>
Called 13 times by the shipped campaign scripts, with 1 argument.
game_is_cooperative
→ booleanWhether more than one player is in the game.
| Signature | Returns | Slot |
|---|---|---|
| (game_is_cooperative) | boolean | 1026 |
console: game_is_cooperative
Called 85 times by the shipped campaign scripts, with 0 arguments.
game_is_playtest
→ booleanNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_is_playtest) | boolean | 1027 |
console: game_is_playtest
game_lost
Ends the level as a loss.
| Signature | Returns | Slot |
|---|---|---|
| (game_lost <boolean>) | void | 1023 |
console: game_lost <boolean>
Called 13 times by the shipped campaign scripts, with 1 argument.
game_multiplayer
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_multiplayer <string>) | void | 925 |
game_player_count
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_player_count <long>) | void | 928 |
game_rate
Sets the simulation rate: 1 is normal, 0.5 is half speed. The second and third arguments are ramp and duration in seconds as far as testing shows; `game_rate 0.5 0 30` put the game in slow motion, and `game_rate 1 0 0` restores it. This is the live replacement for the game_speed global, which has no storage in this build.
| Signature | Returns | Slot |
|---|---|---|
| (game_rate <real> <real> <real>) | void | 940 |
console: game_rate <real> <real> <real>
game_revert
Reverts to the last checkpoint.
| Signature | Returns | Slot |
|---|---|---|
| (game_revert) | void | 1024 |
console: game_revert
Called 39 times by the shipped campaign scripts, with 0 arguments.
game_reverted
→ booleanNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_reverted) | boolean | 1078 |
console: game_reverted
Called 65 times by the shipped campaign scripts, with 0 arguments.
game_safe_to_respawn
2 overloadsNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_safe_to_respawn <boolean>) | void | 1552 |
| (game_safe_to_respawn <boolean> <player>) | void | 1553 |
console: game_safe_to_respawn <boolean>
game_safe_to_save
→ booleanNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_safe_to_save) | boolean | 1070 |
console: game_safe_to_save
Called 21 times by the shipped campaign scripts, with 0 arguments.
game_safe_to_speak
→ booleanNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_safe_to_speak) | boolean | 1071 |
console: game_safe_to_speak
game_save
Requests a checkpoint at the next safe moment.
| Signature | Returns | Slot |
|---|---|---|
| (game_save) | void | 1073 |
console: game_save
Called 17 times by the shipped campaign scripts, with 0 arguments.
game_save_and_quit
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_save_and_quit) | void | 1029 |
game_save_cancel
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_save_cancel) | void | 1074 |
console: game_save_cancel
Called 26 times by the shipped campaign scripts, with 0 arguments.
game_save_cinematic_skip
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_save_cinematic_skip) | void | 1399 |
console: game_save_cinematic_skip
Called 13 times by the shipped campaign scripts, with 0 arguments.
game_save_immediate
No description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_save_immediate) | void | 1076 |
console: game_save_immediate
Called 27 times by the shipped campaign scripts, with 0 arguments.
game_save_no_timeout
Requests a checkpoint and waits as long as it takes for a safe moment.
| Signature | Returns | Slot |
|---|---|---|
| (game_save_no_timeout) | void | 1075 |
console: game_save_no_timeout
Called 228 times by the shipped campaign scripts, with 0 arguments.
game_save_unsafe
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_save_unsafe) | void | 1030 |
game_saving
→ booleanNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_saving) | boolean | 1077 |
console: game_saving
Called 40 times by the shipped campaign scripts, with 0 arguments.
game_seconds_from_ticks
→ realNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_seconds_from_ticks <long>) | real | 1474 |
console: game_seconds_from_ticks <long>
Called 3 times by the shipped campaign scripts, with 1 argument.
game_set_random_holiday
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_set_random_holiday) | void | 1640 |
game_set_variant
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_set_variant <string>) | void | 929 |
game_sound_stress_test_message_queue
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_sound_stress_test_message_queue) | void | 1638 |
game_splitscreen
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_splitscreen <long>) | void | 930 |
game_start
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_start <string>) | void | 937 |
game_start_when_joined
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_start_when_joined <long>) | void | 939 |
game_start_when_ready
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_start_when_ready) | void | 938 |
game_start_with_squad_session
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_start_with_squad_session <string> <long>) | void | 936 |
game_start_with_squad_session_simple
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_start_with_squad_session_simple) | void | 935 |
game_survival
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_survival) | void | 927 |
game_tick_get
→ longThe simulation tick counter. It advances about sixty times a second and keeps advancing at that rate under game_rate, so it measures real time, not game time.
| Signature | Returns | Slot |
|---|---|---|
| (game_tick_get) | long | 1470 |
console: game_tick_get
Called 82 times by the shipped campaign scripts, with 0 arguments.
game_tick_length
→ realNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_tick_length) | real | 1472 |
console: game_tick_length
game_tick_rate
compiled outNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_tick_rate <long>) | void | 934 |
game_tick_rate_get
→ longNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_tick_rate_get) | long | 1471 |
console: game_tick_rate_get
game_ticks_from_seconds
→ longNo description yet; the release build dropped the engine's help text.
| Signature | Returns | Slot |
|---|---|---|
| (game_ticks_from_seconds <real>) | long | 1473 |
console: game_ticks_from_seconds <real>
Called 1,370 times by the shipped campaign scripts, with 1 argument.
game_won
Ends the level as a win.
| Signature | Returns | Slot |
|---|---|---|
| (game_won) | void | 1022 |
console: game_won
Called 13 times by the shipped campaign scripts, with 0 arguments.
Read from the function table in the shipped simulation DLL. A name is compiled out when every one of its slots points at the release build's shared stub evaluator; the console still accepts it and returns nothing. Descriptions are hand-written and incomplete; the engine's own help text does not survive in this build. See The Blam console for how the table was found and how the mod runs these.