Cstat: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Sets flags for how to draw an actor, as well as afew flags for interaction. Add all together all wanted flag values, and use that as <number>. | Sets flags for how to draw an actor, as well as afew flags for interaction. Add all together all wanted flag values, and use that as <number>. | ||
Flag values for cstat are: | Cstat is available for [[sprite]] structs and for [[Members of the wall structure|wall]] structs. | ||
Flag values for sprite cstat are: | |||
:'''1''' - Make sprite blockable | :'''1''' - Make sprite blockable | ||
:'''2''' - Make sprite transparent | :'''2''' - Make sprite transparent | ||
:'''4''' - Flip sprite around x-axis | :'''4''' - Flip sprite around x-axis | ||
:'''8''' - Flip sprite around y-axis | :'''8''' - Flip sprite around y-axis | ||
:'''16''' - Draw sprite as vertically flat | :'''16''' - Draw sprite as vertically flat | ||
:'''32''' - Draw him as horizontally flat | :'''32''' - Draw him as horizontally flat | ||
:'''64''' - Make sprite one sided | :'''64''' - Make sprite one sided | ||
:'''128''' - Half submerged | :'''128''' - Half submerged | ||
:'''256''' - Make sprite able to be hit by weapons | :'''256''' - Make sprite able to be hit by weapons | ||
:'''512''' - Second transparency level (combine with cstat 2) | :'''512''' - Second transparency level (combine with cstat 2) | ||
:'''32768''' - Invisible | :'''32768''' - Invisible | ||
Revision as of 12:09, 31 January 2006
cstat <number>
Sets flags for how to draw an actor, as well as afew flags for interaction. Add all together all wanted flag values, and use that as <number>.
Cstat is available for sprite structs and for wall structs.
Flag values for sprite cstat are:
- 1 - Make sprite blockable
- 2 - Make sprite transparent
- 4 - Flip sprite around x-axis
- 8 - Flip sprite around y-axis
- 16 - Draw sprite as vertically flat
- 32 - Draw him as horizontally flat
- 64 - Make sprite one sided
- 128 - Half submerged
- 256 - Make sprite able to be hit by weapons
- 512 - Second transparency level (combine with cstat 2)
- 32768 - Invisible
Also see cstator.