mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Line special 2003: respawn player if crossing this line
This commit is contained in:
parent
090daaac02
commit
8c047372a6
2 changed files with 10 additions and 0 deletions
|
|
@ -213,6 +213,7 @@ static boolean P_SpecialIsLinedefCrossType(UINT16 ldspecial)
|
|||
switch (ldspecial)
|
||||
{
|
||||
case 2001: // Finish line
|
||||
case 2003: // Respawn line
|
||||
{
|
||||
linedefcrossspecial = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2182,6 +2182,13 @@ void P_CrossSpecialLine(line_t *line, INT32 side, mobj_t *thing)
|
|||
}
|
||||
break;
|
||||
|
||||
case 2003: // Respawn Line
|
||||
{
|
||||
if (player->respawn.state == RESPAWNST_NONE)
|
||||
P_DamageMobj(player->mo, NULL, NULL, 1, DMG_DEATHPIT);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
{
|
||||
// Do nothing
|
||||
|
|
@ -6939,6 +6946,8 @@ void P_SpawnSpecials(boolean fromnetsave)
|
|||
break;
|
||||
case 2002: // Linedef Trigger: Race Lap
|
||||
break;
|
||||
case 2003: // Respawn Line
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue