Weight increases with speed

Might be a tad weak right now, but we'll see if people want it stronger
This commit is contained in:
TehRealSalt 2018-09-08 04:04:10 -04:00
parent 9096da926b
commit 0bd4a29f0e

View file

@ -964,7 +964,11 @@ static fixed_t K_GetMobjWeight(mobj_t *mobj, mobj_t *against)
if (against->player && !against->player->kartstuff[k_spinouttimer] && mobj->player->kartstuff[k_spinouttimer])
weight = 0; // Do not bump
else
{
weight = (mobj->player->kartweight)<<FRACBITS;
if (mobj->player->speed > K_GetKartSpeed(mobj->player, false))
weight += (mobj->player->speed - K_GetKartSpeed(mobj->player, false))/8;
}
break;
case MT_FALLINGROCK:
if (against->player)