Jawz backthrow is viable

This commit is contained in:
Oni VelocitOni 2025-10-13 00:01:18 +00:00 committed by Eidolon
parent c24588a593
commit a9fdc85b00

View file

@ -279,8 +279,16 @@ void Obj_JawzThrown(mobj_t *th, fixed_t finalSpeed, fixed_t dir)
th->momx = 0;
th->momy = 0;
// Slow down the top speed.
finalSpeed = FixedMul(finalSpeed, 4*FRACUNIT/5);
// Return at absolutely 120% of the owner's speed if it's any less than that.
fixed_t min_backthrowspeed = 6*(K_GetKartSpeed(owner, false, false))/5;
if (owner->speed >= min_backthrowspeed)
{
finalSpeed = 6*(owner->speed)/5;
}
else
{
finalSpeed = min_backthrowspeed;
}
// Set a fuse.
th->fuse = RR_PROJECTILE_FUSE;