Difference between revisions of "Generalized sector types"

From Eternity Wiki
Jump to: navigation, search
(Added warning about multiplying by 8.)
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
  3  00011      blink 1.0 second
 
  3  00011      blink 1.0 second
 
  4  00100      -10/20% health AND light blink 0.5 second
 
  4  00100      -10/20% health AND light blink 0.5 second
  8  01000      oscillates
+
  8  01000      light oscillates
 
  12  01100      blink 0.5 second, synchronized
 
  12  01100      blink 0.5 second, synchronized
 
  13  01101      blink 1.0 second, synchronized
 
  13  01101      blink 1.0 second, synchronized
Line 18: Line 18:
  
 
'''IMPORTANT for UDMF''': to use the following values in UDMF, you need to multiply them by 8 first.
 
'''IMPORTANT for UDMF''': to use the following values in UDMF, you need to multiply them by 8 first.
 +
 +
All decimal values listed below can be added from each category to obtain the generalized sector effects.
  
 
Bits 5 and 6 set the damage type of the sector, with the usual 5/10/20 damage units per second.
 
Bits 5 and 6 set the damage type of the sector, with the usual 5/10/20 damage units per second.
  
  Dec Bits 6-5  Description
+
  Dec UDMF dec  Bits 6-5  Description
 
  -------------------------------------------------------------------
 
  -------------------------------------------------------------------
  0   00        No damage
+
  0   0        00        No damage
  32 01        5  units damage per sec (halve damage in TYTD skill)
+
  32   256      01        5  units damage per sec (halve damage in TYTD skill)
  64 10        10 units damage per sec
+
  64   512      10        10 units damage per sec
  96 11        20 units damage per sec
+
  96   768      11        20 units damage per sec
 
Bit 7 makes the sector count towards the secrets total at game end
 
Bit 7 makes the sector count towards the secrets total at game end
  
  Dec Bit 7      Description
+
  Dec UDMF dec  Bit 7      Description
 
  -------------------------------------------------------------------
 
  -------------------------------------------------------------------
  0    0        Sector is not secret
+
  0    0          0        Sector is not secret
  128  1        Sector is secret
+
  128  1024      1        Sector is secret
 
Bit 8 enables the ice/mud effect controlled by linedef 223
 
Bit 8 enables the ice/mud effect controlled by linedef 223
  
  Dec Bit 8      Description
+
  Dec UDMF dec  Bit 8      Description
 
  -------------------------------------------------------------------
 
  -------------------------------------------------------------------
  0    0        Sector friction disabled
+
  0    0          0        Sector friction disabled
  256  1        Sector friction enabled
+
  256  2048      1        Sector friction enabled
 
Bit 9 enables the wind effects controlled by linedefs 224-226
 
Bit 9 enables the wind effects controlled by linedefs 224-226
  
  Dec Bit 9      Description
+
  Dec UDMF dec  Bit 9      Description
 
  -------------------------------------------------------------------
 
  -------------------------------------------------------------------
  0    0        Sector wind disabled
+
  0    0          0        Sector wind disabled
  512  1        Sector wind enabled
+
  512  4096      1        Sector wind enabled
 
=== Introduced with SMMU ===
 
=== Introduced with SMMU ===
  
Line 50: Line 52:
 
Bit 10 suppresses all sounds within the sector, while Bit 11 disables any sounds due to floor or ceiling motion by the sector. Bit 11 is especially useful in silencing constructs such as pseudo-3D bridges, which give off an undesirable plat sound when they move.
 
Bit 10 suppresses all sounds within the sector, while Bit 11 disables any sounds due to floor or ceiling motion by the sector. Bit 11 is especially useful in silencing constructs such as pseudo-3D bridges, which give off an undesirable plat sound when they move.
  
  Dec Bit 10    Description
+
  Dec UDMF dec  Bit 10    Description
 
  -------------------------------------------------------------------
 
  -------------------------------------------------------------------
  0   0        Sounds made in sector function normally
+
  0     0        0        Sounds made in sector function normally
  1024 1        Sounds made in sector are suppressed
+
  1024 8192      1        Sounds made in sector are suppressed
  
  Dec Bit 11    Description
+
  Dec UDMF dec  Bit 11    Description
 
  -------------------------------------------------------------------
 
  -------------------------------------------------------------------
  0   0        Sounds made by sector floor/ceiling movement normal
+
  0     0        0        Sounds made by sector floor/ceiling movement normal
  2048 1        Sounds made by sector floor/ceiling movement suppressed
+
  2048 16384    1        Sounds made by sector floor/ceiling movement suppressed
  
 
[[Category:Editing reference]]
 
[[Category:Editing reference]]

Latest revision as of 02:48, 26 March 2020

Eternity also provides generalized sector types, based on bit fields, that allow several sector type properties to be independently specified for a sector. Texture change linedefs can be used to switch some or all of these properties dynamically, outside lighting.

Back to Sector types

Bits 0 thru 4 specify the lighting type in the sector, the same codes that DOOM used are employed:

Dec Bits 4-0   Description
-------------------------------------------------------------------
0   00000      Normal lighting
1   00001      random off
2   00010      blink 0.5 second
3   00011      blink 1.0 second
4   00100      -10/20% health AND light blink 0.5 second
8   01000      light oscillates
12  01100      blink 0.5 second, synchronized
13  01101      blink 1.0 second, synchronized
17  10001      flickers on and off randomly

IMPORTANT for UDMF: to use the following values in UDMF, you need to multiply them by 8 first.

All decimal values listed below can be added from each category to obtain the generalized sector effects.

Bits 5 and 6 set the damage type of the sector, with the usual 5/10/20 damage units per second.

Dec  UDMF dec  Bits 6-5   Description
-------------------------------------------------------------------
0    0         00         No damage
32   256       01         5  units damage per sec (halve damage in TYTD skill)
64   512       10         10 units damage per sec
96   768       11         20 units damage per sec

Bit 7 makes the sector count towards the secrets total at game end

Dec  UDMF dec  Bit 7      Description
-------------------------------------------------------------------
0    0          0         Sector is not secret
128  1024       1         Sector is secret

Bit 8 enables the ice/mud effect controlled by linedef 223

Dec  UDMF dec  Bit 8      Description
-------------------------------------------------------------------
0    0          0         Sector friction disabled
256  2048       1         Sector friction enabled

Bit 9 enables the wind effects controlled by linedefs 224-226

Dec  UDMF dec  Bit 9      Description
-------------------------------------------------------------------
0    0          0         Sector wind disabled
512  4096       1         Sector wind enabled

Introduced with SMMU[edit]

Bits 10 and 11 are now implemented as of SMMU v3.21. Bit 10 suppresses all sounds within the sector, while Bit 11 disables any sounds due to floor or ceiling motion by the sector. Bit 11 is especially useful in silencing constructs such as pseudo-3D bridges, which give off an undesirable plat sound when they move.

Dec  UDMF dec  Bit 10     Description
-------------------------------------------------------------------
0     0         0         Sounds made in sector function normally
1024  8192      1         Sounds made in sector are suppressed
Dec  UDMF dec  Bit 11     Description
-------------------------------------------------------------------
0     0         0         Sounds made by sector floor/ceiling movement normal
2048  16384     1         Sounds made by sector floor/ceiling movement suppressed