game

Contains game state values and functions for managing game state.

Members

betrayal_booting

Whether Betrayal Booting is enabled.

betrayal_penalty

The betrayal penalty time for respawning players, in seconds.

current_round

The current round number.

dead_players_can_talk

Whether dead players can talk.

dont_team_restrict_chat

Whether chat is team-restricted.

fireteams_enabled

Whether fireteams are enabled.

friendly_fire

Whether Friendly Fire is enabled.

grace_period_time

The amount of Grace Period time.

grace_period_timer

The current round's remaining Grace Period time.

grenades_enabled

Whether Grenades on Map is enabled or not.

indestructible_vehicles

Whether Indestructible Vehicles are enabled or not.

lives_per_round

The number of lives each player has per round, as set in the Custom Game options.

loadout_cam_time

The Initial Loadout Camera duration.

perfection_enabled

Indicates whether it is possible to earn a Perfection Medal in this game variant.

powerup_duration_blue

The duration of the Blue Powerup (active camo), in seconds.

powerup_duration_red

The duration of the Red Powerup (overshields), in seconds.

powerup_duration_yellow

The duration of the Yellow Powerup (custom), in seconds.

proximity_voice

Whether Proximity Voice is enabled.

respawn_growth

The base respawn growth time for all players, in seconds.

respawn_time

The base respawn time for all players, in seconds.

respawn_traits_time

The number of seconds a player has Respawn Traits for.

round_limit

The number of rounds.

round_time_limit

The round time limit.

round_timer

The current round's remaining time.

rounds_to_win

The number of rounds that a player or team must win in order to win the match.

score_to_win

The score to win.

sudden_death_time

The amount of Sudden Death time.

sudden_death_timer

The current round's remaining Sudden Death time.

suicide_penalty

The suicide penalty time for respawning players, in seconds.

symmetry

Whether this match is symmetric.

symmetry_get

Whether this match is symmetric.

team_lives_per_round

The number of lives each team has per round, as set in the Custom Game options.

teams_enabled

Whether teams are enabled.

Member actions

end_round

Ends the round.

hs_function_call

MCC-exclusive: Call HaloScript functions made available by the current map; intended for mods that rely on map-and-Megalo pairs.

play_sound_for

Play a sound.

show_message_to a.k.a. hud_post_message

Display a message in the kill feed.