GameType

From Zandronum Wiki
Revision as of 15:13, 21 August 2016 by DrinkyBird (talk | contribs) (Created page with "int '''GameType''' (void) ==Usage== This function can return one of four values: *'''GAME_SINGLE_PLAYER''' = 0 :Solo play. *'''GAME_NET_COOPERATIVE''' = 1 :Cooperative net g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

int GameType (void)

Usage

This function can return one of four values:

  • GAME_SINGLE_PLAYER = 0
Solo play.
  • GAME_NET_COOPERATIVE = 1
Cooperative net game.
  • GAME_NET_DEATHMATCH = 2
Deathmatch net game.
  • GAME_TITLE_MAP = 3
Title map
  • GAME_NET_TEAMGAME = 4
Team game net game. This includes CTF, Skulltag, Domination, and the generic "Team Game", but not Team Deathmatch, Team LMS, or Team Possession.

Examples

script 1 Enter
{
   if (GameType() != GAME_SINGLE_PLAYER)
      Print(s:"This map was not designed for multiplayer!");
}