Added RTF_THRUSTZ for A_RadiusThrust.

- Allows thrusting with Z velocity.
This commit is contained in:
MajorCooke 2016-05-11 06:59:11 -05:00 committed by Christoph Oelckers
commit 952219a018
4 changed files with 8 additions and 4 deletions

View file

@ -1143,9 +1143,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Explode)
enum
{
RTF_AFFECTSOURCE = 1,
RTF_NOIMPACTDAMAGE = 2,
RTF_NOTMISSILE = 4,
RTF_AFFECTSOURCE = 1,
RTF_NOIMPACTDAMAGE = 2,
RTF_NOTMISSILE = 4,
RTF_THRUSTZ = 8,
};
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusThrust)
@ -1167,6 +1168,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusThrust)
sourcenothrust = true;
self->target->flags2 &= ~MF2_NODMGTHRUST;
}
if (flags & RTF_THRUSTZ) flags |= RADF_THRUSTZ;
P_RadiusAttack (self, self->target, force, distance, self->DamageType, flags | RADF_NODAMAGE, fullthrustdistance);
P_CheckSplash(self, distance);