mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Orbinauts/Gachabom: widen backward-thrown orbitting radius
This commit is contained in:
parent
e628d153ad
commit
b08890bf92
1 changed files with 17 additions and 2 deletions
19
src/k_kart.c
19
src/k_kart.c
|
|
@ -4570,10 +4570,25 @@ static mobj_t *K_SpawnKartMissile(mobj_t *source, mobjtype_t type, angle_t an, I
|
||||||
finalscale = source->scale;
|
finalscale = source->scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dir == -1 && (type == MT_ORBINAUT || type == MT_GACHABOM || type == MT_BALLHOG))
|
if (dir == -1)
|
||||||
{
|
{
|
||||||
// Backwards nerfs
|
// Backwards nerfs
|
||||||
finalspeed /= 8;
|
switch (type)
|
||||||
|
{
|
||||||
|
case MT_ORBINAUT:
|
||||||
|
case MT_GACHABOM:
|
||||||
|
// These items orbit in place.
|
||||||
|
// Look for a tight radius...
|
||||||
|
finalspeed /= 4;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case MT_BALLHOG:
|
||||||
|
finalspeed /= 8;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
x = source->x + source->momx + FixedMul(finalspeed, FINECOSINE(an>>ANGLETOFINESHIFT));
|
x = source->x + source->momx + FixedMul(finalspeed, FINECOSINE(an>>ANGLETOFINESHIFT));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue