mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
SPB: fix endless combo on players in its path
This commit is contained in:
parent
dfd80de4c0
commit
fbd77ef6f7
1 changed files with 8 additions and 0 deletions
|
|
@ -2859,6 +2859,14 @@ static boolean P_FlashingException(const player_t *player, const mobj_t *inflict
|
||||||
return false;
|
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)
|
if (!P_IsKartItem(inflictor->type) && inflictor->type != MT_PLAYER)
|
||||||
{
|
{
|
||||||
// Exception only applies to player items.
|
// Exception only applies to player items.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue