GetGameModeState

From Zandronum Wiki
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

int GetGameModeState (void)

Usage

Returns the state of the current game mode.

Return value

Possible return values are:

  • GAMESTATE_UNSPECIFIED = -1
  • GAMESTATE_WAITFORPLAYERS = 0
In Survival, Invasion, Duel, Last Man Standing and Possession, this result is returned when there are not enough players to start the game. In other non-cooperative gamemodes, this result is returned when there are fewer than two players in the game. In cooperative, this result is returned when there are no players in the game.
  • GAMESTATE_COUNTDOWN = 1
Returned during a pre-match countdown.
  • GAMESTATE_INPROGRESS = 2
Returned when the match is in progress.
  • GAMESTATE_INRESULTSEQUENCE = 3
In Survival or Invasion, this result is returned when the "Mission Failed" message has appeared. In Duel or Last Man Standing, this result is returned during the victory screen. In all other gamemodes, this result is returned during the delay at the end of the level.

Examples

This article lists no examples, please add one.