Forward thrown landmines will tumble the player less forcefully and not drop items while still in motion

This commit is contained in:
Ashnal 2025-05-03 15:45:20 -04:00
parent f5c2031ea5
commit a6a4170f9b

View file

@ -3283,6 +3283,16 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
S_StartSound(NULL, sfx_gsha7);
}
// if the inflictor is a landmine, its reactiontime will be non-zero if it is still moving
if (inflictor->type == MT_LANDMINE && inflictor->reactiontime > 0)
{
// reduce tumble severity to account for getting beaned point blank sometimes
softenTumble = true;
// make it more consistent with set landmines
inflictor->momx = 0;
inflictor->momy = 0;
}
K_TryHurtSoundExchange(target, source);
if (K_Cooperative() == false)