Editing Generalized sector types

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Eternity 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.
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.


{{Backto|Sector types}}
{{Backto|Sector types}}


'''For classic non-UDMF format only''': Bits 0 to 4 specify the lighting type in the sector, the same codes that DOOM used are employed:
Bits 0 thru 4 specify the lighting type in the sector, the same codes that DOOM used are employed:


  Dec Bits 4-0  Description
  Dec Bits 4-0  Description
Line 17: Line 17:
  17  10001      flickers on and off randomly
  17  10001      flickers on and off randomly


'''For UDMF''': bits 0 to 7 are the same as in [[Regular sector types]], the UDMF section.
'''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. The components from 0 to 255 apply te


All decimal values listed below can be added from each category to obtain the generalized sector effects.
All decimal values listed below can be added from each category to obtain the generalized sector effects.
Line 49: Line 47:
  0    0          0            Sector wind disabled
  0    0          0            Sector wind disabled
  512  4096      1            Sector wind enabled
  512  4096      1            Sector wind enabled
== Introduced with SMMU ==
=== Introduced with SMMU ===


Bits 10 and 11 are now implemented as of SMMU v3.21.
Bits 10 and 11 are now implemented as of SMMU v3.21.
Line 63: Line 61:
  0    0          0          Sounds made by sector floor/ceiling movement normal
  0    0          0          Sounds made by sector floor/ceiling movement normal
  2048  16384      1          Sounds made by sector floor/ceiling movement suppressed
  2048  16384      1          Sounds made by sector floor/ceiling movement suppressed
== Introduced with MBF21 ==
These new bits are added since the MBF21 editing standard.
===Instant death sector===
A new bit is added in MBF21, bit 12 under classic format and bit 15 under UDMF. When this bit is set, bits 5-6 (classic) or 8-9 (UDMF) change their meaning from "sector damage" to different variations of this instant death sector type, as shown in the following table:
{|class="wikitable sortable"
! Dec
! Hex
! UDMF dec
! UDMF hex
! Description
|-
||4096||1000||32768||8000||Player dies instantly when on sector floor (unless wearing radiation suit or invulnerability)
|-
||4128||1020||33024||8100||Player dies instantly when on sector floor (even if wearing suit or invulnerability)
|-
||4160||1040||33280||8200||Kill all players and exit to next level (useful for forcing pistol start)
|-
||4192||1060||33536||8300||Kill all players and exit to the secret level (useful for forcing pistol start)
|}


[[Category:Editing reference]]
[[Category:Editing reference]]
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: