Bubble Shield ignores respawning or flashing players
This commit is contained in:
parent
28aaf02734
commit
75a69e664c
1 changed files with 6 additions and 0 deletions
|
|
@ -574,6 +574,12 @@ boolean K_BubbleShieldReflect(mobj_t *t1, mobj_t *t2)
|
|||
fixed_t momentum = max(FixedHypot(owner->momx, owner->momy), FixedHypot(t2->momx, t2->momy));
|
||||
momentum = max(3*momentum/4, 16*mapobjectscale); // do SOMETHING!
|
||||
|
||||
if (t2->player && ((t2->player->respawn)||(t2->player->flashing)))
|
||||
{
|
||||
// Don't reflect respawning/flashing players.
|
||||
return false;
|
||||
}
|
||||
|
||||
if (t2->player && !K_StrongPlayerBump(t2->player))
|
||||
{
|
||||
P_Thrust(t2, angle, momentum/2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue