Ceilingstat: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
LordMisfit (talk | contribs)
mNo edit summary
Fox (talk | contribs)
No edit summary
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''Ceilingstat''' is a sector-structure member similar to cstat, as it is a bitfield.
'''Ceilingstat''' is a sector-structure member similar to cstat, as it is a [[bitfield]].


The known values are below
See also [[floorstat]].


:'''1''' = Ceiling is a parallax sky/texture
== Flags ==
:'''2''' = ? (needs to be disciphered by someone)
:'''4''' = ? (needs to be disciphered by someone)
:'''8''' = Ceiling Texture Expansion is on ["E" key in Build/Mapster32]
:'''16''' = ? (needs to be disciphered by someone)
:'''32''' = ? (needs to be disciphered by someone)
:'''64''' = Ceiling Texture Relativity is on ["R" key in Build/Mapster32]
:'''128''' = Ceiling Transparency Level 1 [?]
:'''256''' = Ceiling Transparency Level 2 [?]


''See also [[floorstat]].''
{{Sector cstat}}


[[Category:Bitfields]]
[[Category:Sector structure members]]
[[Category:Sector structure members]]

Latest revision as of 17:48, 20 February 2020

Ceilingstat is a sector-structure member similar to cstat, as it is a bitfield.

See also floorstat.

Flags

The following values are used with floorstat and ceilingstat.

Exposed Value Label Description
No 1 FLOOR_STAT_PLAX
CEILING_STAT_PLAX
Parallaxed texture (used for skies). Also, for subway car sectors, if you set this bit to 1, it will shoot RPGs at the nearest player. This is used for the space ship in the beginning of E2L1.
No 2 FLOOR_STAT_SLOPE
CEILING_STAT_SLOPE
Slope
No 4 FLOOR_STAT_SWAPXY
CEILING_STAT_SWAPXY
Texture's x & y is swapped
No 8 FLOOR_STAT_SMOOSH
CEILING_STAT_SMOOSH
Texture Expansion is on ["E" key in Build/Mapster32]
No 16 FLOOR_STAT_XFLIP
CEILING_STAT_XFLIP
Texture's x is flipped
No 32 FLOOR_STAT_YFLIP
CEILING_STAT_YFLIP
Texture's y is flipped
No 64 FLOOR_STAT_RELATIVE
CEILING_STAT_RELATIVE
Texture Relativity is on ["R" key in Build/Mapster32]
No 128 FLOOR_STAT_MASKED
CEILING_STAT_MASKED
Masked (different from being clear only for TROR)
No 256 FLOOR_STAT_TRANS
CEILING_STAT_TRANS
Translucent mask. Combine with 128 for reverse translucent mask.
No 512 Blocks movement (for TROR)
No 1024 TROR
No 2048 Blocks projectiles (for TROR)
Defines
define FLOOR_STAT_PLAX                  0x00000001
define FLOOR_STAT_SLOPE                 0x00000002
define FLOOR_STAT_SWAPXY                0x00000004
define FLOOR_STAT_SMOOSH                0x00000008
define FLOOR_STAT_XFLIP                 0x00000010
define FLOOR_STAT_YFLIP                 0x00000020
define FLOOR_STAT_RELATIVE              0x00000040
define FLOOR_STAT_MASKED                0x00000080
define FLOOR_STAT_TRANS                 0x00000100

define CEILING_STAT_PLAX                0x00000001
define CEILING_STAT_SLOPE               0x00000002
define CEILING_STAT_SWAPXY              0x00000004
define CEILING_STAT_SMOOSH              0x00000008
define CEILING_STAT_XFLIP               0x00000010
define CEILING_STAT_YFLIP               0x00000020
define CEILING_STAT_RELATIVE            0x00000040
define CEILING_STAT_MASKED              0x00000080
define CEILING_STAT_TRANS               0x00000100