mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Anti-marbel-garden softlock
Stumble if you touch a spike while already flashing/spunout (and not just collided with it 2 tics ago)
This commit is contained in:
parent
d63d0279e6
commit
1c6254c426
1 changed files with 14 additions and 0 deletions
14
src/p_map.c
14
src/p_map.c
|
|
@ -1382,6 +1382,20 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (
|
||||
thing->type == MT_WALLSPIKE
|
||||
&& g_tm.thing->health
|
||||
&& g_tm.thing->player
|
||||
&& (g_tm.thing->player->justbumped < bumptime-2)
|
||||
&& (
|
||||
g_tm.thing->player->flashing
|
||||
|| P_PlayerInPain(g_tm.thing->player)
|
||||
)
|
||||
)
|
||||
{
|
||||
K_StumblePlayer(g_tm.thing->player);
|
||||
}
|
||||
|
||||
// Do not return because solidity code comes below.
|
||||
P_DamageMobj(g_tm.thing, thing, thing, 1, DMG_NORMAL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue