SetGameModeLimit: Difference between revisions

From Zandronum Wiki
(Added page for SetGameModeLimit.)
 
(3.1 is released, so Devfeature templates have been removed)
Line 1: Line 1:
{{ACSWarning}}
{{ACSWarning}}


int '''SetGameModeLimit''' (int ''limit'', int ''value'') {{Devfeature|3.1|alpha}}
int '''SetGameModeLimit''' (int ''limit'', int ''value'')


==Usage==
==Usage==

Revision as of 20:32, 12 December 2021

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

int SetGameModeLimit (int limit, int value)

Usage

Changes the value of the corresponding limit CVar to value. The limit can be one of the following:

  • GAMELIMIT_FRAGS = 0
  • GAMELIMIT_TIME = 1
  • GAMELIMIT_POINTS = 2
  • GAMELIMIT_DUELS = 3
  • GAMELIMIT_WINS = 4
  • GAMELIMIT_WAVES = 5

Because timelimit is a float CVar, the value for GAMELIMIT_TIME must be entered as a fixed-point number. All other types accept basic integers.