- added MF5_NOFORWARDFALL flag to prevent attacks from making its victim fall forward randomly.
This commit is contained in:
parent
0a258f95ea
commit
a78ad3188b
3 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue