Mdflags: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
mdflags < | mdflags <value> | ||
Sets flags for how to draw an [[actor]]'s model. These flags never affect the gameplay. | 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]] | Mdflags is available for the [[Members of the sprite and hittype structures|spriteext]] and [[Members of the wall structure|wall]] structs. | ||
Flag values for | Flag values for mdflags are: | ||
:'''1''' - Make sprite be | :'''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