Actor UnDeath : PlayerPawn
{
	Health 150
	Scale 0.4
	RenderStyle Translucent
	BloodColor DarkBlue
	Species "Ghoul"
	Player.DisplayName "UnDeath"
	Player.ScoreIcon "UNDEADST"
	Player.SoundClass "UnDeath"
	Player.StartItem "IsGhoul", 1
	Player.StartItem "UnDeathFace"
	Player.StartItem "AchievementID", 6
	Player.MaxHealth 150
	Player.ColorRange 112, 127
	Player.ForwardMove 1.2
	Player.SideMove 1.1
	mass 700
	damagefactor "Plasma", 0.7
    damagefactor "Ghosttrap", 1.1
    damagefactor "Proton", 0.7
	Damagefactor "pistolbullets", 0.8
	Damagefactor "CalebRevolver", 0.8
	Damagefactor "ChexWarriorPistol", 0.8
	DamageFactor "Grenade", 0.3
	DamageFactor "CalebDynamite", 0.3
	DamageFactor "normal", 0.8
	DamageFactor "ChexWarrior", 0.8
	Damagefactor "fire2", 1.2
	Damagefactor "RenegadeFire", 1.2
	Damagefactor "AltFire2", 1.2
	Damagefactor "minion", 0.0
	Damagefactor "InariPlasma", 0.7
	Damagefactor "SamDeagle", 0.8
	Damagefactor "Tenebra", 0.0
	Damagefactor "Judgement", 0.0
	LimitedToTeam 1
	+NOICEDEATH
	+NOSKIN
	+NOTONAUTOMAP
	+QUICKTORETALIATE
	States
	{
	Spawn:
		UNDH A 0 Setplayerproperty(0,0,4)
		UNDH A 0 A_Changeflag("shootable",true)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 1 A_SetTranslucent(1.0,0)
		Loop
	See:
		UNDH A 0 A_JumpIfHealthLower(75,"INeedHealingSee")
		UNDH A 0 A_Changeflag("shootable",true)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_PlaySoundEx("UnDeathActive","Body")
		UNDH A 2 A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.7,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.5,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.3,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.1,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 52 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 6 A_SetTranslucent(1.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 52 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.1,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.3,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.5,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.7,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 45 A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		Loop
	INeedHealingSee:
		UNDH A 0 A_Changeflag("shootable",true)
		UNDH A 0 A_PlaySoundEx("UnDeathActive","Body")
		UNDH A 2 A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.7,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.5,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.3,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.2,0)
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.1,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 52 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 6 A_SetTranslucent(1.0,0)
		UNDH A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 52 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.1,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.3,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.5,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 2 A_SetTranslucent(0.7,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 45 A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		Goto Spawn
	Dancing:
		UNDH A 0 A_Changeflag("shootable",true)
		UNDH A 0 Setplayerproperty(0,1,4)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_TakeInventory("AriaInfluence",10)
		UNDH AAAAAAAAAAAAAAAA 1
		UNDH A 0 ThrustThingZ(0,20,0,0)
		UNDH A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_TakeInventory("AriaInfluence",10)
		UNDH AAAAAAAAAAAAAAAA 1
		UNDH A 0 ThrustThingZ(0,20,0,0)
		UNDH A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_TakeInventory("AriaInfluence",10)
		UNDH AAAAAAAAAAAAAAAA 1
		UNDH A 0 ThrustThingZ(0,20,0,0)
		UNDH A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_TakeInventory("AriaInfluence",10)
		UNDH AAAAAAAAAAAAAAAA 1
		UNDH A 0 ThrustThingZ(0,20,0,0)
		UNDH A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_TakeInventory("AriaInfluence",10)
		UNDH AAAAAAAAAAAAAAAA 1
		UNDH A 0 ThrustThingZ(0,20,0,0)
		UNDH A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_TakeInventory("AriaInfluence",10)
		UNDH AAAAAAAAAAAAAAAA 1
		UNDH A 0 ThrustThingZ(0,20,0,0)
		UNDH A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		UNDH A 1 Setplayerproperty(0,0,4)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_TakeInventory("AriaInfluence",10)
		Goto Spawn
	DisableTheGhoul:
		UNDH A 0 A_Changeflag("shootable",false)
		UNDH A 0 A_Changeflag("shootable",false)
		UNDH A 0 Setplayerproperty(0,1,4)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 90 Bright A_SetTranslucent(1.0,0)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		UNDH A 0 A_Changeflag("shootable",true)
		UNDH A 0 A_Changeflag("shootable",true)
		UNDH A 0 Setplayerproperty(0,0,4)
		UNDH A 0 Setplayerproperty(0,0,4)
		UNDH A 0 A_TakeInventory("GhoulDisableTrigger",15)
		Goto Spawn
	Missile:
		UNDH A 0 A_Changeflag("shootable",true)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		UNDH A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		UNDH A 100 A_SetTranslucent(1.0,0)
		Goto Spawn
	Pain:	
		UNDH A 0 Setplayerproperty(0,0,4)
		UNDH A 1 A_Pain
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 Setplayerproperty(0,0,4)
		Goto Spawn
	Pain.GwenPlasma2:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		UNDH A 0 Setplayerproperty(0,0,4)
		UNDH A 0 A_Pain
		UNDH A 20 Setplayerproperty(0,1,0)
		UNDH A 2 Setplayerproperty(0,0,0)
		Goto Spawn
	GwenGoddessDeath:
		TNT1 A 0 SetPlayerProperty(0,1,4)
		TNT1 A 0 A_SetTranslucent (1.0, 0)
		TNT1 A 0 A_SpawnItemEx("GwenTimeImplosionRing")
		TNT1 A 0 A_Playsound("Gwen/DivineExplosionSound",6,1,0,ATTN_NONE)
		UNDH A 24 SetPlayerProperty(0,1,4)
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRingDamageFX")
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRingDamage")
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRing")
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRingX")
		TNT1 A 0 A_SpawnItemEx("GwenThunderFX")
		TNT1 A 0 A_SpawnItemEx("GwenGoddessStateEXP")
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("KNThunderFX_Smoke", 0, 0, 0, 0.01 * Random(-125, 125), 0.01 * Random(-125, 125), 0.01 * Random(25, 245), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 A 0 DamageThing(100000)
		Goto Death
	Death:
	DeathAnim:
		TNT1 A 0 A_GiveToTarget("KillBeep",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		UNDH A 0 ACS_ExecuteAlways(463,0)
		UNDH A 0 A_TakeInventory("RocketAmmo",999)
		UNDH A 0 A_TakeInventory("KilledCount",999)
		UNDH A 0 A_GiveInventory("KilledMe",1)
		UNDH A 0 A_GiveInventory("KilledCreeper",1)
		UNDH A 0 A_PlayerScream
		UNDH A 28 A_SetTranslucent(0.8,0)
		UNDH AAAAAA 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH B 6 A_SetTranslucent(0.7,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH C 6 A_SetTranslucent(0.6,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH D 6 A_SetTranslucent(0.5,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH E 6 A_SetTranslucent(0.4,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH F 6 A_SetTranslucent(0.3,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH G 6 A_SetTranslucent(0.2,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH H 6 A_SetTranslucent(0.1,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		TNT1 A -1
		Stop
	DeathAnimAlt:
		TNT1 A 0 A_GiveToTarget("KillIndicator",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		UNDH A 0 ACS_ExecuteAlways(463,0)
		UNDH A 0 A_TakeInventory("RocketAmmo",999)
		UNDH A 0 A_TakeInventory("KilledCount",999)
		UNDH A 0 A_GiveInventory("KilledMe",1)
		UNDH A 0 A_GiveInventory("KilledCreeper",1)
		UNDH A 0 A_PlayerScream
		UNDH A 28 A_SetTranslucent(0.8,0)
		UNDH AAAAAA 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH B 6 A_SetTranslucent(0.7,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH C 6 A_SetTranslucent(0.6,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH D 6 A_SetTranslucent(0.5,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH E 6 A_SetTranslucent(0.4,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH F 6 A_SetTranslucent(0.3,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH G 6 A_SetTranslucent(0.2,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		UNDH H 6 A_SetTranslucent(0.1,0)
		UNDH A 0 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		TNT1 A -1
		Stop
	Death.ChexWarrior:
		UNDH A 0 A_GiveToTarget("KillIndicator",1)
		UNDH A 0 A_TakeInventory("RocketAmmo",999)
		UNDH A 0 A_TakeInventory("KilledCount",999)
		UNDH A 0 A_GiveToTarget("KilledMe",1)
		UNDH A 0 A_GiveToTarget("KilledCreeper",1)
		UNDH A 0 A_SpawnItemEx("ChexCereal",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		UNDH A 0 A_GiveToTarget("ChexArmorBonus",25)
		UNDH A 0 A_GiveToTarget("ChexBoop",1)
		UNDH A 0 A_Stop
		UNDH A 0 A_NoGravity
		UNDH A 0 A_ChangeFlag("DONTGIB",1)
		UNDH A 0 A_PlaySoundEx("Teleport/Chex",7)
		UNDH A 3 A_SpawnItem("BigZorch")
		UNDH A 3 A_SetTranslucent(0.9,0)
		UNDH A 0 A_Scream
		UNDH A 3 A_SetTranslucent(0.8,0)
		UNDH A 0 A_NoBlocking
		UNDH A 3 A_SetTranslucent(0.7,0)
		UNDH A 3 A_SetTranslucent(0.6,0)
		UNDH A 3 A_SetTranslucent(0.5,0)
		UNDH A 3 A_SetTranslucent(0.4,0)
		UNDH A 3 A_SetTranslucent(0.3,0)
		UNDH A 3 A_SetTranslucent(0.2,0)
		UNDH A 3 A_SetTranslucent(0.1,0) 
		TNT1 A 1 A_SetTranslucent(1,0)
		TNT1 A -1
		Stop
	Death.CarolineDamage:
		NULL A 0 A_SpawnItemEx("CarolineHeart",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		Goto Death.UnmakerLaser
	Death.MapGibber:
		TNT1 A 0 A_PlaySound("car/hit",chan_auto)
	Death.MapGibber2:
	Death.UnmakerLaser:
		TNT1 A 0 A_GiveToTarget("KillBeep",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		UNDH A 0 ACS_ExecuteAlways(463,0)
		TNT1 A 0 A_TakeInventory("KilledCount",999)
		TNT1 A 0 A_GiveToTarget("KilledMe",1)
		TNT1 A 0 A_GiveToTarget("KilledCreeper",1)
		TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
		TNT1 A 1
		TNT1 A 0 A_NoBlocking
		TNT1 A 0 A_Gravity
		NULL A 1 A_SpawnItemEx("SoulGIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A -1
		Stop
	Death.LoWangVampiric:
	TNT1 A 0 A_GiveToTarget("SWLoWangBloody",1)
	TNT1 A 0 A_JumpIfInventory("BloodCurseItem",1,"Death",AAPTR_TARGET)
	TNT1 A 0 A_GiveToTarget("Health",20)
	Goto Death
	Pain.Vivi:
	UNDH E 0 A_SetPitch(pitch - 3.0)
	UNDH E 0 A_SetAngle(angle + (random(-50,50)/10))
	Goto Spawn
	Pain.ViviMine:
	UNDH E 0 ThrustThingZ(0,70,0,0)
	Goto Spawn
	Death.SkarletPistolDrain:
	TNT1 A 0 A_JumpIfInventory("BloodCurseItem",1,"Death",AAPTR_TARGET)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death
	Death.SkarletVampiric:
	TNT1 A 0 A_JumpIfInventory("BloodCurseItem",1,"Death",AAPTR_TARGET)
	TNT1 A 0 A_GiveToTarget("Health",60)
	Goto Death
	Death.MarineShotgun:
	UNDH E 0 A_GiveToTarget("grenadeammo",1)
	UNDH E 0 A_GiveToTarget("shell",3)
	UNDH E 0 A_GiveToTarget("clip1",20)
	Goto DeathAnim
	Death.Marinemachinegun:
	UNDH E 0 A_GiveToTarget("grenadeammo",1)
	UNDH E 0 A_GiveToTarget("shell",3)
	UNDH E 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.Marinepistol:
	UNDH E 0 A_GiveToTarget("grenadeammo",1)
	UNDH E 0 A_GiveToTarget("shell",3)
	UNDH E 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.DoomChainSaw:
	TNT1 A 0 A_GiveToTarget("cell",50)
	TNT1 A 0 A_GiveToTarget("RocketAmmo",5)
	TNT1 A 0 A_GiveToTarget("clip1",50)
	TNT1 A 0 A_GiveToTarget("Shell",10)
	Goto Death
	Death.D64Pistol:
	TNT1 A 0 A_GiveToTarget("D64UnmakerUpgrades",1)
	TNT1 A 0 A_GiveToTarget("Cell",75)
	TNT1 A 0 A_GiveToTarget("D64KilledCount",1)
	Goto DeathAnimAlt
	Death.Plasma:
	TNT1 A 0 A_GiveToTarget("CyborgFuel",25)
	Goto DeathAnim
	Death.Telefrag:
	Goto Death.UnmakerLaser
	Death.Grenade:
		UNDH E 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.CrapPlasma:
		UNDH E 0 A_GiveToTarget("Unlock9",1)
		Goto DeathAnim
	Death.Ice2:
		UNDH A 0 A_GiveToTarget("KilledIce2",1)
		Goto DeathAnim
	Death.Fire2:
		UNDH A 0 A_GiveToTarget("KilledFire2",1)
		Goto DeathAnim
	Death.Railgun:
		UNDH A 0 A_GiveToTarget("KilledLightning",1)
		Goto DeathAnim
	Death.GhostTrap:
		UNDH A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.AltFire2:
		UNDH A 0 A_GiveToTarget("KilledAltFire2",1)
		Goto Death.Fire2
	Death.AltIce2:
		UNDH A 0 A_GiveToTarget("KilledAltIce2",1)
		Goto Death.Ice2
	Death.AltGrenade:
		UNDH A 0 A_GiveToTarget("KilledAltG",1)
		Goto Death.Grenade
	Death.Fire3:
		UNDH A 0 A_GiveToTarget("KilledFire3",1)
		Goto DeathAnim
	Death.Ice3:
		UNDH A 0 A_GiveToTarget("KilledIce3",1)
		Goto DeathAnim
	Death.Grenade2:
		UNDH A 0 A_GiveToTarget("KilledG2",1)
		Goto DeathAnim
	Pain.Drainer:
		UNDH A 0 A_GiveToTarget("Health",10)
		Goto Spawn
	Death.ChexWarriorPistol:
	Death.ChexWarriorChainsaw:
	Goto Death.ChexWarrior
	Death.RenegadeBullets:
	Death.RenegadeFire:
	Death.ArtilleryDamage:
		TNT1 A 0 A_GiveToTarget("RenegadeKillItem",1)
		Goto DeathAnimAlt
	Death.CalebDynamite:
		TNT1 A 0 A_GiveToTarget("KilledG",1)
	Death.CalebShotgun:
	Death.CalebRevolver:
		TNT1 A 0 A_GiveToTarget("Health",20)
		TNT1 A 0 A_SpawnItemEx("CalebHeart",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		TNT1 A 0 A_GiveToTarget("CalebHeartbeat",1)
		Goto DeathAnimAlt
	Pain.EngineerSaw:
	Pain.Ghosttrap:
	Pain.GBFire:
	Pain.Misty:
	Pain.GBSaw:
	Pain.GBString:
	Pain.GBNuke:
	Pain.Ice2:
	Pain.Ice:
	Pain.ElecStorm:
	Pain.AltFire2:
	Pain.AltIce2:
	Pain.Fire2:
	Pain.Doggo:
	Pain.LaraArrow:
	Pain.Wind2:
	Pain.Grenade:
	Pain.Grenade2:
	Pain.TemplarLightningRain:
	Pain.CarolineDamage:
	Pain.ChexWarrior:
	Pain.InariPlasma:
	Pain.Plasma:
	Pain.FlameProtect:
	Pain.DutchShotgun:
	Pain.KarenExplo:
	Pain.Sentinel:
	Pain.Divine:
	Pain.GwenPlasma3:
	Pain.MacheteSlicerino:
	Pain.AntiAirbolt:
	Pain.MechPewPews:
	Pain.RainbowNado:
		TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
		Goto Pain
	}
}

Actor UnDeathFace : Weapon
{
	Weapon.SlotNumber 1
	Weapon.SelectionOrder 350
	Inventory.Icon "UNDEADAT"
	+WEAPON.DONTBOB
	States
	{
	Select:
		UNDT AAAAAAAAAAAAAAAAA 0 A_Raise
		UNDT A 1 A_Raise
		Loop
	Deselect:
		UNDT AAAAAAAAAAAAAAAAA 0 A_Lower
		UNDT A 1 A_Lower
	Ready:
		UNDT A 1 A_WeaponReady
		Loop
	Fire:
		UNDT AAAAAAAAAAAAAAAAAAAAAAA 1 A_SetTranslucent(1.0,0)
		UNDT A 0 ACS_ExecuteAlways(461,0,1)
		UNDT A 0 A_PlayWeaponSound("UnDeathAttack")
		UNDT A 5 Offset(0,22) A_FireCustomMissile("UnDeathAttack")
		UNDT A 5 Offset(0,12) A_FireCustomMissile("UnDeathAttack")
		UNDT A 5 Offset(0,2) A_FireCustomMissile("UnDeathAttack")
		UNDT A 5 Offset(0,-2) A_FireCustomMissile("UnDeathAttack")
		UNDT AAA 5 A_FireCustomMissile("UnDeathAttack")
		UNDT A 0 ACS_ExecuteAlways(461,0,2)
		UNDT A 0 A_TakeInventory("Crunched",999)
		UNDT A 5 Offset(0,2)
		UNDT A 5 Offset(0,12)
		UNDT A 5 Offset(0,22)
		UNDT AA 5 Offset(0,32)
		Goto Ready
	AltFire:
		UNDT A 1 A_JumpIfInventory("Clip",1,"Teleport")
		UNDT A 0 A_GiveInventory("Clip",1)
		UNDT A 39 ACS_ExecuteAlways(462,0,1)
		Goto Ready
	Teleport:
		UNDT A 0 
		UNDT A 0 A_TakeInventory("Clip",999)
		UNDT A 1 ACS_ExecuteAlways(462,0,2)
		UNDT A 20
		Goto Ready
	}
}

Actor UnDeathAttack
{
	Radius 2
	Height 2
	Speed 30
	Damage 6
	DamageType "Jitter"
	Obituary "%o found %k... or %k found %o..." 
	PROJECTILE
	+FORCERADIUSDMG
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 1 A_Explode(40,70,0)
		Stop
	}
}

Actor UnDeathSound
{
	States
	{
	Spawn:
	Death:
		TNT1 A 0
		TNT1 A 1 A_PlaySound("UnDeathAttack")
		Stop
	}
}

Actor UnDeathTeleportSpot
{
	Scale 0.1
	Alpha 0.8
	RenderStyle Add
	VisibleToTeam 1
	+FORCEXYBILLBOARD
	+NOINTERACTION
	+NOTONAUTOMAP
	States
	{
	Spawn:
		ORBP ABCDCB 5
		Loop
	}
}