- fixed: meleethreshold only has meaning when the attacking monster actually

has a melee attack.
- copied a colormap fix from Skulltag.


SVN r531 (trunk)
This commit is contained in:
Christoph Oelckers 2007-05-13 20:21:26 +00:00
commit ea2ea7dbf0
4 changed files with 17 additions and 7 deletions

View file

@ -321,13 +321,11 @@ bool AActor::SuggestMissileAttack (fixed_t dist)
// new version encapsulates the different behavior in flags instead of virtual functions
// The advantage is that this allows inheriting the missile attack attributes from the
// various Doom monsters by custom monsters
// Making these values customizable is not necessary and in most case more confusing than
// helpful because no value here translates into anything really meaningful.
if (maxtargetrange > 0 && dist > maxtargetrange)
return false; // The Arch Vile's special behavior turned into a property
if (dist < meleethreshold)
if (MeleeState != NULL && dist < meleethreshold)
return false; // From the Revenant: close enough for fist attack
if (flags4 & MF4_MISSILEMORE) dist >>= 1;