mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Line special 2003: No Climb - only respawn when crossing front side
This commit is contained in:
parent
8c047372a6
commit
eabb97ea93
1 changed files with 8 additions and 1 deletions
|
|
@ -2184,8 +2184,15 @@ void P_CrossSpecialLine(line_t *line, INT32 side, mobj_t *thing)
|
||||||
|
|
||||||
case 2003: // Respawn Line
|
case 2003: // Respawn Line
|
||||||
{
|
{
|
||||||
if (player->respawn.state == RESPAWNST_NONE)
|
/* No Climb: only trigger from front side */
|
||||||
|
if
|
||||||
|
(
|
||||||
|
player->respawn.state == RESPAWNST_NONE &&
|
||||||
|
(!(line->flags & ML_NOCLIMB) || side == 0)
|
||||||
|
)
|
||||||
|
{
|
||||||
P_DamageMobj(player->mo, NULL, NULL, 1, DMG_DEATHPIT);
|
P_DamageMobj(player->mo, NULL, NULL, 1, DMG_DEATHPIT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue