Tripwire leniency = Toxomister immunity

This commit is contained in:
Antonio Martinez 2025-08-30 03:53:55 -04:00
parent ca8e46b0ea
commit 3d8b4851d6

View file

@ -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;