<aside> ⚡ script "core_checkmode" (int checkmode)
</aside>
This script can be used to check the game mode that is currently being played. It has multiple modes which specifies the attributes more important to return off of.
checkmode
: int - Which type of mode to check for.The return value of this script actually varies based on the value of checkmode
.
checkmode
is 0:
checkmode
is 1:
checkmode
is 2:
PartyBall
directly checks for LMS modes on its spawn state. If it’s LMS or a modified mode it disappears.
Spawn:
PRTB A 0
PRTB A 0 A_JumpIf(ACS_NamedExecuteWithResult("core_checkmode",0)==2 || ACS_NamedExecuteWithResult("core_checkmode",2)>0, "End")
PRTB A 0 A_ChangeFlag("FLOATBOB", true)
PRTB A 0 A_GiveInventory("PartyBallSpawnFunc",1)
goto Spawn2
DangerWrapMine
explodes immediately upon landing in CTF, One-Flag, and Skulltag to avoid locking down the objective item too easily.
Spawn:
DWRA I 0
DWRA I 0 A_JumpIf(CallACS("core_checkmode", 0)==4 || CallACS("core_checkmode", 0)==6,"Death")
DWRA I 0 A_SetArg(0, 200)
DWRA I 5 bright
DWRA G 0 A_ChangeFlag("NOCLIP",0)
Goto Mine