Cstat (wall): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Sets flags for how to draw an wall, as well as a few flags for interaction.  Add all together all wanted flag values.  This is because cstat is a bitfield.
A [[bitfield]] for how to draw a wall, as well as a few flags for interaction.  Add all together all wanted flag values.


Flag values for wall cstat are:
Flag values for wall cstat are:
Line 6: Line 6:
:'''2''' - Make bottoms of invisible walls swapped
:'''2''' - Make bottoms of invisible walls swapped
:'''4''' - Align picture on bottom
:'''4''' - Align picture on bottom
:'''8''' - Flip wall around y-axis
:'''8''' - Flip wall around x-axis
:'''16''' - Make masking wall
:'''16''' - Make wall masking, two-sided
:'''32''' - Make wall one sided
:'''32''' - Make wall masking, one-sided
::Combine '''16''' and '''32''' to disable transparency in the masked texture
:'''64''' - Make wall able to be hit by weapons
:'''64''' - Make wall able to be hit by weapons
:'''128''' - Make wall transparent
:'''128''' - Make wall transparent
:'''256''' - Flip wall around x-axis
:'''256''' - Flip wall around y-axis
:'''512''' - Second transparency level (combine with cstat '''128''')
:'''512''' - Second transparency level (combine with cstat '''128''')


Unused bits are '''NOT''' free for user programming, but are rather reserved for potential future EDuke32 features.
[[Category:Bitfields]]
[[Category:Wall structure members]]
[[Category:Wall structure members]]

Revision as of 00:43, 31 October 2018

A bitfield for how to draw a wall, as well as a few flags for interaction. Add all together all wanted flag values.

Flag values for wall cstat are:

1 - Make wall blockable
2 - Make bottoms of invisible walls swapped
4 - Align picture on bottom
8 - Flip wall around x-axis
16 - Make wall masking, two-sided
32 - Make wall masking, one-sided
Combine 16 and 32 to disable transparency in the masked texture
64 - Make wall able to be hit by weapons
128 - Make wall transparent
256 - Flip wall around y-axis
512 - Second transparency level (combine with cstat 128)

Unused bits are NOT free for user programming, but are rather reserved for potential future EDuke32 features.