Record attack only linedef exec

This commit is contained in:
Wolfy 2020-04-05 07:03:49 -05:00 committed by Latapostrophe
parent 18afcda41d
commit 5edfa412cd

View file

@ -1944,6 +1944,7 @@ boolean P_RunTriggerLinedef(line_t *triggerline, mobj_t *actor, sector_t *caller
|| specialtype == 318 // Unlockable trigger - Once
|| specialtype == 320 // Unlockable - Once
|| specialtype == 321 || specialtype == 322 // Trigger on X calls - Continuous + Each Time
|| specialtype == 323 // Record attack only - Once
|| specialtype == 328 // Encore Load
|| specialtype == 399) // Level Load
triggerline->special = 0; // Clear it out
@ -6558,6 +6559,12 @@ void P_SpawnSpecials(INT32 fromnetsave)
P_AddEachTimeThinker(&sectors[sec], &lines[i]);
}
break;
// Record attack only linedef exec
case 323:
case 324:
if (!modeattacking)
lines[i].special = 0;
break;
case 328: // Encore-only linedef execute on map load
if (!encoremode)