mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Speed updates based on number of orbiting items
This commit is contained in:
parent
bc4832aa40
commit
a81546177d
1 changed files with 2 additions and 1 deletions
|
@ -3626,6 +3626,7 @@ static void K_MoveHeldObjects(player_t *player)
|
|||
case MT_JAWZ_SHIELD:
|
||||
{
|
||||
mobj_t *cur = player->mo->hnext;
|
||||
fixed_t speed = ((8 - min(4, player->kartstuff[k_itemamount])) * cur->info->speed) / 7;
|
||||
|
||||
player->kartstuff[k_bananadrag] = 0; // Just to make sure
|
||||
|
||||
|
@ -3643,7 +3644,7 @@ static void K_MoveHeldObjects(player_t *player)
|
|||
cur->color = player->skincolor;
|
||||
|
||||
cur->angle -= ANGLE_90;
|
||||
cur->angle += FixedAngle(cur->info->speed);
|
||||
cur->angle += FixedAngle(speed);
|
||||
|
||||
if (cur->extravalue1 < radius)
|
||||
cur->extravalue1 += P_AproxDistance(cur->extravalue1, radius) / 12;
|
||||
|
|
Loading…
Reference in a new issue