mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 02:01:15 +00:00
Red shells no longer target people without balloons
This commit is contained in:
parent
4efda9b830
commit
163eae7325
1 changed files with 5 additions and 1 deletions
|
@ -8206,6 +8206,9 @@ void A_RedShellChase(mobj_t *actor)
|
||||||
|
|
||||||
if (!(gametype == GT_RACE))
|
if (!(gametype == GT_RACE))
|
||||||
{
|
{
|
||||||
|
if (player->kartstuff[k_balloon] <= 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (P_AproxDistance(P_AproxDistance(player->mo->x-actor->x,
|
if (P_AproxDistance(P_AproxDistance(player->mo->x-actor->x,
|
||||||
player->mo->y-actor->y), player->mo->z-actor->z) > RING_DIST)
|
player->mo->y-actor->y), player->mo->z-actor->z) > RING_DIST)
|
||||||
continue;
|
continue;
|
||||||
|
@ -8214,7 +8217,8 @@ void A_RedShellChase(mobj_t *actor)
|
||||||
|
|
||||||
if ((gametype == GT_RACE) || (gametype != GT_RACE // If in match etc. only home in when you get close enough, in race etc. home in all the time
|
if ((gametype == GT_RACE) || (gametype != GT_RACE // If in match etc. only home in when you get close enough, in race etc. home in all the time
|
||||||
&& P_AproxDistance(P_AproxDistance(player->mo->x-actor->x,
|
&& P_AproxDistance(P_AproxDistance(player->mo->x-actor->x,
|
||||||
player->mo->y-actor->y), player->mo->z-actor->z) < RING_DIST))
|
player->mo->y-actor->y), player->mo->z-actor->z) < RING_DIST
|
||||||
|
&& player->kartstuff[k_balloon] > 0))
|
||||||
P_SetTarget(&actor->tracer, player->mo);
|
P_SetTarget(&actor->tracer, player->mo);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue