Difference between revisions of "Lost soul colliding with items"

From DoomWiki.org

[unchecked revision][checked revision]
(Undo revision 81766 by Unmaker (talk))
Line 1: Line 1:
If a [[lost soul]] collides with any item while charging forward, the monster will stop and start moving normally again as if nothing had happened.  
+
If a [[lost soul]] collides with any item while charging forward, the monster will stop and start moving normally again as if nothing had happened. It is due to the fact that items are exempt from most collision checks. A noticeable effect is on [[E2M8: Tower of Babel]] in [[Doom]], where the player can hide behind the alcoves of items and effectively protect himself from the flaming skulls in the level.
 
 
The reasoning behind this feature does not seem very obvious. In the [[Doom source code]], <tt>PIT_CheckThing</tt> is the generic function which handles collisions between [[thing]]s - such as [[projectile]] hits and [[item]]s being picked up. There, projectiles ([[mobj]]s with the <tt>MF_MISSILE</tt> flag) are checked if they actually hit something solid and/or shootable:
 
 
 
  // missiles can hit other things
 
  if (tmthing->flags & MF_MISSILE)
 
      {
 
        // see if it went over / under
 
        if (tmthing->z > thing->z + thing->height)
 
            return true; // overhead
 
        if (tmthing->z+tmthing->height < thing->z)
 
            return true; // underneath
 
 
 
 
 
 
 
. For reasons unknown, the lost soul's collision code does not check
 
 
 
A noticeable effect is on [[E2M8: Tower of Babel]] in [[Doom]], where the player can hide behind the alcoves of items and effectively protect himself from the flaming skulls in the level.
 
  
 
== External Links ==  
 
== External Links ==  

Revision as of 12:59, 10 September 2012

If a lost soul collides with any item while charging forward, the monster will stop and start moving normally again as if nothing had happened. It is due to the fact that items are exempt from most collision checks. A noticeable effect is on E2M8: Tower of Babel in Doom, where the player can hide behind the alcoves of items and effectively protect himself from the flaming skulls in the level.

External Links

Bug report thread at the ZDoom forums