Mdflags: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
mdflags <value>
'''''mdflags''''' is a [[bitfield]] containing toggles affecting drawing of sprites. These flags never affect the actual gameplay, and as such do not have to be synchronized. [[Maphack Language|Maphacks]] are the primary users of mdflags.


A [[bitfield]] for how to draw an [[actor]]'s model. These flags never affect the actual gameplay, and as such do not have to be synchronized. [[Maphack Language|Maphacks]] are the primary users of this.
mdflags is available for the [[Members of the sprite and hittype structures|spriteext]] and [[Members of the wall structure|wall]] structs.


Mdflags is available for the [[Members of the sprite and hittype structures|spriteext]] and [[Members of the wall structure|wall]] structs.
Bit values for mdflags are:


Flag values for mdflags are:
{| {{prettytable}}
 
!Value!!Label!!Description!!
:'''1''' - Make sprite be displayed as sprite, instead of a model
|-
:'''2''' - No model animation.  
|1
:'''4''' - [[Maphack Language#away1|away1]] (?)
|[[Maphack Language#notmd|SPREXT_NOTMD]]
:'''8''' - [[Maphack Language#away2|away2]] (?)
|Force sprite be displayed as sprite, instead of a model.
:'''16''' - Process in [[EVENT_ANIMATESPRITES]]
|-
|2
|[[Maphack Language#nomdanim|SPREXT_NOMDANIM]]
|No model animation.
|-
|4
|[[Maphack Language#away1|SPREXT_AWAY1]]
|?
|-
|8
|[[Maphack Language#away2|SPREXT_AWAY2]]
|?
|-
|16
|SPREXT_TSPRACCESS
|Process in [[EVENT_ANIMATESPRITES]].
|-
|32
|SPREXT_TEMPINVISIBLE
|?
|-
|}


[[Category:Bitfields]]
[[Category:Bitfields]]
[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

Revision as of 10:16, 16 November 2012

mdflags is a bitfield containing toggles affecting drawing of sprites. These flags never affect the actual gameplay, and as such do not have to be synchronized. Maphacks are the primary users of mdflags.

mdflags is available for the spriteext and wall structs.

Bit values for mdflags are:

Value Label Description
1 SPREXT_NOTMD Force sprite be displayed as sprite, instead of a model.
2 SPREXT_NOMDANIM No model animation.
4 SPREXT_AWAY1 ?
8 SPREXT_AWAY2 ?
16 SPREXT_TSPRACCESS Process in EVENT_ANIMATESPRITES.
32 SPREXT_TEMPINVISIBLE ?