- Added optional fullthrustdistance to A_RadiusThrust to specify the distance at which thrust

starts diminishing.

SVN r3202 (trunk)
This commit is contained in:
Randy Heit 2011-05-11 04:31:31 +00:00
commit 381fb8d304
2 changed files with 3 additions and 2 deletions

View file

@ -932,6 +932,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusThrust)
ACTION_PARAM_INT(force, 0);
ACTION_PARAM_FIXED(distance, 1);
ACTION_PARAM_BOOL(affectSource, 2);
ACTION_PARAM_INT(fullthrustdistance, 3);
bool sourcenothrust = false;
@ -946,7 +947,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusThrust)
}
int sourceflags2 = self->target != NULL ? self->target->flags2 : 0;
P_RadiusAttack (self, self->target, force, distance, self->DamageType, affectSource, false);
P_RadiusAttack (self, self->target, force, distance, self->DamageType, affectSource, false, fullthrustdistance);
P_CheckSplash(self, distance << FRACBITS);
if (sourcenothrust)