mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Tripwire leniency = Toxomister immunity
This commit is contained in:
parent
ca8e46b0ea
commit
3d8b4851d6
1 changed files with 9 additions and 0 deletions
|
|
@ -294,6 +294,12 @@ struct Cloud : Mobj
|
|||
return false;
|
||||
}
|
||||
|
||||
if (follow()->player->tripwireLeniency)
|
||||
{
|
||||
remove();
|
||||
return false;
|
||||
}
|
||||
|
||||
move_origin(follow()->pos());
|
||||
momx = 0;
|
||||
momy = 0;
|
||||
|
|
@ -358,6 +364,9 @@ struct Cloud : Mobj
|
|||
if (K_PuntCollide(this, toucher))
|
||||
return true;
|
||||
|
||||
if (toucher->player && toucher->player->tripwireLeniency)
|
||||
return true;
|
||||
|
||||
if (toucher->player && target() && !P_MobjWasRemoved(target()) && target()->player && G_SameTeam(toucher->player, target()->player))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue