mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'forward-throw-landmine-soften' into 'master'
Soften forward thrown landmines See merge request kart-krew-dev/ring-racers-internal!2632
This commit is contained in:
commit
40974410ad
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);
|
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);
|
K_TryHurtSoundExchange(target, source);
|
||||||
|
|
||||||
if (K_Cooperative() == false)
|
if (K_Cooperative() == false)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue