mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-14 07:06:41 +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_ROLLOUT", CR_ROLLOUT},
|
||||
{"CR_PTERABYTE",CR_PTERABYTE},
|
||||
|
||||
// Ring weapons (ringweapons_t)
|
||||
// Useful for A_GiveWeapon
|
||||
{"RW_AUTO",RW_AUTO},
|
||||
|
|
|
|||
|
|
@ -9107,6 +9107,12 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
if (!mobj->target)
|
||||
break;
|
||||
|
||||
if (mobj->target->player->powers[pw_flashing])
|
||||
{
|
||||
P_SetTarget(&mobj->target, NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
vdist = mobj->z - mobj->target->z - mobj->target->height;
|
||||
if (vdist <= 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue