mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 11:21:11 +00:00
Pterabyte: Don't target players who are invincible after being hurt
This commit is contained in:
parent
9431497f7d
commit
c00144a4f8
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…
Reference in a new issue