LEV Sector Flags

FLAG 1

Bit Description Comment
1 EXTERIOR - NO CEIL. (SKY) Note: actual ceiling limit will be the ceiling altitude + 100
2 DOOR instant door
4 SHOT REFLECTION / MAG.SEAL walls, floor and ceiling reflect weapon shots
8 EXTERIOR ADJOIN will adjoin adjacent skies
16 ICE FLOOR (SKATING)  
32 SNOW FLOOR no apparent effects
64 EXPLODING WALL/DOOR instant exploding door
128 EXTERIOR - NO FLOOR (PIT) Note: actual floor limit will be the floor altitude - 100
256 EXTERIOR FLOOR ADJOIN will adjoin adjacent pits
512 CRUSHING SECTOR vertically moving elevators will crush the player
1024 NO WALL DRAW / "HORIZON" removes walls of a sector

(sector must be sky and pit to work properly)

2048 LOW DAMAGE  
4096 HIGH DAMAGE both can be combined for GAS
8192 NO SMART OBJECT REACTION  
16384 SMART OBJECT REACTION  
32768 SUBSECTOR no apparent effects
65536 SAFE SECTOR  
131072 RENDERED  
262144 PLAYER  
524288 SECRET SECTOR increments the %secret when entered

Note on the Smart Objects:

Smart Object Reactions will cause doors and CERTAIN elevator classes to react to enemies. There are two values, not a toggle, because Flag doors by default react to smart objects, and INF elevators by default don't react.

These are the elevators than can react to smart objects:

basic

inv

basic_auto

morph_move1

morph_move2

morph_spin1

morph_spin2

move_wall

rotate_wall

door

door_mid

door_inv

FLAG 2

is unused.

FLAG 3

When "message: system lights" is sent (e.g. in TALAY when you turn on the generator), the engine copies the value here to the Ambient of the sector.