Use Kart calc for bumping

This commit is contained in:
NepDisk 2025-02-22 21:51:47 -05:00
parent 1a42afafa3
commit 13503bf80b

View file

@ -1630,15 +1630,13 @@ static fixed_t K_PlayerWeight(mobj_t *mobj, mobj_t *against)
// from causing super crazy bumps.
fixed_t spd = K_GetKartSpeed(mobj->player, false, true);
fixed_t speedfactor = 8 * mapobjectscale;
weight = (mobj->player->kartweight) * FRACUNIT;
if (mobj->player->itemtype == KITEM_BUBBLESHIELD)
weight += 9*FRACUNIT;
if (mobj->player->speed > spd)
weight += FixedDiv((mobj->player->speed - spd), speedfactor);
weight += (mobj->player->speed - spd)/8;
}
return weight;