mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Some trigger lineder cleanup
This commit is contained in:
parent
c43d5c7183
commit
22420f92d2
2 changed files with 26 additions and 20 deletions
|
@ -2678,7 +2678,7 @@ udmf
|
||||||
|
|
||||||
313
|
313
|
||||||
{
|
{
|
||||||
title = "No More Enemies - Once";
|
title = "No More Enemies";
|
||||||
prefix = "(313)";
|
prefix = "(313)";
|
||||||
arg0
|
arg0
|
||||||
{
|
{
|
||||||
|
|
44
src/p_spec.c
44
src/p_spec.c
|
@ -1837,25 +1837,31 @@ boolean P_RunTriggerLinedef(line_t *triggerline, mobj_t *actor, sector_t *caller
|
||||||
if (specialtype == 321 && triggerline->args[2])
|
if (specialtype == 321 && triggerline->args[2])
|
||||||
triggerline->callcount = triggerline->args[3];
|
triggerline->callcount = triggerline->args[3];
|
||||||
else
|
else
|
||||||
// These special types work only once
|
{
|
||||||
if ((specialtype == 300 && triggerline->args[0] == TMT_ONCE) // Basic
|
// These special types work only once
|
||||||
|| (specialtype == 303 && triggerline->args[0] == TMT_ONCE) // Ring count
|
if (specialtype == 313 // No more enemies
|
||||||
|| (specialtype == 305 && triggerline->args[0] == TMT_ONCE) // Character ability
|
|| specialtype == 321 // Trigger on X calls
|
||||||
|| (specialtype == 308 && triggerline->args[0] == TMT_ONCE) // Gametype
|
|| specialtype == 399) // Level Load
|
||||||
|| (specialtype == 309 && triggerline->args[0] == TMT_ONCE) // CTF team
|
triggerline->special = 0;
|
||||||
|| specialtype == 313 // No More Enemies - Once
|
else if ((specialtype == 323 // Nightserize
|
||||||
|| (specialtype == 314 && triggerline->args[0] == TMT_ONCE) // No of pushables
|
|| specialtype == 325 // DeNightserize
|
||||||
|| (specialtype == 317 && triggerline->args[0] == TMT_ONCE) // Unlockable trigger
|
|| specialtype == 327 // Nights lap
|
||||||
|| (specialtype == 319 && triggerline->args[0] == TMT_ONCE) // Unlockable
|
|| specialtype == 329) // Nights bonus time
|
||||||
|| specialtype == 321 // Trigger on X calls
|
&& triggerline->args[0])
|
||||||
|| (specialtype == 323 && triggerline->args[0]) // Nightserize - Once
|
triggerline->special = 0;
|
||||||
|| (specialtype == 325 && triggerline->args[0]) // DeNightserize - Once
|
else if ((specialtype == 300 // Basic
|
||||||
|| (specialtype == 327 && triggerline->args[0]) // Nights lap - Once
|
|| specialtype == 303 // Ring count
|
||||||
|| (specialtype == 329 && triggerline->args[0]) // Nights Bonus Time - Once
|
|| specialtype == 305 // Character ability
|
||||||
|| (specialtype == 331 && triggerline->args[0] == TMT_ONCE) // Player skin
|
|| specialtype == 308 // Gametype
|
||||||
|| (specialtype == 334 && triggerline->args[0] == TMT_ONCE) // Object dye
|
|| specialtype == 309 // CTF team
|
||||||
|| specialtype == 399) // Level Load
|
|| specialtype == 314 // No of pushables
|
||||||
triggerline->special = 0; // Clear it out
|
|| specialtype == 317 // Unlockable trigger
|
||||||
|
|| specialtype == 319 // Unlockable
|
||||||
|
|| specialtype == 331 // Player skin
|
||||||
|
|| specialtype == 334) // Object dye
|
||||||
|
&& triggerline->args[0] == TMT_ONCE)
|
||||||
|
triggerline->special = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue