Skip to content

Built-in variables

Read-only engine globals that appear in conditions and set operands without a variables declaration. Writable overrides for the game-option entries use the same names inside game_options override lines.

NameType
round_indexintegerYesYesYes
symmetric_gametypebooleanYesYesYes
round_timertimerYesYesYes
sudden_death_timertimerYesYesYes
grace_period_timertimerYesYesYes
attackersteamYesYesYes
defendersteamYesYesYes
third_partyteamYesYesYes
fourth_partyteamYesYesYes
fifth_partyteamYesYesYes
sixth_partyteamYesYesYes
seventh_partyteamYesYesYes
eighth_partyteamYesYesYes
local_playerplayerYesYesYes
target_playerplayerYesYesYes
local_teamteamYesYesYes
target_teamteamPartialPartialPartial
target_objectobjectYesYesYes
score_to_win_roundintegerYesYesYes
fire_teams_enabledbooleanYesYesYes
teams_enabledbooleanYesYesYes
round_time_limitintegerYesYesYes
round_countintegerYesYesYes
perfection_enabledbooleanYesYesYes
early_victory_win_countintegerYesYesYes
sudden_death_time_limitintegerYesYesYes
grace_period_time_limitintegerYesYesYes
lives_per_roundintegerYesYesYes
team_lives_per_roundintegerYesYesYes
respawn_timeintegerYesYesYes
suicide_respawn_penaltyintegerYesYesYes
betrayal_respawn_penaltyintegerYesYesYes
respawn_time_growthintegerYesYesYes
loadout_selection_timeintegerYesYesYes
respawn_traits_durationintegerYesYesYes
friendly_fire_enabledbooleanYesYesYes
betrayal_booting_enabledbooleanYesYesYes
enemy_voice_enabledbooleanYesYesYes
open_channel_voice_enabledbooleanYesYesYes
dead_player_voice_enabledbooleanYesYesYes
grenades_on_mapbooleanYesYesYes
indestructible_vehiclesbooleanYesYesYes
red_powerup_durationintegerYesYesYes
blue_powerup_durationintegerYesYesYes
yellow_powerup_durationintegerYesYesYes
object_death_damage_typeintegerYesYesYes

target_team is not available in MegaloEdit

MegaloEdit autocomplete lists target_team but does not parse it. This is only accessible using third-party gametype editors, though it does seem to funtion just fine.

Example

megalo
condition if score_to_win_round not_equal_to 0
condition if teams_enabled equal_to 1
condition if round_time_limit greater_than 0
condition timer_expired round_timer
condition if current_player.team equal_to attackers
action set symmetric_gametype set_to 0
action play_sound team defenders bone_cv_ph1_intro
megalo
trigger object_death
	condition if object_death_damage_type greater_than 34
	condition if object_death_damage_type less_than 56
end

See also