Mdflags: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
mdflags <value>
mdflags <value>


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.
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.
Line 13: Line 13:
:'''16''' - Process in [[EVENT_ANIMATESPRITES]]
:'''16''' - Process in [[EVENT_ANIMATESPRITES]]


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

Revision as of 16:04, 23 December 2009

mdflags <value>

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. Maphacks are the primary users of this.

Mdflags is available for the spriteext and wall structs.

Flag values for mdflags are:

1 - Make sprite be displayed as sprite, instead of a model
2 - No model animation.
4 - away1 (?)
8 - away2 (?)
16 - Process in EVENT_ANIMATESPRITES