mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-spb-combo' into 'master'
SPB: fix endless combo on players in its path Closes #1015 See merge request KartKrew/Kart!1900
This commit is contained in:
commit
7b5abc19b9
1 changed files with 8 additions and 0 deletions
|
|
@ -2642,6 +2642,14 @@ static boolean P_FlashingException(const player_t *player, const mobj_t *inflict
|
|||
return false;
|
||||
}
|
||||
|
||||
if (inflictor->type == MT_SPB)
|
||||
{
|
||||
// The SPB does not die on impact with players other than its intended target.
|
||||
// Ignoring flashing tics would cause an endless combo on anyone who gets in way of the SPB.
|
||||
// Upon hitting its target, DMG_EXPLODE will be used (which ignores flashing tics).
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!P_IsKartItem(inflictor->type) && inflictor->type != MT_PLAYER)
|
||||
{
|
||||
// Exception only applies to player items.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue