Use Kart calc for bumping
This commit is contained in:
parent
1a42afafa3
commit
13503bf80b
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue