- added ACS CheckActprClass function

- fixed: When a blasted actor collided with another one this other actor's
  DONTBLAST flag was not checked.
- added a global DamageFactor actor property. All damage this actor takes is multiplied
  by this factor in addition to damage type specific damage factors.


SVN r1915 (trunk)
This commit is contained in:
Christoph Oelckers 2009-10-15 20:09:22 +00:00
commit ce2e85c7b2
7 changed files with 42 additions and 7 deletions

View file

@ -1009,6 +1009,8 @@ void P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage
if (damage <= 0) return;
}
}
damage = FixedMul(damage, target->DamageFactor);
if (damage <= 0) return;
damage = target->TakeSpecialDamage (inflictor, source, damage, mod);
}