Mdflags: Difference between revisions

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


Sets flags for how to draw an [[actor]]'s model. These flags never affect the gameplay. To be noted, it is used by the maphacks. Add all together all wanted flag values, and use that as <number>.
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 [[sprite]] structs and for [[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.


Flag values for sprite mdflags are:
Flag values for mdflags are:


:'''1''' - Make sprite be dispalyed as sprite(not model)
:'''1''' - Make sprite be displayed as sprite, instead of a model
:'''2''' - No model animation.  
:'''2''' - No model animation.  
:'''4''' - [[Maphack Language#away1|away1]] (?)
:'''8''' - [[Maphack Language#away2|away2]] (?)
:'''16''' - Process in [[EVENT_ANIMATESPRITES]]
:'''16''' - Process in [[EVENT_ANIMATESPRITES]]


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

Revision as of 15:48, 17 June 2009

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. 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 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