From a6a4170f9b435b428aa750ea471e015741940710 Mon Sep 17 00:00:00 2001 From: Ashnal Date: Sat, 3 May 2025 15:45:20 -0400 Subject: [PATCH] Forward thrown landmines will tumble the player less forcefully and not drop items while still in motion --- src/p_inter.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/p_inter.c b/src/p_inter.c index 689860dd4..04a05ce4c 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -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)