Projectile

From DoomWiki.org

Revision as of 15:45, 18 August 2022 by Xymph (talk | contribs) (+wp bit numbering)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A projectile is any thing that behaves like a damaging object that is fired or hurled, such as monster fireballs and missiles, plasma or BFG bursts, and attacking lost souls. They require the following mobj flags:

Source code DeHackEd Bit [1] Decimal Hex
MF_NOBLOCKMAP [2] Can't be hit 4 16 0x0010
MF_NOGRAVITY No gravity 9 512 0x0200
MF_DROPOFF Travels over cliffs 10 1024 0x0400
MF_MISSILE Projectile 16 65536 0x1000

Notes[edit]

  1. Bit positions are customarily numbered from zero (e.g., bit 4 is the 5th bit)
  2. Lost souls do not use MF_NOBLOCKMAP

See also[edit]

External links[edit]