Template:Gamevar flags: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
<noinclude>{{Template}}</noinclude>
{| {{prettytable}}
{| {{prettytable}}
!Exposed!!Value!!Label!!Description!!
!Exposed!!Value!!Label!!Description!!

Revision as of 16:56, 12 September 2021

This page is a template.
This page was created to be included in other pages.


Exposed Value Label Description
Yes 1 GAMEVAR_PERPLAYER Per-player variable.
Yes 2 GAMEVAR_PERACTOR Per-actor variable.
3 GAMEVAR_USER_MASK Bitmask controlling what flags can be set from con; only flags less than this can.
Internal 8 GAMEVAR_RESET
256 GAMEVAR_FLAG_DEFAULT Allow override (not used).
256 GAMEVAR_DEFAULT Allow override (not used, but always cleared for user-defined gamevars).
512 GAMEVAR_FLAG_SECRET Don't dump...
Yes 1024 GAMEVAR_NODEFAULT Don't reset. Useful if you want a variable to be set once you start the game (otherwise it's reset each time you start a new game).
2048 GAMEVAR_SYSTEM Cannot change mode flags...(only default value)
4096 GAMEVAR_READONLY Values are read-only (no setvar allowed)
8192 GAMEVAR_INT32PTR plValues is a pointer to an int32_t
16384 GAMEVAR_FLAG_SYNCCHECK check event sync when translating
32768 GAMEVAR_INT16PTR plValues is a pointer to a short
Yes 131072 GAMEVAR_NORESET Variable values are not reset when restoring map state
262144 GAMEVAR_SPECIAL Flag for structure member shortcut vars
Yes 524288 GAMEVAR_NOMULTI Don't attach to multiplayer packets
1048576 GAMEVAR_Q16PTR plValues is a pointer to a q16.16
Yes 2097152 GAMEVAR_SERIALIZE Write into permasaves