mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Let Drop Targets hit the thrower immediately after bouncing off a wall
This commit is contained in:
parent
de74808eaa
commit
b2913b9a19
1 changed files with 8 additions and 0 deletions
|
|
@ -1791,6 +1791,8 @@ void P_XYMovement(mobj_t *mo)
|
||||||
{
|
{
|
||||||
S_StartSound(mo, mo->info->attacksound);
|
S_StartSound(mo, mo->info->attacksound);
|
||||||
mo->health--;
|
mo->health--;
|
||||||
|
// This prevents an item thrown at a wall from
|
||||||
|
// phasing through you on its return.
|
||||||
mo->threshold = 0;
|
mo->threshold = 0;
|
||||||
}
|
}
|
||||||
/*FALLTHRU*/
|
/*FALLTHRU*/
|
||||||
|
|
@ -1811,6 +1813,12 @@ void P_XYMovement(mobj_t *mo)
|
||||||
S_StartSound(mo, sfx_s3k44); // Bubble bounce
|
S_StartSound(mo, sfx_s3k44); // Bubble bounce
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MT_DROPTARGET:
|
||||||
|
// This prevents an item thrown at a wall from
|
||||||
|
// phasing through you on its return.
|
||||||
|
mo->threshold = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue