mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Waypoint disable/enable executor
Not tested yet
This commit is contained in:
parent
9257c373ff
commit
07320723d8
1 changed files with 26 additions and 0 deletions
26
src/p_spec.c
26
src/p_spec.c
|
|
@ -3893,6 +3893,32 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
PolyFade(line);
|
PolyFade(line);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// SRB2kart
|
||||||
|
case 2003: // Enable/Disable Waypoints in Tagged Sectors
|
||||||
|
{
|
||||||
|
sector_t *sec;
|
||||||
|
mobj_t *thing;
|
||||||
|
|
||||||
|
while ((secnum = P_FindSectorFromTag(line->tag, secnum)) >= 0)
|
||||||
|
{
|
||||||
|
sec = sectors + secnum;
|
||||||
|
|
||||||
|
for (thing = sec->thinglist; thing; thing = thing->snext)
|
||||||
|
if (thing->type == MT_WAYPOINT)
|
||||||
|
{
|
||||||
|
if (line->flags & ML_NOCLIMB)
|
||||||
|
{
|
||||||
|
thing->extravalue1 = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
thing->extravalue1 = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue