- added MF5_NOFORWARDFALL flag to prevent attacks from making its victim fall forward randomly.

This commit is contained in:
Christoph Oelckers 2013-08-09 20:20:23 +02:00
commit a78ad3188b
3 changed files with 5 additions and 2 deletions

View file

@ -1143,7 +1143,9 @@ int P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage,
&& (pr_damagemobj()&1)
// [RH] But only if not too fast and not flying
&& thrust < 10*FRACUNIT
&& !(target->flags & MF_NOGRAVITY))
&& !(target->flags & MF_NOGRAVITY)
&& (inflictor == NULL || !(inflictor->flags5 & MF5_NOFORWARDFALL))
)
{
ang += ANG180;
thrust *= 4;