
This could allow actors to do different stuff for multiplayer games, an example:
Code: Select all
Actor ManaSpawner : CustomInventory
{
Inventory.PickupSound "misc/p_pkup"
States
{
Spawn:
MAN1 A 1 NoDelay {
If(GameType () != GAME_SINGLE_PLAYER)
{
Return State("MPSpawn");
}
Else
{
Return State("");
}
}
MAN1 A 1 A_JumpIf(CheckClass("FighterPlayer",AAPTR_PLAYER1), "SpawnMana2")
SpawnLoop:
MAN1 A 1
Loop
SpawnMana2:
MAN2 A 1
Loop
MPSpawn:
MAN3 A 1
Loop
PickUp:
TNT1 A 1 ACS_NamedExecuteAlways("AmmoSpawner1")
Stop
}
}
I'm sure there are other uses, like a monster or friendly monster acting differently depending on the gametype, custom boss monsters accounting for the possibility of multiple players to do different attacks and such.
I hope this is possible.