Difference between revisions of "Projectile"
From DoomWiki.org
[unchecked revision] | [checked revision] |
m |
DragonHawk (talk | contribs) (Convert text to table, correct some errors. The numbers given are values, not bit counts or positions. Link to source code.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | A '''projectile''' is any [[thing]] that behaves like a damaging object that is fired or hurled, such as [[monster]] fireballs and missiles, [[Plasma gun|plasma]] or [[BFG9000|BFG]] bursts, and attacking [[lost soul]]s. They require the following mobj | + | A '''projectile''' is any [[thing]] that behaves like a damaging object that is fired or hurled, such as [[monster]] fireballs and missiles, [[Plasma gun|plasma]] or [[BFG9000|BFG]] bursts, and attacking [[lost soul]]s. They require the following [[mobj]] flags: |
− | + | {| {{prettytable}} | |
− | + | ! Source code | |
− | + | ! DeHackEd | |
+ | ! Bit <ref>Bit positions are customarily numbered from zero (e.g., bit 4 is the 5th bit)</ref> | ||
+ | ! Decimal | ||
+ | ! Hex | ||
+ | |- | ||
+ | | <tt>MF_NOBLOCKMAP</tt> <ref>Lost souls do not use <tt>MF_NOBLOCKMAP</tt></ref> | ||
+ | | Can't be hit | ||
+ | | 4 | ||
+ | | 16 | ||
+ | | 0x0010 | ||
+ | |- | ||
+ | | <tt>MF_NOGRAVITY</tt> | ||
+ | | No gravity | ||
+ | | 9 | ||
+ | | 512 | ||
+ | | 0x0200 | ||
+ | |- | ||
+ | | <tt>MF_DROPOFF</tt> | ||
+ | | Travels over cliffs | ||
+ | | 10 | ||
+ | | 1024 | ||
+ | | 0x0400 | ||
+ | |- | ||
+ | | <tt>MF_MISSILE</tt> | ||
+ | | Projectile | ||
+ | | 16 | ||
+ | | 65536 | ||
+ | | 0x1000 | ||
+ | |} | ||
− | + | == Notes == | |
− | + | <references/> | |
− | |||
== See also == | == See also == | ||
+ | * [[Hitscan]] | ||
− | * [[ | + | == External links == |
+ | * <tt>p_mobj.h</tt> is the [[Doom source code|header file]] which defines the <tt>MF_</tt> flags — https://github.com/id-Software/DOOM/blob/master/linuxdoom-1.10/p_mobj.h | ||
[[Category:Doom engine]] | [[Category:Doom engine]] | ||
[[Category:Gameplay]] | [[Category:Gameplay]] |
Revision as of 15:28, 11 September 2021
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
- ↑ Bit positions are customarily numbered from zero (e.g., bit 4 is the 5th bit)
- ↑ Lost souls do not use MF_NOBLOCKMAP
See also
External links
- p_mobj.h is the header file which defines the MF_ flags — https://github.com/id-Software/DOOM/blob/master/linuxdoom-1.10/p_mobj.h