mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 13:01:56 +00:00
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:
parent
caafb9265d
commit
051324c25a
1 changed files with 4 additions and 0 deletions
|
|
@ -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])
|
if (against->player && !against->player->kartstuff[k_spinouttimer] && mobj->player->kartstuff[k_spinouttimer])
|
||||||
weight = 0; // Do not bump
|
weight = 0; // Do not bump
|
||||||
else
|
else
|
||||||
|
{
|
||||||
weight = (mobj->player->kartweight)<<FRACBITS;
|
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;
|
break;
|
||||||
case MT_FALLINGROCK:
|
case MT_FALLINGROCK:
|
||||||
if (against->player)
|
if (against->player)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue