mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-03 20:26:05 +00:00
Fix FlickyFly momentum on MTF_OBJECTSPECIAL
This commit is contained in:
parent
0bccca1a8b
commit
baa16c55fb
1 changed files with 5 additions and 6 deletions
|
|
@ -10884,14 +10884,13 @@ void P_InternalFlickyFly(mobj_t *actor, fixed_t flyspeed, fixed_t targetdist, fi
|
|||
if (actor->target && abs(chasez - actor->z) > targetdist)
|
||||
targetdist = P_AproxDistance(actor->target->x - actor->x, actor->target->y - actor->y);
|
||||
|
||||
if (actor->spawnpoint && (actor->spawnpoint->options & MTF_AMBUSH))
|
||||
actor->momz = 0;
|
||||
if (actor->spawnpoint && (actor->spawnpoint->options & MTF_OBJECTSPECIAL))
|
||||
vertangle = 0;
|
||||
else
|
||||
{
|
||||
vertangle = (R_PointToAngle2(0, actor->z, targetdist, chasez) >> ANGLETOFINESHIFT) & FINEMASK;
|
||||
P_InstaThrust(actor, actor->angle, FixedMul(FINECOSINE(vertangle), flyspeed));
|
||||
actor->momz = FixedMul(FINESINE(vertangle), flyspeed);
|
||||
}
|
||||
|
||||
P_InstaThrust(actor, actor->angle, FixedMul(FINECOSINE(vertangle), flyspeed));
|
||||
actor->momz = FixedMul(FINESINE(vertangle), flyspeed);
|
||||
}
|
||||
|
||||
// Function: A_FlickyFly
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue