mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-21 06:02:36 +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])
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue