RandomSpawners and A_KillChildren

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Zael
Posts: 3
Joined: Sat Apr 30, 2011 10:13 pm

RandomSpawners and A_KillChildren

Post by Zael »

As per title, I have a big bad boss monster who A_CustomMissiles projectiles which drop RandomSpawners for a variety of different monsters, and my boss has A_KillChildren in his death state so that all minions will die upon the bosses death. Unfortunately, from what I can understand, the A_KillChildren in this instance is instead trying to Kill the RandomSpawner, and not the monsters that would be spawned from said RandomSpawner.

Does anybody have any ideas? Thanks.

Relevant Code:

Code: Select all

	FleshwarpedSummoning:
		MOFL A 0 A_PlaySoundEx("masterofflesh/destroyall","SoundSlot6",0,2)
		MOFL LLKKK 4 bright A_FaceTarget
		MOFL K 0 A_CustomMissile("MOFFleshwarpedSummoner3",1,0,0,2)
		MOFL K 0 A_CustomMissile("MOFFleshwarpedSummoner3",1,0,45,2)
		MOFL K 0 A_CustomMissile("MOFFleshwarpedSummoner3",1,0,90,2)
		MOFL K 0 A_CustomMissile("MOFFleshwarpedSummoner3",1,0,135,2)
		MOFL K 0 A_CustomMissile("MOFFleshwarpedSummoner3",1,0,180,2)
		MOFL K 0 A_CustomMissile("MOFFleshwarpedSummoner3",1,0,225,2)
		MOFL K 0 A_CustomMissile("MOFFleshwarpedSummoner3",1,0,270,2)
		MOFL K 35 bright A_CustomMissile("MOFFleshwarpedSummoner3",1,0,315,2)
		MOFL K 0 A_AlertMonsters
		Goto See

actor MOFFleshwarpedSummoner3 : FastProjectile
{
	Radius 1
	Height 1
	Speed 225
	PROJECTILE
	+NOCLIP
	States
	{
	Spawn:
		TNT1 A 3
		TNT1 A 0 A_Stop
		TNT1 A 0 Bright A_CustomMissile("FleshwarpedSummonEffect",0,0,0,2)
		TNT1 A 0 Bright A_CustomMissile("FleshwarpedSummonEffect",0,0,90,2)
		TNT1 A 0 Bright A_CustomMissile("FleshwarpedSummonEffect",0,0,180,2)
		TNT1 A 3 Bright A_CustomMissile("FleshwarpedSummonEffect",0,0,-90,2)
		TNT1 A 0 A_SpawnItem("MOFFleshwarped")
		stop
	}
}

actor MOFFleshwarped : RandomSpawner
{
	DropItem "WalkingDead" 255 50
	DropItem "Emberguard" 255 30
	DropItem "ColdOne" 255 30
	DropItem "Wretcher" 255 30
	DropItem "RottingSoldier" 255 25
	DropItem "FleshwarpedTroll" 255 20
	DropItem "FleshwarpedTrollArmoured" 255 20
	DropItem "FleshwarpedTrollHammer" 255 20
	DropItem "Corpsefiend" 255 15
	DropItem "FleshwarpedDeadeye" 255 20
	DropItem "FleshwarpedButcher" 255 20
	DropItem "AetherialWraith" 255 15
	DropItem "FleshwarpedReanimator" 255 15
	DropItem "AetherialDominator" 255 10
	DropItem "FleshwarpedHulk" 255 10
	DropItem "PossessedMage" 255 5
	DropItem "AetherialFleshweaver" 255 5
	DropItem "AetherialObelisk" 255 1
	DropItem "AetherialColossus" 255 2
	DropItem "AetherialAbomination" 255 2
	DropItem "AetherialWarlord" 255 1
}
Zael
Posts: 3
Joined: Sat Apr 30, 2011 10:13 pm

Re: RandomSpawners and A_KillChildren

Post by Zael »

Kind of solved, I ended up using ACS and TIDs instead. This may be closed.

Return to “Scripting”