Actor Yurei : PlayerPawn
{
	Health 150
	Scale 0.3
	Mass 1000
	RenderStyle Translucent
	Alpha 0.1
	MaxStepHeight 180
	Player.DisplayName "Yurei"
	Player.SoundClass "Yurei"
	Player.StartItem "IsGhoul", 1
	Player.StartItem "SamaraVisionsX"
	Player.StartItem "EtherealAmmo", 15
	Player.MaxHealth 150
	Player.ForwardMove 1.9
	Player.SideMove 1.9
	bloodcolor "Black"
	Species "Ghoul"
	Player.JumpZ 0
	Player.ScoreIcon "SAMARAST"
	DamageFactor "MacheteRangAttackSlice", 2.0
	Damagefactor "Divine", 1.5
	Damagefactor "Bluefire", 0.0
	Damagefactor "IlluPewPewRifle", 1.5
	Damagefactor "AntiAirBolt", 2.2
	DamageFactor "Normal", 0.8 //0.7
	DamageFactor "ChexWarrior", 0.8
	Damagefactor "RevyRifleBullet", 1.5
	Damagefactor "KarStiglitz", 1.5
	Damagefactor "Bulletpuff2", 0.9
	DamageFactor "Fire2", 0.6
	Damagefactor "RenegadeFire", 0.6
	DamageFactor "Ice2", 0.6
	DamageFactor "Grenade", 0.5
	DamageFactor "CalebDynamite", 0.5
	DamageFactor "Railgun", 1.7
	Damagefactor "CodenameBeam", 1.7
	DamageFactor "Plasma", 0.8
	DamageFactor "Proton", 0.6
	DamageFactor "Drainer", 1.0
	DamageFactor "AltFire2", 0.6
	DamageFactor "AltIce2", 0.6
	Damagefactor "Samdeagle", 1.5
	DamageFactor "AltGrenade", 0.6
	DamageFactor "Fire3", 0.6
	DamageFactor "Ice3", 0.6
	Damagefactor "InariPlasma", 0.8
	Damagefactor "ThrottlePews", 0.7
	DamageFactor "Grenade2", 0.6
	DamageFactor "Wind", 0.7
	DamageFactor "Slashing", 0.7
	DamageFactor "NormalArrow", 1.2
	DamageFactor "CrapPlasma", 0.8
	DamageFactor "Pistol", 3.0
	DamageFactor "MarinePistol", 1.4
	DamageFactor "MachineGun", 0.6
	DamageFactor "Shotgun", 0.8
	DamageFactor "Revolver", 1.5
	Damagefactor "minion", 0.0
	Damagefactor "ZombieIce", 0.0
    Damagefactor "ZombiePoison", 0.0
	Damagefactor "ZombieSlaps", 0.0
	Damagefactor "Tenebra", 0.0
	Damagefactor "Judgement", 0.0
	DamageFactor "PistolBullets", 1.4
	Damagefactor "CalebRevolver", 1.4
	Damagefactor "ChexWarriorPistol", 1.4
	LimitedToTeam 1
	+NOSKIN
	+NOICEDEATH
	+FLOORHUGGER
	+NOTONAUTOMAP
	+QUICKTORETALIATE
	States
	{
	Spawn:
		SAMA A 0 A_JumpIfHealthLower(75,"INeedHealingSpawn")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 0 Setplayerproperty(0,0,4)
		SAMA A 0 A_GiveInventory("NoReload",1)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Stop
		SAMA A 0 SetPlayerProperty(0, 1, 0)
		SAMA A 0 A_ChangeFlag("SHOOTABLE", TRUE)
		SAMA A 0 A_GiveInventory("Clip", 1)
		SAMA A 0 ACS_ExecuteAlways(379,0)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 1 bright A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 4 bright A_PlaySoundEx("Heart","Body",0,2)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA B 5 bright A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA C 5 bright A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA D 5 bright A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA E 5 bright A_SetTranslucent(1.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA F 5 bright A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA G 5 bright A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA H 5 bright A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA I 5 bright A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_SetTranslucent(0.0,0)
		SAMA A 0 A_TakeInventory("Clip", 999)
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_ChangeFlag("SHOOTABLE", FALSE)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 20 A_SetTranslucent(0.0,0)
		SAMA A 0 A_TakeInventory("NoReload",1)
		Loop
	INeedHealingSpawn:
		SAMA A 0 Setplayerproperty(0,0,4)
		SAMA A 0 A_GiveInventory("NoReload",1)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 0 A_Stop
		SAMA A 0 SetPlayerProperty(0, 1, 0)
		SAMA A 0 A_ChangeFlag("SHOOTABLE", TRUE)
		SAMA A 0 A_GiveInventory("Clip", 1)
		SAMA A 0 ACS_ExecuteAlways(379,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 1 bright A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 4 bright A_PlaySoundEx("Heart","Body",0,2)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA B 5 bright A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA C 5 bright A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA D 5 bright A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA E 5 bright A_SetTranslucent(1.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA F 5 bright A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA G 5 bright A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA H 5 bright A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA I 5 bright A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_SetTranslucent(0.0,0)
		SAMA A 0 A_TakeInventory("Clip", 999)
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_ChangeFlag("SHOOTABLE", FALSE)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 20 A_SetTranslucent(0.0,0)
		SAMA A 0 A_TakeInventory("NoReload",1)
		Goto See
	YureiSilentSpawn:
		SAMA A 0 A_JumpIfHealthLower(75,"INeedHealingSpawn")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 0 Setplayerproperty(0,0,4)
		SAMA A 0 A_GiveInventory("NoReload",1)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Stop
		SAMA A 0 SetPlayerProperty(0, 1, 0)
		SAMA A 0 A_ChangeFlag("SHOOTABLE", TRUE)
		SAMA A 0 A_GiveInventory("Clip", 1)
		SAMA A 0 ACS_ExecuteAlways(379,0)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 5 bright A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA B 5 bright A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA C 5 bright A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA D 5 bright A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA E 5 bright A_SetTranslucent(1.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA F 5 bright A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA G 5 bright A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA H 5 bright A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA I 5 bright A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("YureiHealActivated",1,"Missile")
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_SetTranslucent(0.0,0)
		SAMA A 0 A_TakeInventory("Clip", 999)
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_ChangeFlag("SHOOTABLE", FALSE)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 20 A_SetTranslucent(0.0,0)
		SAMA A 0 A_TakeInventory("NoReload",1)
		Goto See
	DisableTheGhoul:
		SAMA A 0 A_Changeflag("shootable",false)
		SAMA A 0 A_Changeflag("shootable",false)
		SAMA A 0 Setplayerproperty(0,1,4)
		SAMA A 0 A_TakeInventory("GhoulDisableTrigger",15)
		SAMA A 90 Bright A_SetTranslucent(1.0,0)
		SAMA A 0 A_TakeInventory("GhoulDisableTrigger",15)
		SAMA A 0 A_Changeflag("shootable",true)
		SAMA A 0 A_Changeflag("shootable",true)
		SAMA A 0 Setplayerproperty(0,0,4)
		SAMA A 0 Setplayerproperty(0,0,4)
		SAMA A 0 A_TakeInventory("GhoulDisableTrigger",15)
		Goto Spawn
	See:
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_TakeInventory("NoReload",1)
		SAMA A 0 A_Jump(256,"YureiStealth1","YureiStealth2","YureiStealth3","YureiStealth4","YureiStealth5","YureiStealth6","YureiStealth7","YureiStealth8","YureiStealth9","YureiStealth10","YureiStealth11")
	YureiStealth1:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth2:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth3:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth4:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth5:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth6:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth7:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth8:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth9:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth10:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiStealth11:
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_Playsound("Yurei/SpoopyPassive",CHAN_ITEM)
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto Spawn
	YureiDecoySee:
		SAMA A 0 SetPlayerProperty(0,0,0)
		SAMA A 0 A_StopSound(CHAN_ITEM)
		SAMA A 0 A_ChangeFlag("SHOOTABLE", FALSE)
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 35 A_SetTranslucent(0.0,0)
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 35 A_SetTranslucent(0.0,0)
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 35 A_SetTranslucent(0.0,0)
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 35 A_SetTranslucent(0.0,0)
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 35 A_SetTranslucent(0.0,0)
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_TakeInventory("DecoySpawned",1)
		SAMA A 0 ACS_NamedExecute("YureiReset",0)
		Goto YureiSilentSee
	YureiSilentSee:
		SAMA A 0 SetPlayerProperty(0,0,0)
        SAMA A 0 A_TakeInventory("CyborgDashCheck",999)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 7 A_SetTranslucent(0.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA A 0 A_JumpIfInventory("CyborgDashCheck",1,"See")
		SAMA A 0 SetPlayerProperty(0,1,0)
		SAMA A 0 A_GiveInventory("EtherealAmmo",1)
		SAMA A 0 A_Stop
		Goto YureiSilentSpawn
	Pain:
		SAMA J 0 SetPlayerProperty(0,0,4)
		SAMA J 0 SetPlayerProperty(0,0,0)
		SAMA J 0 bright A_SetTranslucent(0.2,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA J 6 A_Pain
		SAMA J 0 A_TakeInventory("Clip",999)
		SAMA J 0 A_SetTranslucent(0.0, 0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA J 6
		Goto Spawn+18
	Pain.Vivi:
	SAMA A 0 A_SetPitch(pitch - 3.0)
	SAMA A 0 A_SetAngle(angle + (random(-50,50)/10))
	Goto Pain
	Pain.ViviMine:
	SAMA A 0 ThrustThingZ(0,70,0,0)
	Goto Pain
	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
	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.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
	Missile:
		SAMA J 0
		SAMA J 0 A_ChangeFlag("SHOOTABLE", TRUE)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA N 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA JKLMN 3 bright A_SetTranslucent(1.0,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA N 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA N 4 bright A_SetTranslucent(0.8,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA N 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA N 4 bright A_SetTranslucent(0.6,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA N 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA N 4 bright A_SetTranslucent(0.4,0)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA N 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SAMA N 4 bright A_SetTranslucent(0.2,0)
		SAMA N 0 A_SetTranslucent(0.0,0)
		SAMA N 0 A_ChangeFlag("SHOOTABLE", FALSE)
		SAMA N 0 A_TakeInventory("YureiHealActivated",1)
		Goto See
	Pain.GwenPlasma2:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		SAMA A 0 Setplayerproperty(0,0,4)
		SAMA A 0 A_Pain
		SAMA A 20 Setplayerproperty(0,1,0)
		SAMA A 2 Setplayerproperty(0,0,0)
		Goto Spawn+18
	GwenGoddessDeath:
		TNT1 A 0 SetPlayerProperty(0,1,4)
		TNT1 A 0 A_ChangeFlag("Shootable",true)
		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)
		SAMA J 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")
		SAMA A 0 A_TakeInventory("KilledCount",999)
		SAMA A 0 A_GiveToTarget("KilledMe",1)
		SAMA A 0 A_GiveToTarget("KilledYurei",1)
		SAMA A 0 A_StopSoundEx("Voice")
		SAMA A 0 A_StopSoundEx("Weapon")
		SAMA A 0 A_Stop
		SAMA A 0 A_Pain
		SAMA J 30 A_SetTranslucent(1.0,0)
		SAMA A 0 A_PlayerScream
		SAMA OPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOP 1 bright A_SpawnItem("SamaraDeathFire")
		SAMA OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 2 A_SpawnItem("SamaraDeathFire2")
		TNT1 A 1 A_NoBlocking
		TNT1 A -1
		Stop
	DeathAnimAlt:
		TNT1 A 0 A_GiveToTarget("KillIndicator",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		SAMA A 0 A_TakeInventory("KilledCount",999)
		SAMA A 0 A_GiveToTarget("KilledMe",1)
		SAMA A 0 A_GiveToTarget("KilledYurei",1)
		SAMA A 0 A_StopSoundEx("Voice")
		SAMA A 0 A_StopSoundEx("Weapon")
		SAMA A 0 A_Stop
		SAMA A 0 A_Pain
		SAMA J 30 A_SetTranslucent(1.0,0)
		SAMA A 0 A_PlayerScream
		SAMA OPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOPOP 1 bright A_SpawnItem("SamaraDeathFire")
		SAMA OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 2 A_SpawnItem("SamaraDeathFire2")
		TNT1 A 1 A_NoBlocking
		TNT1 A -1
		Stop
	Death.ChexWarrior:
		SAMA J 0 A_GiveToTarget("KillIndicator",1)
		SAMA J 0 A_TakeInventory("KilledCount",999)
		SAMA J 0 A_GiveToTarget("KilledMe",1)
		SAMA J 0 A_GiveToTarget("KilledYurei",1)
		SAMA J 0 A_StopSoundEx("Voice")
		SAMA J 0 A_StopSoundEx("Weapon")
		SAMA J 0 A_SpawnItemEx("ChexCereal",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		SAMA J 0 A_GiveToTarget("ChexArmorBonus",25)
		SAMA J 0 A_GiveToTarget("ChexBoop",1)
		SAMA J 0 A_Stop
		SAMA J 0 A_NoGravity
		SAMA J 0 A_ChangeFlag("DONTGIB",1)
		SAMA J 0 A_PlaySoundEx("Teleport/Chex",7)
		SAMA J 0 A_PlaySoundEx("YureiPain", "Body")
		SAMA J 3 A_SpawnItem("BigZorch")
		SAMA J 3 A_SetTranslucent(0.9,0)
		SAMA J 0 A_Scream
		SAMA J 3 A_SetTranslucent(0.8,0)
		SAMA J 0 A_NoBlocking
		SAMA J 3 A_SetTranslucent(0.7,0)
		SAMA J 3 A_SetTranslucent(0.6,0)
		SAMA J 3 A_SetTranslucent(0.5,0)
		SAMA J 3 A_SetTranslucent(0.4,0)
		SAMA J 3 A_SetTranslucent(0.3,0)
		SAMA J 3 A_SetTranslucent(0.2,0)
		SAMA J 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")
		TNT1 A 0 A_TakeInventory("KilledCount",999)
		TNT1 A 0 A_GiveToTarget("KilledMe",1)
		TNT1 A 0 A_GiveToTarget("KilledYurei",1)
		TNT1 A 1
		TNT1 A 0 A_NoBlocking
		TNT1 A 0 A_Gravity
		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)
		NULL A 1 A_SpawnItemEx("SoulGIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A -1
		Stop
	Death.MarineShotgun:
	SAMA A 0 A_GiveToTarget("grenadeammo",1)
	SAMA A 0 A_GiveToTarget("shell",3)
	SAMA A 0 A_GiveToTarget("clip1",20)
	Goto DeathAnim
	Death.Marinemachinegun:
	SAMA A 0 A_GiveToTarget("grenadeammo",1)
	SAMA A 0 A_GiveToTarget("shell",3)
	SAMA A 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.Marinepistol:
	SAMA A 0 A_GiveToTarget("grenadeammo",1)
	SAMA A 0 A_GiveToTarget("shell",3)
	SAMA A 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.CrapPlasma:
		SAMA A 0 A_GiveToTarget("Unlock9",1)
		Goto DeathAnim
	Death.Grenade:
		SAMA A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.Ice2:
		SAMA A 0 A_GiveToTarget("KilledIce2",1)
		Goto DeathAnim
	Death.Fire2:
		SAMA A 0 A_GiveToTarget("KilledFire2",1)
		Goto DeathAnim
	Death.Railgun:
		SAMA A 0 A_GiveToTarget("KilledLightning",1)
		Goto DeathAnim
	Death.GhostTrap:
		SAMA A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.AltFire2:
		SAMA A 0 A_GiveToTarget("KilledAltFire2",1)
		Goto Death.Fire2
	Death.AltIce2:
		SAMA A 0 A_GiveToTarget("KilledAltIce2",1)
		Goto Death.Ice2
	Death.AltGrenade:
		SAMA A 0 A_GiveToTarget("KilledAltG",1)
		Goto Death.Grenade
	Death.Fire3:
		SAMA A 0 A_GiveToTarget("KilledFire3",1)
		Goto DeathAnim
	Death.Ice3:
		SAMA A 0 A_GiveToTarget("KilledIce3",1)
		Goto DeathAnim
	Death.Grenade2:
		SAMA A 0 A_GiveToTarget("KilledG2",1)
		Goto DeathAnim
	Pain.Drainer:
		SAMA A 0 A_GiveToTarget("Health",10)
		Goto Pain
	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 SamaraDeathFire
{
	- SOLID
	+CLIENTSIDEONLY
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 AAAAAAA 0 A_CustomMissile("ArchvileFirex8",0,0,random(0,360),2,0)
		TNT1 AAA 0 A_CustomMissile("ArchvileFirex7",0,0,random(0,360),2,0)
		Stop
	}
}

Actor SamaraDeathFire2
	{
	- SOLID
	+CLIENTSIDEONLY
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 AAAAAAA 0 A_CustomMissile("ArchvileFirex9",0,0,random(0,360),2,random(50,90))
		TNT1 AAA 0 A_CustomMissile("ArchvileFirex7",0,0,random(0,360),2,random(50,90))
		Stop
	}
}

Actor ArchvileFirex6 : ArchvileFire
{
	Speed 5
	+NOBLOCKMAP
	+NOCLIP
	-NOGRAVITY
	+CLIENTSIDEONLY
}

Actor ArchvileFirex7 : ArchvileFirex6
{
	Translation "160:167=96:111"
	+CLIENTSIDEONLY
}

Actor ArchvileFirex8 : ArchvileFirex7
{
	Speed 12
	+CLIENTSIDEONLY
}

Actor ArchvileFirex9 : ArchvileFirex7
{
	Speed 20
	+CLIENTSIDEONLY
}


Actor SamaraVisionsX : Weapon
{
	Weapon.SelectionOrder 350
	Weapon.SlotNumber 1
	Weapon.Kickback 0
	Weapon.YAdjust 0
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	Inventory.Icon "YUREIATT"
	+WEAPON.DONTBOB
	+WEAPON.NOAUTOAIM
	+WEAPON.MELEEWEAPON
	+INVENTORY.UNDROPPABLE
	States
	{
	Spawn:
		SMVS A 1
		Stop
	Ready:
		SMVS A 0 A_JumpIfInventory("DecoySpawned",1,"ReadyNoInv")
		SMVS A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		SMVS A 0 A_JumpIfInventory("CyborgDashCheck",1,"YureiHealTrigger")
		Loop
	ReadyNoInv:
		SMVS A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		Goto Ready
	Deselect:
		SMVS AAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
		SMVS A 1 A_Lower
		Loop
	Select:
		SMVS AAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
		SMVS A 1 A_Raise
		Goto Select
	Fire:
		SMVS A 0 A_JumpIfInventory("DecoySpawned",1,"RecallDecoyMelee")
		SMVS A 0 A_JumpIfInventory("Clip",1,"Attack")
		SMVS A 0 A_Stop
		SMVS A 0 SetPlayerProperty(0,1,0)
		SMVS A 0 A_Recoil(-30)
		SMVS AAAAA 3 A_FireCustomMissile("YureiAttack2",0,0,0,0)
		SMVS A 16
		SMVS A 0 A_TakeInventory("KilledY",999)
		SMVS A 0 SetPlayerProperty(0,0,0)
		Goto Ready
	RecallDecoyMelee:
		SMVS A 0 ACS_NamedExecute("YureiRecallDecoy",0,1)
		SMVS A 0 ACS_NamedExecute("YureiReset",0)
		SMVS A 0 A_Print("Decoy Activated: Melee",1)
		SMVS A 5 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
		Goto Ready
	Attack:
		SMVS A 0 A_TakeInventory("Clip",999)
		SMVS A 0 A_Stop
		SMVS A 7
		SMVS A 0 SetPlayerProperty(0,1,0)
		SMVS A 0 A_Recoil(-40)
		SMVS AAAAAAA 2 A_FireCustomMissile("YureiAttack",0,0,0,0)
		SMVS A 16
		SMVS A 0 A_TakeInventory("KilledY",999)
		SMVS A 0 SetPlayerProperty(0,0,0)
		Goto Ready
	AltFire:
		SMVS A 0 A_JumpIfInventory("DecoySpawned",1,"RecallDecoyRange")
		SMVS A 0 A_JumpIfInventory("Clip", 1, "Attack2")
		SMVS A 0 A_Stop
		SMVS A 0 SetPlayerProperty(0,1,0)
		SMVS A 15 A_FireCustomMissile("YureiBall",0,0)
		SMVS A 0
		SMVS A 32
		SMVS A 0 SetPlayerProperty(0,0,0)
		Goto Ready
	RecallDecoyRange:
		SMVS A 0 ACS_NamedExecute("YureiRecallDecoy",0,2)
		SMVS A 0 ACS_NamedExecute("YureiReset",0)
		SMVS A 0 A_Print("Decoy Activated: Projectile",1)
		SMVS A 5 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
		Goto Ready
	Attack2:
		SMVS A 0 A_Stop
		SMVS A 0 SetPlayerProperty(0,1,0)
		SMVS A 0 A_TakeInventory("Clip",999)
		SMVS A 0 A_FireCustomMissile("YureiBall",-25,0)
		SMVS A 0 A_FireCustomMissile("YureiBall",-15,0)
		SMVS A 0 A_FireCustomMissile("YureiBall",-5,0)
		SMVS A 0 A_FireCustomMissile("YureiBall",0,0)
		SMVS A 0 A_FireCustomMissile("YureiBall",5,0)
		SMVS A 0 A_FireCustomMissile("YureiBall",15,0)
		SMVS A 0 A_FireCustomMissile("YureiBall",25,0)
		SMVS A 15
		SMVS A 28
		SMBS A 2 SetPlayerProperty(0,0,0)
		Goto Ready
	Reload:
		SMVS A 0 A_JumpIfInventory("GhoulBuzz2",1,"Ready")
		SMVS A 0 A_JumpIfInventory("NoReload",1,"Ready")
		SMVS A 0 A_JumpIfInventory("DecoySpawned",1,"RecallDecoy")
		SMVS A 0 A_JumpIfInventory("EtherealAmmo",15,"SpawnDecoy")
		SMVS A 5 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
		Goto Ready
	SpawnDecoy:
		SMVS A 0 ACS_NamedExecute("YureiSpawnDecoy",0)
		SMVS A 5 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
		Goto Ready
	RecallDecoy:
		SMVS A 0 ACS_NamedExecute("YureiRecallDecoy",0,3)
		SMVS A 0 ACS_NamedExecute("YureiReset",0)
		SMVS A 0 A_Print("Decoy Activated: Idle",1)
		SMVS A 5 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
		Goto Ready
	YureiHealTrigger:
		SMVS A 0 A_TakeInventory("CyborgDashCheck",999)
		SMVS A 0 A_JumpIfInventory("Clip", 1, "HealCheck")
		Goto Ready
	HealCheck:
		SMVS A 0 A_JumpIfInventory("EtherealAmmo",7,"ActivateHeal")
		Goto Ready
	ActivateHeal:
		SMVS A 0 A_GiveInventory("YureiHealActivated",1)
		SMVS A 0 A_TakeInventory("EtherealAmmo",7)
		SMVS A 0 A_Stop
		SMVS A 0 SetPlayerProperty(0,1,0)
		SMVS A 0 A_TakeInventory("Clip",999)
		SMVS A 0 A_FireCustomMissile("YureiHealBall",0,0)
		SMVS A 20
		SMVS A 30
		SMBS A 2 SetPlayerProperty(0,0,0)
		Goto Ready
	}
}

Actor YureiAttack
{
	Damage 8
	Speed 30
	Radius 2
	Height 2
	+FORCERADIUSDMG
	DamageType "Yurei"
	Obituary "%o felt the wrath of %k."
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 1 A_Explode(50,50,0)
		Stop
	}
}

Actor YureiAttack2
{
	Speed 30
	Radius 4
	Height 5
	Damage 4
	DamageType "Yurei"
	Obituary "%o felt the wrath of %k." 
	PROJECTILE
	+NOEXTREMEDEATH
	States
	{
	Spawn:
		TNT1 A 2 A_Explode(30,50,0)
		Stop
	XDeath:
		TNT1 A 0
		Stop
	}
}

Actor YureiBall
{
	Speed 40
	Damage (10)
	DamageType "YureiBall"
	Obituary "%o has no more health for %k." 	
	Height 8
	Radius 10
	RenderStyle Add
	Scale 0.6
	Alpha 1.0
	PROJECTILE
	SeeSound "CreeperBall"
	DeathSound "CreeperBallD"
States
{
Spawn:
SRBA A 1
SRBA A 0 A_SpawnItemEx("SpiritTrailPews",random(-10,10),random(-10,10),random(-10,10),0,0,0)
SRBA A 0 A_SpawnItemEx("SpiritTrail")
SRBA B 1
SRBA A 0 A_SpawnItemEx("SpiritTrailPews",random(-10,10),random(-10,10),random(-10,10),0,0,0)
SRBA A 0 A_SpawnItemEx("SpiritTrail")
SRBA C 1
SRBA A 0 A_SpawnItemEx("SpiritTrailPews",random(-10,10),random(-10,10),random(-10,10),0,0,0)
SRBA A 0 A_SpawnItemEx("SpiritTrail")
SRBA D 1 A_FadeOut(0.1)
Loop
XDeath:
TNT1 A 0 A_GiveToTarget("HitBeep",1)
Goto Death
Death:
SRBA EFGHIJ 3 bright A_SetTranslucent(1.0, 1)
Stop
}
}

Actor YureiBall2 : YureiBall
{
	Damage (0)
States
{
Spawn:
SRBA A 1
SRBA A 0 A_SpawnItemEx("SpiritTrailPews",random(-10,10),random(-10,10),random(-10,10),0,0,0)
SRBA A 0 A_SpawnItemEx("SpiritTrail")
SRBA B 1
SRBA A 0 A_SpawnItemEx("SpiritTrailPews",random(-10,10),random(-10,10),random(-10,10),0,0,0)
SRBA A 0 A_SpawnItemEx("SpiritTrail")
SRBA C 1
SRBA A 0 A_SpawnItemEx("SpiritTrailPews",random(-10,10),random(-10,10),random(-10,10),0,0,0)
SRBA A 0 A_SpawnItemEx("SpiritTrail")
SRBA D 1 A_FadeOut(0.1)
Loop
Death:
SRBA EFGHIJ 3 bright A_SetTranslucent(1.0, 1)
Stop
}
}
	

Actor YureiDecoy
{
  Health 9999
  Mass 1000
  Scale 0.3
  Alpha 0.1
  Renderstyle translucent
  maxstepheight 180
  bloodcolor "Black"
  Species "Ghoul"
  MaxStepHeight 180
  +QUICKTORETALIATE
+FRIENDLY
+DONTHURTSPECIES
+NOBLOOD
+floorclip
+NOBLOCKMONST
+NOBLOCKMAP
-DONTREFLECT
-PUSHABLE
+NEVERRESPAWN
  -SOLID
  -SHOOTABLE
  +NODAMAGETHRUST
+THRUACTORS
+NOTONAUTOMAP
+FLOORHUGGER
  monster
	Damagefactor "Minion", 0
	Damagefactor "Minion2", 0
	Damagefactor "Bluefire", 0
	Damagefactor "Hellzone", 0
	Damagefactor "Lamiafire", 0
	Damagefactor "bloodpuff", 0
	Damagefactor "bluefire", 0
	DamageFactor "SjasScream", 0
	DamageFactor "Creeper", 0
	DamageFactor "CreepStun", 0
	DamageFactor "Jitter", 0
	DamageFactor "Choke", 0
	DamageFactor "Ravager", 0
	DamageFactor "RavagerBall", 0
	DamageFactor "Yurei", 0
	DamageFactor "Justicar", 0
	DamageFactor "YureiBall", 0
	DamageFactor "Misty", 0
	DamageFactor "Clowny", 0
	DamageFactor "Mohoph", 0
	DamageFactor "Emtalic", 0
	DamageFactor "EmtalicWeak", 0
	DamageFactor "I1", 0
	DamageFactor "I2", 0
	DamageFactor "I3", 0
	DamageFactor "I4", 0
	DamageFactor "I5", 0
	DamageFactor "GraveStalkerLure", 0
	DamageFactor "BastetClawingLightSFX", 0
	DamageFactor "BastetClawing", 0
	DamageFactor "BastetClawingHeavySFX", 0
	DamageFactor "DarkSovereign", 0
	Damagefactor "BloodScepter", 0
	Damagefactor "ZombieIce", 0.0
    Damagefactor "ZombiePoison", 0.0
	Damagefactor "Tenebra", 0.0
	Damagefactor "Judgement", 0.0
	DamageFactor "Obliterator", 0.0
	ReactionTime 5100
	States
	{
	Spawn:
		TNT1 A 175 A_SetTranslucent(0.0,0)
		Goto Activate
	Activate:
		SAMA A 5 bright A_SetTranslucent(0.2,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA B 5 bright A_SetTranslucent(0.4,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA C 5 bright A_SetTranslucent(0.6,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA D 5 bright A_SetTranslucent(0.8,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA E 5 bright A_SetTranslucent(1.0,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA F 5 bright A_SetTranslucent(0.8,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA G 5 bright A_SetTranslucent(0.6,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA H 5 bright A_SetTranslucent(0.4,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA I 5 bright A_SetTranslucent(0.2,0)
		SAMA A 0 A_Jump(33, "DecoyMelee", "DecoyProjectile")
		SAMA A 20 A_SetTranslucent(0.0,0)
		Goto Death
	ActivateMelee:
		SAMA A 5 bright A_SetTranslucent(0.2,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA B 5 bright A_SetTranslucent(0.4,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA C 5 bright A_SetTranslucent(0.6,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA D 5 bright A_SetTranslucent(0.8,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA E 5 bright A_SetTranslucent(1.0,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA F 5 bright A_SetTranslucent(0.8,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA G 5 bright A_SetTranslucent(0.6,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA H 5 bright A_SetTranslucent(0.4,0)
		SAMA A 0 A_Jump(50, "DecoyMelee")
		SAMA I 5 bright A_SetTranslucent(0.2,0)
		SAMA A 0 A_Jump(256, "DecoyMelee")
		SAMA A 20 A_SetTranslucent(0.0,0)
		Goto Death
	ActivateRange:
		SAMA A 5 bright A_SetTranslucent(0.2,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA B 5 bright A_SetTranslucent(0.4,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA C 5 bright A_SetTranslucent(0.6,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA D 5 bright A_SetTranslucent(0.8,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA E 5 bright A_SetTranslucent(1.0,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA F 5 bright A_SetTranslucent(0.8,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA G 5 bright A_SetTranslucent(0.6,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA H 5 bright A_SetTranslucent(0.4,0)
		SAMA A 0 A_Jump(50, "DecoyProjectile")
		SAMA I 5 bright A_SetTranslucent(0.2,0)
		SAMA A 0 A_Jump(256, "DecoyProjectile")
		SAMA A 20 A_SetTranslucent(0.0,0)
		Goto Death
	ActivateIdle:
		SAMA A 5 bright A_SetTranslucent(0.2,0)
		SAMA B 5 bright A_SetTranslucent(0.4,0)
		SAMA C 5 bright A_SetTranslucent(0.6,0)
		SAMA D 5 bright A_SetTranslucent(0.8,0)
		SAMA E 5 bright A_SetTranslucent(1.0,0)
		SAMA F 5 bright A_SetTranslucent(0.8,0)
		SAMA G 5 bright A_SetTranslucent(0.6,0)
		SAMA H 5 bright A_SetTranslucent(0.4,0)
		SAMA I 5 bright A_SetTranslucent(0.2,0)
		SAMA A 20 A_SetTranslucent(0.0,0)
		Goto Death
	DecoyMelee:
		SAMA JK 3 bright A_SetTranslucent(1.0,0)
		SAMA L 1 bright
		SAMA L 2 bright A_Recoil(-20)
		SAMA MN 3 bright
		SAMA N 4 bright A_SetTranslucent(0.8,0)
		SAMA N 4 bright A_SetTranslucent(0.6,0)
		SAMA N 4 bright A_SetTranslucent(0.4,0)
		SAMA N 4 bright A_SetTranslucent(0.2,0)
		SAMA A 20 A_SetTranslucent(0.0,0)
		Goto Death
	DecoyProjectile:
		SAMA J 1 bright A_SetTranslucent(1.0,0)
		SAMA A 0 A_PlaySound("CreeperBall",CHAN_ITEM)
		SAMA A 0 A_SpawnItemEx("YureiBall2",0,0,32,40,0,0,-25, SXF_TRANSFERPITCH)
		SAMA A 0 A_SpawnItemEx("YureiBall2",0,0,32,40,0,0,-15, SXF_TRANSFERPITCH)
		SAMA A 0 A_SpawnItemEx("YureiBall2",0,0,32,40,0,0,-5, SXF_TRANSFERPITCH)
		SAMA A 0 A_SpawnItemEx("YureiBall2",0,0,32,40,0,0,0, SXF_TRANSFERPITCH)
		SAMA A 0 A_SpawnItemEx("YureiBall2",0,0,32,40,0,0,5, SXF_TRANSFERPITCH)
		SAMA A 0 A_SpawnItemEx("YureiBall2",0,0,32,40,0,0,15, SXF_TRANSFERPITCH)
		SAMA A 0 A_SpawnItemEx("YureiBall2",0,0,32,40,0,0,25, SXF_TRANSFERPITCH)
		SAMA J 2 bright
		SAMA KLMN 3 bright 
		SAMA N 4 bright A_SetTranslucent(0.8,0)
		SAMA N 4 bright A_SetTranslucent(0.6,0)
		SAMA N 4 bright A_SetTranslucent(0.4,0)
		SAMA N 4 bright A_SetTranslucent(0.2,0)
		SAMA A 20 A_SetTranslucent(0.0,0)
		Goto Death
	Death:
		TNT1 A 1
		Stop
	}
}

Actor YureiDecoyVisual : YureiDecoy
{
	Alpha 0.3
	VisibleToTeam 1
	ReactionTime 175
	States
	{
	Spawn:
		SAMA A 1 Bright A_SpawnItemEx("YureiDecoyLOS",0,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",4,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",8,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",12,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",16,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",20,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",24,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",28,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",32,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",36,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",40,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",44,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",48,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",52,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",56,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",60,0,10,0,0,0,-30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",0,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",4,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",8,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",12,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",16,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",20,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",24,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",28,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",32,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",36,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",40,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",44,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",48,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",52,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",56,0,10,0,0,0,30)
		SAMA A 0 A_SpawnItemEx("YureiDecoyLOS",60,0,10,0,0,0,30)
		SAMA A 0 A_CountDown
		Loop
	Death:
		TNT1 A 1
		Stop
	}
}

Actor YureiDecoyLOS
{
	VisibleToTeam 1
	Scale 0.6
	RenderStyle Add
	+NOBLOCKMONST
	-DONTREFLECT
	-PUSHABLE
    -SOLID
    +THRUACTORS
    +NOTONAUTOMAP
	+CLIENTSIDEONLY
	+NOGRAVITY
	States
	{
	Spawn:
		SAML A 2 Bright
		Goto Death
	Death:
		TNT1 A 1
		Stop
	}
}

Actor DecoySpawned : Inventory
{
	Inventory.MaxAmount 1
}

Actor NoReload : Inventory
{
	Inventory.MaxAmount 1
}

Actor YureiGrayscaleGiver : PowerupGiver
{
   Game Doom
   Radius 1
   Height 1
   BounceType None
   RenderStyle None
   Inventory.Amount 1
   Inventory.MaxAmount 1
   Inventory.Icon "TNT1A0"
   Inventory.PickupMessage "Yurei is right behind you."
   Inventory.PickupSound "Null"
   Inventory.UseSound "Null"
   Powerup.ColorMap 0.0,0.0,0.0,0.6,0.6,0.6
   Powerup.Type "PowerYureiGrayscale"
   +DROPPED
   +QUIET
   +AUTOACTIVATE
   +ALWAYSPICKUP
   +NEVERRESPAWN
   +UNTOSSABLE
   -COUNTITEM
}

Actor PowerYureiGrayscale : PowerUp
{
   Powerup.Duration -0x7FFFFFFF
}

Actor BallFire
{
	Radius 0
	Height 0
	RenderStyle Add
	+NOGRAVITY
	+CLIENTSIDEONLY
	States
	{
	Spawn:
		HPST A 0
		HPST A 0 A_PlaySoundEx("SteamHit","Body")
		HPST ABCDEFGHIJKLMNOPQ 2 bright
		Stop
	}
}

Actor SoulFragment
{
  Radius 1
  Height 1
  Damage (0)
  speed 15
  Projectile
	+RANDOMIZE
	+SKYEXPLODE
    +DONTREFLECT
	SeeSound "imp/attack"
	DeathSound "YUREIHLS"
  RenderStyle Add
  Alpha 0.30
  Scale 1.0
  States
  {
  Spawn:
    SSPA AAAAAA 1 Bright A_SpawnItemEx("SoulFragmentTrail", 0, Random(-1, 1), Random(1, -1), 0, 0, 0, 0, 128)
	SSPA A 0 A_Gravity
  FadeOut:
    SSPA A 1 A_SpawnItemEx("SoulFragmentTrail", 0, Random(-1, 1), Random(1, -1), 0, 0, 0, 0, 128)
    SSPA A 0 A_FadeOut(0.02)
    Loop
  Death:
    TNT1 A 1 A_SpawnItemEx("YureiHealthStuffFragment")
    Stop
  }
}

Actor YureiHealActivated : Inventory
{
	Inventory.Amount 0
	Inventory.MaxAmount 1
}

actor EtherealAmmo : CustomInventory
{
  inventory.amount 15
  inventory.maxamount 15
  +INVENTORY.IGNORESKILL
  +INVBAR
  states
  {
  Spawn:
    TNT1 A -1
    stop
  Use:
	TNT1 A 0 A_GiveInventory("CyborgDashcheck",1)
	Fail
  }
}

Actor SoulFragmentTrail
{
  Radius 1
  Height 1
  Damage (0)
  Projectile
	+RANDOMIZE
	+SKYEXPLODE
    +DONTREFLECT
	+CLIENTSIDEONLY
  RenderStyle Add
  Alpha 0.30
  Scale 1.0
  States
  {
  Spawn:
    SSPS BCD 3 Bright
    Stop
  }
}

Actor YureiHealBall
{
	Radius 10
	Height 10
	Damage 0
	Speed 40
	Alpha 0.8
	Scale 1.0
	SeeSound "imp/attack"
	DeathSound "YUREIHLS"
	PROJECTILE
	+SKYEXPLODE
	States
	{
	Spawn:
		JSPJ FKG 1 bright A_SpawnItemEx("YureiHealBallTrailPews",random(-10,10),random(-10,10),random(-10,10),0,0,0)
		SRBA A 0 A_SpawnItemEx("SpiritTrail")
		JSPJ A 0 A_Gravity
		Loop
	Death:
		TNT1 A 0 A_PlaySound("TyrantLich/InvisBuffSound",CHAN_BODY)
		MPHL A 0 A_SpawnItemEx("YureiHealSpawn",0,0,-9999,0,0,0,0,SXF_NOCHECKPOSITION)
		JSPJ G 1 bright A_FadeOut(0.1)
		Loop
	}
}

Actor YureiHealSpawn
{
	+FLOORHUGGER
	States
	{
	Spawn:
	Death:
		TNT1 A 0
		TNT1 AAAAAAAAA 10 A_SpawnItemEx("YureiHealing",random(-90,90),random(-90,90),0,0,0,10)
		Stop
	}
}

Actor YureiHealing
{
	Radius 8
	Height 8
	Damage (0)
	DamageType "Yurei"
	Obituary "%o was low on health."
	Speed 0
	scale 0.3
	PROJECTILE
	States
	{
	Spawn:
		MED4 B 0 A_SpawnItemEx("YureiHealTrail",random(-5,5),random(-5,5))
		MED4 B 0 A_SpawnItemEx("YureiHealthStuff")
		MED4 B 0 A_SpawnItemEx("YureiNewVFXTrail",random(-5,5),random(-5,5))
		MED4 B 5 A_FadeOut(0.5)
		Loop
	Death:
		MED4 B 3 A_FadeOut(0.1)
		Loop
	}
}

Actor YureiHealTrail
{
	+NOGRAVITY
	+CLIENTSIDEONLY
	scale 0.4
	States
	{
	Spawn:
		MED4 B 0 A_SpawnItemEx("YureiNewVFXTrail")
		MED4 B 1 bright A_FadeOut(0.05)
		Loop
	}
}

Actor YureiNewVFXTrail
{
	RenderStyle Add
	Alpha 0.7
	Scale 0.4
	+NOINTERACTION
	+CLIENTSIDEONLY
	States
	{
	Spawn:
		PAO5 A 1 bright A_FadeOut(0.1)
		Loop
	Death:
		TNT1 A 0
		Stop
	}
}

ACTOR YureiHealBallTrailPews
{
  RenderStyle add
  Alpha 0.75
  Scale 0.4
  projectile
	+nointeraction
	+CLIENTSIDEONLY
	States
	{
	Spawn:
		PAO5 A 3 bright A_FadeOut(0.2)
	}
}

Actor YureiHealthStuff : CustomInventory
{
	Inventory.Amount 1
	Inventory.PickupMessage "You have been healed!"
	Inventory.PickupSound "Justicar/healup"
	Scale 0.035
	+NOSCREENFLASH
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 1 A_FadeOut(0.1)
		Goto Spawn
	Pickup:
		TNT1 A 0 A_JumpIfInventory("SamaraVisionsX",1,"DoNothing")
		TNT1 A 1 A_JumpIfInventory("IsGhoul",1,"Health")
		fail
	DoNothing:
		TNT1 A 1
		Fail
	Health:
		TNT1 A 0 A_GiveInventory("Health",5)
		Stop
	}
}

Actor YureiHealthStuffFragment : CustomInventory
{
	Inventory.Amount 1
	Inventory.PickupMessage "You have been healed!"
	Inventory.PickupSound "Justicar/healup"
	Scale 0.035
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 1 A_FadeOut(0.1)
		Goto Spawn
	Pickup:
		TNT1 A 0 A_JumpIfInventory("SamaraVisionsX",1,"DoNothing")
		TNT1 A 1 A_JumpIfInventory("IsGhoul",1,"Health")
		fail
	DoNothing:
		TNT1 A 1
		Fail
	Health:
		TNT1 A 0 A_GiveInventory("Health",20)
		Stop
	}
}

Actor GhoulINeedHealingTrail
{
	+NOGRAVITY
	+CLIENTSIDEONLY
	scale 0.6
	visibletoteam 1
	States
	{
	Spawn:
	Death:
		MED4 B 1 bright A_FadeOut(0.05)
		Loop
	}
}

Actor 64GhoulINeedHealingTrail
{
	+NOGRAVITY
	+CLIENTSIDEONLY
	scale 0.6
	visibletoplayerclass "Doom64Guy"
	States
	{
	Spawn:
	Death:
		MED4 B 1 bright A_FadeOut(0.05)
		Loop
	}
}