Mdflags: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Fox (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
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.


Sets flags 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.  Since mdflags is a [[bitfield]], add together all wanted flag values, and use the result for the value.
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.
== Flags ==


Flag values for mdflags are:
{{Mdflags}}
 
:'''1''' - Make sprite be displayed as sprite, instead of a model
:'''2''' - No model animation.
:'''4''' - [[Maphack Language#away1|away1]] (?)
:'''8''' - [[Maphack Language#away2|away2]] (?)
:'''16''' - Process in [[EVENT_ANIMATESPRITES]]


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

Latest revision as of 10:36, 22 February 2020

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.

Flags

The following values are used with mdflags.

Exposed Value Label Description
No 1 SPREXT_NOTMD Force sprite be displayed as sprite, instead of a model.
No 2 SPREXT_NOMDANIM No model animation.
No 4 SPREXT_AWAY1
No 8 SPREXT_AWAY2
No 16 SPREXT_TSPRACCESS Process in EVENT_ANIMATESPRITES.
No 32 SPREXT_TEMPINVISIBLE
Defines
define SPREXT_NOTMD                     0x00000001
define SPREXT_NOMDANIM                  0x00000002
define SPREXT_AWAY1                     0x00000004
define SPREXT_AWAY2                     0x00000008
define SPREXT_TSPRACCESS                0x00000010
define SPREXT_TEMPINVISIBLE             0x00000020