mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'stone-shoe-crash' into 'master'
Fix Stone Shoe damage downgrade crash Closes #1640 See merge request kart-krew-dev/ring-racers-internal!2761
This commit is contained in:
commit
487b7c0bb3
1 changed files with 6 additions and 5 deletions
|
|
@ -3280,9 +3280,13 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
|
||||
if (source && source != player->mo && source->player)
|
||||
{
|
||||
// Stone Shoe handles amps on its own
|
||||
if (inflictor->type != MT_STONESHOE && inflictor->type != MT_STONESHOE_CHAIN)
|
||||
// Stone Shoe handles amps on its own, but this is also a good place to set soften tumble for it
|
||||
if (inflictor->type == MT_STONESHOE || inflictor->type == MT_STONESHOE_CHAIN)
|
||||
softenTumble = true;
|
||||
else
|
||||
K_SpawnAmps(source->player, K_PvPAmpReward((type == DMG_WHUMBLE) ? 30 : 20, source->player, player), target);
|
||||
|
||||
|
||||
K_BotHitPenalty(player);
|
||||
|
||||
if (G_SameTeam(source->player, player))
|
||||
|
|
@ -3480,9 +3484,6 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
ringburst = 0;
|
||||
break;
|
||||
case DMG_TUMBLE:
|
||||
if (inflictor->type == MT_STONESHOE || inflictor->type == MT_STONESHOE_CHAIN)
|
||||
softenTumble = true;
|
||||
|
||||
K_TumblePlayer(player, inflictor, source, softenTumble);
|
||||
ringburst = 10;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue