Minimum backthrow speed + Slows down half as much when in range

Will be 120% of owner's speed @ minimum during backthrow; and now jawz slows down more when in range (healthier chases)
This commit is contained in:
VelocitOni 2025-10-12 18:51:52 -04:00
parent a4c7faf34a
commit c48500e453

View file

@ -75,7 +75,7 @@ static void JawzChase(mobj_t *th, boolean grounded)
fixed_t speeddifference = abs( fixed_t speeddifference = abs(
topspeed - min( topspeed - min(
jawz_chase(th)->player->speed, jawz_chase(th)->player->speed,
K_GetKartSpeed(jawz_chase(th)->player, false, false) (K_GetKartSpeed(jawz_chase(th)->player, false, false))/2
) )
); );
@ -279,8 +279,16 @@ void Obj_JawzThrown(mobj_t *th, fixed_t finalSpeed, fixed_t dir)
th->momx = 0; th->momx = 0;
th->momy = 0; th->momy = 0;
// Return at 120% of the owner's speed // 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; finalSpeed = 6*(owner->speed)/5;
}
else
{
finalSpeed = min_backthrowspeed;
}
// Set a fuse. // Set a fuse.
th->fuse = RR_PROJECTILE_FUSE; th->fuse = RR_PROJECTILE_FUSE;