mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Pterabyte: Don't target players who are invincible after being hurt
This commit is contained in:
parent
ca9fdd4f0e
commit
b169ff93d4
2 changed files with 7 additions and 0 deletions
|
|
@ -8605,6 +8605,7 @@ struct {
|
||||||
{"CR_MINECART",CR_MINECART},
|
{"CR_MINECART",CR_MINECART},
|
||||||
{"CR_ROLLOUT", CR_ROLLOUT},
|
{"CR_ROLLOUT", CR_ROLLOUT},
|
||||||
{"CR_PTERABYTE",CR_PTERABYTE},
|
{"CR_PTERABYTE",CR_PTERABYTE},
|
||||||
|
|
||||||
// Ring weapons (ringweapons_t)
|
// Ring weapons (ringweapons_t)
|
||||||
// Useful for A_GiveWeapon
|
// Useful for A_GiveWeapon
|
||||||
{"RW_AUTO",RW_AUTO},
|
{"RW_AUTO",RW_AUTO},
|
||||||
|
|
|
||||||
|
|
@ -9107,6 +9107,12 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
if (!mobj->target)
|
if (!mobj->target)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (mobj->target->player->powers[pw_flashing])
|
||||||
|
{
|
||||||
|
P_SetTarget(&mobj->target, NULL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
vdist = mobj->z - mobj->target->z - mobj->target->height;
|
vdist = mobj->z - mobj->target->z - mobj->target->height;
|
||||||
if (vdist <= 0)
|
if (vdist <= 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue