Template:Gamevar flags: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
mNo edit summary
 
Line 2: Line 2:


{| {{prettytable}}
{| {{prettytable}}
!Exposed!!Value!!Label!!Description!!
!Exposed!!Value!!Hex!!Label!!Description!!
|-
|-
| Yes || 1 || GAMEVAR_PERPLAYER || Per-player variable.
| Yes || 1 || 0x00000001 || GAMEVAR_PERPLAYER || Per-player variable.
|-
|-
| Yes || 2 || GAMEVAR_PERACTOR || Per-actor variable.
| Yes || 2 || 0x00000002 || GAMEVAR_PERACTOR || Per-actor variable.
|-
|-
|  || <font color="gray">3</font> || <font color="gray">GAMEVAR_USER_MASK</font> || <font color="gray">Bitmask controlling what flags can be set from con; only flags less than this can.</font> ||  
|  || <font color="gray">3</font> || <font color="gray">0x00000003</font> || <font color="gray">GAMEVAR_USER_MASK</font> || <font color="gray">Bitmask controlling what flags can be set from con; only flags less than this can.</font> ||  
|-
|-
| <font color="gray">Internal</font> || <font color="gray">8</font> || <font color="gray">GAMEVAR_RESET</font> ||  
| <font color="gray">Internal</font> || <font color="gray">8</font> || <font color="gray">0x00000008</font> || <font color="gray">GAMEVAR_RESET</font> ||  
|-
|-
|  || <font color="gray">256</font> || <font color="gray">GAMEVAR_FLAG_DEFAULT</font> || <font color="gray">Allow override (not used).</font>
|  || <font color="gray">256</font> || <font color="gray">0x00000100</font> || <font color="gray">GAMEVAR_DEFAULT</font> || <font color="gray">Allow override (not used, but always cleared for user-defined gamevars).</font>
|-
|-
|  || <font color="gray">256</font> || <font color="gray">GAMEVAR_DEFAULT</font> || <font color="gray">Allow override (not used, but always cleared for user-defined gamevars).</font>
|  || <font color="gray">512</font> || <font color="gray">0x00000200</font> || <font color="gray">GAMEVAR_FLAG_SECRET</font> || <font color="gray">Don't dump... (no longer defined in eduke32 source code as of r10016)</font>
|-
|-
| || <font color="gray">512</font> || <font color="gray">GAMEVAR_FLAG_SECRET</font> || <font color="gray">Don't dump...</font>
| Yes || 1024 || 0x00000400 || GAMEVAR_NODEFAULT || Don't reset on actor spawn. 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).
|-
|-
| 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).
| || <font color="gray">2048</font> || <font color="gray">0x00000800</font> || <font color="gray">GAMEVAR_SYSTEM</font> || <font color="gray">Cannot change mode flags...(only default value)</font>
|-
|-
|  || <font color="gray">2048</font> || <font color="gray">GAMEVAR_SYSTEM</font> || <font color="gray">Cannot change mode flags...(only default value)</font>
|  || <font color="gray">4096</font> || <font color="gray">0x00001000</font> || <font color="gray">GAMEVAR_READONLY</font> || <font color="gray">Values are read-only (no setvar allowed)</font>
|-
|-
|  || <font color="gray">4096</font> || <font color="gray">GAMEVAR_READONLY</font> || <font color="gray">Values are read-only (no setvar allowed)</font>
|  || <font color="gray">8192</font> || <font color="gray">0x00002000</font> || <font color="gray">GAMEVAR_INT32PTR</font> || <font color="gray">plValues is a pointer to an int32_t</font>
|-
|-
|  || <font color="gray">8192</font> || <font color="gray">GAMEVAR_INT32PTR</font> || <font color="gray">plValues is a pointer to an int32_t</font>
|  || <font color="gray">16384</font> || <font color="gray">0x00004000</font> || <font color="gray">GAMEVAR_FLAG_SYNCCHECK</font> || <font color="gray">check event sync when translating (no longer defined in eduke32 source code as of r10016)</font>
|-
|-
|  || <font color="gray">16384</font> || <font color="gray">GAMEVAR_FLAG_SYNCCHECK</font> || <font color="gray">check event sync when translating</font>
|  || <font color="gray">32768</font> || <font color="gray">0x00008000</font> || <font color="gray">GAMEVAR_INT16PTR</font> || <font color="gray">plValues is a pointer to a short</font>
|-
|-
| || <font color="gray">32768</font> || <font color="gray">GAMEVAR_INT16PTR</font> || <font color="gray">plValues is a pointer to a short</font>
| Yes || 131072 || 0x00020000 || GAMEVAR_NORESET || Variable values are not reset when restoring map state
|-
|-
| Yes || 131072 || GAMEVAR_NORESET || Variable values are not reset when restoring map state
| || <font color="gray">262144</font> || <font color="gray">0x00040000</font> || <font color="gray">GAMEVAR_SPECIAL</font> || <font color="gray">Flag for structure member shortcut vars</font>
|-
|-
| || <font color="gray">262144</font> || <font color="gray">GAMEVAR_SPECIAL</font> || <font color="gray">Flag for structure member shortcut vars</font>
| Yes || 524288 || 0x00080000 || GAMEVAR_NOMULTI || Don't attach to multiplayer packets
|-
|-
| Yes || 524288 || GAMEVAR_NOMULTI || Don't attach to multiplayer packets
| || <font color="gray">1048576</font> || <font color="gray">0x00100000</font> || <font color="gray">GAMEVAR_Q16PTR</font> || <font color="gray">plValues is a pointer to a q16.16</font>
|-
|-
| || <font color="gray">1048576</font> || <font color="gray">GAMEVAR_Q16PTR</font> || <font color="gray">plValues is a pointer to a q16.16</font>
| Yes || 2097152 || 0x00200000 || GAMEVAR_SERIALIZE || Write into permasaves
|-
| Yes || 2097152 || GAMEVAR_SERIALIZE || Write into permasaves
|-
|-
|}
|}

Latest revision as of 13:20, 21 April 2022

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


Exposed Value Hex Label Description
Yes 1 0x00000001 GAMEVAR_PERPLAYER Per-player variable.
Yes 2 0x00000002 GAMEVAR_PERACTOR Per-actor variable.
3 0x00000003 GAMEVAR_USER_MASK Bitmask controlling what flags can be set from con; only flags less than this can.
Internal 8 0x00000008 GAMEVAR_RESET
256 0x00000100 GAMEVAR_DEFAULT Allow override (not used, but always cleared for user-defined gamevars).
512 0x00000200 GAMEVAR_FLAG_SECRET Don't dump... (no longer defined in eduke32 source code as of r10016)
Yes 1024 0x00000400 GAMEVAR_NODEFAULT Don't reset on actor spawn. 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 0x00000800 GAMEVAR_SYSTEM Cannot change mode flags...(only default value)
4096 0x00001000 GAMEVAR_READONLY Values are read-only (no setvar allowed)
8192 0x00002000 GAMEVAR_INT32PTR plValues is a pointer to an int32_t
16384 0x00004000 GAMEVAR_FLAG_SYNCCHECK check event sync when translating (no longer defined in eduke32 source code as of r10016)
32768 0x00008000 GAMEVAR_INT16PTR plValues is a pointer to a short
Yes 131072 0x00020000 GAMEVAR_NORESET Variable values are not reset when restoring map state
262144 0x00040000 GAMEVAR_SPECIAL Flag for structure member shortcut vars
Yes 524288 0x00080000 GAMEVAR_NOMULTI Don't attach to multiplayer packets
1048576 0x00100000 GAMEVAR_Q16PTR plValues is a pointer to a q16.16
Yes 2097152 0x00200000 GAMEVAR_SERIALIZE Write into permasaves