by Yholl » Sat May 31, 2014 11:57 pm
FishyClockwork wrote:Ugly hacks ahoy! *ahem* Might wanna give this a try?
Code: Select all
Actor HostileOnSpawn : ZombieMan
{
States
{
Idle:
Goto Super::Spawn
Spawn:
TNT1 A 0 NoDelay A_TransferPointer(AAPTR_PLAYER1, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER2, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER3, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER4, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER5, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER6, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER7, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER8, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
Goto Super::Spawn
FoundPlayer:
TNT1 A 0 A_PrintBold("found a player!") //Just a message to tell you it works
Goto See
}
}
Oooh, that's quite nice. Mind if I use it in DoomRL Monsterpack? Delicious credits to you, of course.
This'd fit well into my plans for making everyone sad.
[quote="FishyClockwork"][s]Ugly hacks ahoy![/s] *ahem* Might wanna give this a try?
[code]Actor HostileOnSpawn : ZombieMan
{
States
{
Idle:
Goto Super::Spawn
Spawn:
TNT1 A 0 NoDelay A_TransferPointer(AAPTR_PLAYER1, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER2, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER3, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER4, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER5, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER6, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER7, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
TNT1 A 0 A_TransferPointer(AAPTR_PLAYER8, AAPTR_DEFAULT, AAPTR_DEFAULT, AAPTR_TARGET)
TNT1 A 0 A_CheckFlag("SHOOTABLE", "FoundPlayer", AAPTR_TARGET)
Goto Super::Spawn
FoundPlayer:
TNT1 A 0 A_PrintBold("found a player!") //Just a message to tell you it works
Goto See
}
}[/code][/quote]
Oooh, that's quite nice. Mind if I use it in DoomRL Monsterpack? Delicious credits to you, of course.
This'd fit well into my plans for making everyone sad.