mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Forward thrown landmines will tumble the player less forcefully and not drop items while still in motion
This commit is contained in:
parent
f5c2031ea5
commit
a6a4170f9b
1 changed files with 10 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue