- 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:
parent
a6a5821f04
commit
ea2ea7dbf0
4 changed files with 17 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue