Actor Eleza : PlayerPawn
{
+NOSKIN
+NOICEDEATH
+NODAMAGETHRUST
+QUICKTORETALIATE
+GHOST  
    Health 100
	Player.Maxhealth 100
    Radius 16
    Height 42
    Mass 700
	scale 0.8
    PainChance 256
    Player.ColorRange 112, 127
	Player.Weaponslot 1, RoyalStaff
	Player.Weaponslot 2, RoyalWand
	Player.Startitem "RoyalCloseQuarterAmmoX", 30
	Player.Startitem "RoyalRangedAmmoX", 10
	Player.Startitem "RoyalWandAmmo", 20
	Player.Startitem "ElezaStarStormAmmo", 2
	Player.Startitem "RoyalStaff"
	Player.StartItem "RoyalWand"
    Player.DisplayName "Eleza"
	Player.ScoreIcon "ELEZAST"
    Player.StartItem "IsHuman", 1
    Player.StartItem "Screamer", 0
    Player.ForwardMove 0.9, 0.9
    Player.SideMove 0.9, 0.9
	Damagefactor "AntiAirbolt", 0.0
	Damagefactor "Fleshbent", 1.0
	Damagefactor "Normal", 1.0
	Damagefactor "GraveStalkerLure", 1.6
	Damagefactor "Yureiball", 0.6
	Damagefactor "InariPlasma", 1.1
	Damagefactor "Sentinel", 0.0
	Damagefactor "Hellzone", 0.7
	DamageFactor "Drowning", 3.0
	damagefactor "lava", 5.0
	damagefactor "slime", 5.0
	Damagefactor "MechPewPews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
    Damagefactor "GasterSmokeHurt", 0.0
	Damagefactor "StrifeSuit", 0.0
    Player.SoundClass "Eleza"
    LimitedToTeam 0
    States
    {
 Spawn:
		BANS A 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
		BANS A 150
		BANS A 0 A_GiveInventory("RoyalCloseQuarterAmmoX",2)
		BANS A 0 A_GiveInventory("RoyalRangedAmmoX",1)
		BANS A 0 Healthing(2)
		BANS A 1
		Loop
 See:
   BANS A 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
   BANS A 0 A_JumpIfHealthlower(50,"INeedHealingSee")
   BANS A 4
   BANS A 4 A_SpawnItemEx ("ShosannaStomp", 0, 0, 0, 0, 0, -20, 0,0, 0)
   BANS A 4
   BANS A 4 A_SpawnItemEx ("ShosannaStomp", 0, 0, 0, 0, 0, -20, 0,0, 0)
   Goto Spawn
 INeedHealingSee:
   BANS A 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
   BANS A 0 A_SpawnItemEx("INeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
   BANS A 4
   BANS A 4 A_SpawnItemEx ("ShosannaStomp", 0, 0, 0, 0, 0, -20, 0,0, 0)
   BANS A 4
   BANS A 4 A_SpawnItemEx ("ShosannaStomp", 0, 0, 0, 0, 0, -20, 0,0, 0)
   Goto Spawn
 Missile:
   BANS B 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
   BANS B 0 bright Setplayerproperty(0,0,0)
   BANS B 6 Bright
   Goto Spawn
 Melee:
   BANS B 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
   BANS B 6 Bright
   Goto Spawn
	Pain.TeleOtherPlant:
	TNT1 A 0 A_GiveInventory("TeleOtherPlanted",1)
	Goto Pain
	Pain.TeleOtherActivateDamage:
	TNT1 A 0 A_JumpIfInventory("TeleOtherPlanted",1,"TeleOtherSend")
	Goto Pain
	TeleOtherSend:
	TNT1 A 0 A_TakeInventory("TeleOtherPlanted",1)
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_7,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	TNT1 A 0 ACS_ExecuteAlways(466,0,2)
	BANS A 1 A_PlaySound("TeleOther/activate",CHAN_6,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	Goto Pain
	Death.TeleOtherActivateDamage:
	TNT1 A 0 A_JumpIfInventory("TeleOtherPlanted",1,"TeleOtherSplode")
	TNT1 A 0 A_TakeInventory("TeleOtherPlanted",1)
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_7,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	TNT1 A 0 ACS_ExecuteAlways(466,0,2)
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_6,1)
	TNT1 A 0 A_GiveToTarget("KilledMe",1)
	BANS A 1 A_PlaySound("Gibbage/XSplat")
	NULL A 0 A_PlaySound("gibbage/playergib") 
	NULL A 0 A_NoBlocking 
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
	Stop
	TeleOtherSplode:
	TNT1 A 0 A_TakeInventory("TeleOtherPlanted",1)
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_7,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	TNT1 A 0 ACS_ExecuteAlways(466,0,2)
	TNT1 A 0 A_GiveToTarget("KilledMe",1)
	BANS A 1 A_PlaySound("Gibbage/XSplat")
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_6,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	NULL A 0 A_PlaySound("gibbage/playergib") 
	NULL A 0 A_NoBlocking 
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
	Stop
  Pain.Choke:
	TNT1 A 0 A_GiveToTarget("Health",2)
	TNT1 A 0 A_GiveToTarget("ChokeCharging",1)
	Goto Pain
  Pain.JusticarSpike:
	TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
	TNT1 A 0 A_GiveToTarget("Health",2)
  Pain:
	BANS J 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
	BANS J 0 A_Jump(256,"ElezaAmmoPainTrue","ElezaAmmoPainUnTrue","ElezaAmmoPainUnTrue")
	ElezaAmmoPainUnTrue:
	BANS A 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
    BANS A 4 A_Pain
    Goto Spawn
	Pain.LoonaClawing:
	TNT1 A 0 A_GiveToTarget("Health",6)
	BANS A 20 Setplayerproperty(0,1,0)
	BANS A 2 Setplayerproperty(0,0,0)
	Goto Spawn
	Pain.LoonaClawingLightSFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",5)
	BANS A 20 Setplayerproperty(0,1,0)
	BANS A 2 Setplayerproperty(0,0,0)
	Goto Spawn
	Pain.LoonaClawingHeavySFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",8)
	BANS A 20 Setplayerproperty(0,1,0)
	BANS A 2 Setplayerproperty(0,0,0)
	Goto Spawn
	Death.LoonaClawing:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death.Jitter
	Death.LoonaClawingLightSFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death.Jitter
	Death.LoonaClawingHeavySFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death.Jitter
	Pain.GloomWatcherLure:
	TNT1 A 0 ACS_ExecuteAlways(134)
	TNT1 A 0 A_Playsound("GloomWatcher/FeintAttack",CHAN_7)
	Goto pain
	Death.GloomWatcherlure:
	TNT1 A 0 ACS_ExecuteAlways(134)
	TNT1 A 0 A_Playsound("GloomWatcher/FeintAttack",CHAN_7)
	Goto Death.Jitter
	GloomDeath:
	TNT1 A 1 Damagething(99999,18)
	Goto Death
	Death.Fleshbent:
	TNT1 A 0 A_GiveToTarget("TentacleAmmo",2)
	TNT1 A 0 A_GiveToTarget("Soulscepter1",15)
	TNT1 A 0 A_GiveToTarget("Soulscepter2",50)
	Goto Death.Jitter
	Pain.BastetClawing:
		TNT1 A 0 A_GiveToTarget("Health",4)
		Goto Pain
	Pain.BastetClawingLightSFX:
		TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_5)
		TNT1 A 0 A_GiveToTarget("Health",3)
		Goto Pain
	Pain.BastetClawingHeavySFX:
		TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_5)
		TNT1 A 0 A_GiveToTarget("Health",6)
		Goto Pain
	Pain.Sickle:
		TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
	Pain.Wendigo:
		TNT1 A 0 A_PlaySound("RAVEN1",CHAN_5)
		TNT1 A 0 A_SpawnItemEx ("GIB4", 0, 0, random(0,42), 0, 0, random(2,4), random(0,360), 128)
		TNT1 A 0 A_SpawnItemEx ("GIB4", 0, 0, random(0,42), 0, 0, random(2,4), random(0,360), 128)
		Goto Pain
	ElezaAmmoPainTrue:
	BANS J 0 A_Print("Summon + StarStorm (max 2.) Ammo gained!")
	BANS J 0 A_GiveInventory("ElezaStarStormAmmo", 1)
	BANS J 0 A_GiveInventory("RoyalCloseQuarterAmmoX", 2)	
	BANS J 0 A_GiveInventory("RoyalRangedAmmoX", 2)	
    BANS A 4 A_Pain
    Goto Spawn
	Pain.Justicar:
	TNT1 A 0 A_custommissile("Justicarattack",14,0,random(0,360))
	TNT1 A 0 A_GiveToTarget("Health",1)
	TNT1 A 0 A_GiveToTarget("JusticarSecondaryAmmo",1)
	Goto pain
  Pain.Creepstun:
    BANS J 0 A_Pain
	BANS J 0 A_GiveToTarget("health",5)
	BANS A 40 Setplayerproperty(0,1,0)
	BANS A 2 Setplayerproperty(0,0,0)
	Goto Spawn
  Death.Creeper:
	BANS A 0 A_PlaySoundEx("creeperattack", "Body")
	BANS A 0 A_SpawnItemEx("CreeperPopUp",0,0,10)
	TNT1 A 0 A_GiveToTarget("GhoulAmmo",1)
	BANS A 0 A_GiveToTarget("Creeperheal",1)
    BANS A 0 ACS_ExecuteAlways(997,0,1)
	goto DeathAnimAlt
  Death.Creepstun:
	BANS A 0 A_GiveToTarget("Unlock13",1)
	BANS A 0 A_GiveToTarget("CreepGotya",1)
	goto DeathAnimAlt
  Death.SjasScream:
  Death.FrostbiteWind:
  Death.EmtalicSaw:
  Death.LichFire:
    BANS A 0 A_GiveToTarget("KilledJ",1)
    Goto DeathAnim
  Death:
  DeathAnim:
	Death:
	DeathAnim:
		BANS A 0 A_GiveToTarget("KillBeep",1)
		BANS A 0 A_GiveInventory("ItemDeath",1)
		BANS A 0 A_StopSound(CHAN_ITEM)
		BANS A 0 A_StopSound(CHAN_WEAPON)
	    BANS A 0 A_StopSoundEx ("SoundSlot5")
		BANS A 0 A_TakeInventory("KilledCount",999)
		BANS A 0 A_GiveToTarget("KilledMe",1)
		BANS A 0 A_GiveToTarget("KilledMarine",1)
		BANS A 5
		BANS A 0 A_PlayerScream
		BANS A 50
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.9)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.8)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.7)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.6)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.5)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS AAAAAAAA 2 A_Custommissile("ShosannaDeathFire2",4)
		BANS A 1 A_Settranslucent(0.4)
		BANS A 1 A_Settranslucent(0.3)
		BANS A 1 A_Settranslucent(0.2)
		BANS A 1 A_Settranslucent(0.1)
		BANS A 1
		BANS AAAAAA 5 A_NoBlocking
		BANS AAA 5
		TNT1 A -1
		Stop
	DeathAnimAlt:
		BANS A 0 A_GiveToTarget("KillIndicator",1)
		BANS A 0 A_GiveInventory("ItemDeath",1)
		BANS A 0 A_StopSound(CHAN_ITEM)
		BANS A 0 A_StopSound(CHAN_WEAPON)
	    BANS A 0 A_StopSoundEx ("SoundSlot5")
		BANS A 0 A_TakeInventory("KilledCount",999)
		BANS A 0 A_GiveToTarget("KilledMe",1)
		BANS A 0 A_GiveToTarget("KilledMarine",1)
		BANS A 5
		BANS A 0 A_PlayerScream
		BANS A 50
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.9)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.8)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.7)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.6)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS A 1 A_Settranslucent(0.5)
		BANS AAA 2 A_Custommissile("ShosannaDeathFire",4)
		BANS AAAAAAAA 2 A_Custommissile("ShosannaDeathFire2",4)
		BANS A 1 A_Settranslucent(0.4)
		BANS A 1 A_Settranslucent(0.3)
		BANS A 1 A_Settranslucent(0.2)
		BANS A 1 A_Settranslucent(0.1)
		BANS A 1
		BANS AAAAAA 5 A_NoBlocking
		BANS AAA 5
		TNT1 A -1
		Stop
    Stop
	Death.GhoulChainSaw:
	TNT1 A 0 A_GiveToTarget("Health",50)
	TNT1 A 0 A_GiveToTarget("BearTarpsAmmo",1)
	TNT1 A 0 A_GiveToTarget("SawyerRageammo",10)
	TNT1 A 0 A_GiveToTarget("DUMMY_SawyerBloodyChainsaw", 1)
	Goto Death.Jitter
	Death.BastetClawing:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",30)
	Goto Death.Jitter
	Death.BastetClawingLightSFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",30)
	Goto Death.Jitter
	Death.BastetClawingHeavySFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",30)
	Goto Death.Jitter
	Death.Choke:
		TNT1 A 0 A_GiveToTarget("Health",25)
		TNT1 A 0 A_GiveToTarget("ChokeCharging",40)
	Goto Death.Jitter
	Death.JusticarSpike:
		TNT1 A 0 A_GiveToTarget("Health",15)
	Goto Death.Jitter
	Death.Sinistar:
		TNT1 A 0 A_GiveToTarget("SiniPrimary",1)
	Goto Death.Jitter
  Death.MapGibber:
		TNT1 A 0 A_PlaySound("car/hit",chan_auto)
  Death.MapGibber2:
  Death.Jitter:
	BANS A 0 A_GiveToTarget("KillBeep",1)
	BANS A 0 A_GiveInventory("ItemDeath",1)
    BANS A 0 A_GiveToTarget("Crunched",1)
	BANS A 0 A_GiveToTarget("KilledMe",1)
	BANS A 1 A_PlaySound("gibbage/xsplat")
	NULL A 0 A_PlaySound("gibbage/playergib") 
	NULL A 0 A_NoBlocking 
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
	Stop
  Death.JitterAlt:
	BANS A 0 A_GiveToTarget("KillIndicator",1)
	BANS A 0 A_GiveInventory("ItemDeath",1)
    BANS A 0 A_GiveToTarget("Crunched",1)
	BANS A 0 A_GiveToTarget("KilledMe",1)
	BANS A 1 A_PlaySound("gibbage/xsplat")
	NULL A 0 A_PlaySound("gibbage/playergib") 
	NULL A 0 A_NoBlocking 
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
	Stop
	Death.Harvester:
		TNT1 A 0 A_GiveToTarget("SoulHarvesterFragment",1)
		TNT1 A 0 A_GiveToTarget("KilledJ",1)
		Goto Death.Jitter
	Death.HarvesterRock:
		TNT1 A 0 ACS_NamedExecute("SilverFieldsBell",55)
		Goto DeathAnim
	Death.HarvesterAlt:
		TNT1 A 0 A_GiveToTarget("Crunched2",1)
		TNT1 A 0 ACS_NamedExecute("SilverFieldsBell",55)
		Goto Death.Jitter
  Death.Ravager:
		BANS A 0 A_GiveToTarget("KilledR",1)
		BANS A 0 A_GiveToTarget("Health",100)
		BANS A 0 ACS_ExecuteAlways(997,0,2)
		BANS A 0 A_PlaySoundEx("RavagerAttack","Body")
		BANS A 0 A_SpawnItemEx("RavagerHit",0,0,32)
		Goto DeathAnimAlt
	Death.RavagerBall:
		BANS A 0 A_GiveToTarget("RavagerGotYa",1)
		BANS A 0 A_GiveToTarget("KilledJ",1)
		Goto DeathAnimAlt
	Death.Yurei:
		BANS A 0 A_GiveToTarget("KilledY",1)
		BANS A 0 A_PlaySoundEx("YureiKill1","Body",0,1)
		BANS A 0 ACS_ExecuteAlways(997,0,3)
		Goto DeathAnimAlt
	Death.YureiBall:
		BANS A 0 A_GiveToTarget("Health",10)
		BANS A 0 A_SpawnItemEx("BallFire")
		Goto Death.SjasScream
	Death.UboaRawrScream:
		Goto DeathAnimAlt
	Death.Misty:
	Death.Whiteface:
		BANS A 0 A_GiveToTarget("KillBeep",1)
		BANS A 0 A_GiveInventory("ItemDeath",1)
		BANS A 0 A_GiveToTarget("KilledMe",1)
		BANS A 0 A_GiveToTarget("KilledM",1)
		BANS AAAA 2 A_FadeOut(0.1)
		BANS A 0 A_PlayerScream
		BANS AAAAAAA 2 A_FadeOut(0.1)
		BANS A 0 A_NoBlocking
		NULL A -1
		Stop
	Death.Clowny:
		BANS A 0 ACS_ExecuteAlways(997,0,4)
		BANS A 0 A_GiveToTarget("KilledC",1)
		Goto DeathAnim
	Death.Mohoph:
		TNT1 A 0 A_GiveToTarget("MorphAmmo", 1)
		BANS A 0 A_PlaySoundEx("MohophKill","Body")
		BANS A 0 ACS_ExecuteAlways(997,0,5)
		Goto DeathAnim
	Death.EmtalicWeak:
		BANS A 0 A_PlaySoundEx("RamSuccess","Body")
		Goto DeathAnim
	Death.Emtalic:
		BANS A 0  A_PlaySoundEx("RamSuccess","Body")
		Goto Death.Jitter
	Death.I1:
		BANS A 0 A_SpawnItemEx("Heart",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		BANS A 0 A_GiveToTarget("KilledI1",1)
		Goto DeathAnim
	Death.I2:
		BANS A 0 A_GiveToTarget("KillBeep",1)
		BANS A 0 A_GiveInventory("ItemDeath",1)
		BANS A 0 A_GiveToTarget("KilledMe",1)
		BANS A 0 A_GiveToTarget("KilledI2",1)
		BANS A 0 A_GiveToTarget("Clip",1)
		BANS A 0 SetPlayerProperty(0,1,4)
		BANS A 0 A_Stop
		BANS AAAAAAAAAAAAAAA 5 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		NULL A 0 A_PlayerScream
		NULL A 0 ACS_ExecuteAlways(997,0,6)
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
		NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A 1 A_SpawnItemEx("SkullGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL A 1 A_SpawnItemEx("ChestGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AA 1 A_SpawnItemEx("ArmGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AA 1 A_SpawnItemEx("HandGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL A 1 A_SpawnItemEx("CoccyxGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AA 1 A_SpawnItemEx("LegGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AAAAAA 1 A_SpawnItemEx("BoneGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL A -1 A_NoBlocking
		Stop
	Death.I3:
		BANS A 0 A_GiveToTarget("KillBeep",1)
		BANS A 0 A_GiveInventory("ItemDeath",1)
		BANS A 0 A_GiveToTarget("KilledMe",1)
		BANS A 0 A_GiveToTarget("KilledI3",1)
		BANS AAAAAAAAA 1 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		BANS I 0 A_PlayerScream
		BANS AAAAAAAAA 1 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		BANS J 0 A_NoBlocking
		BANS AAAAAAAAAAAAAAAAAAAAAAAAA 1 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		BANS AAAAAAAAA 3 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		NULL A -1
		Stop
	Death.I4:
		BANS A 0 A_GiveToTarget("KilledI4",1)
		Goto DeathAnim
	Death.I5:
		BANS A 0 A_GiveToTarget("KilledI5",1)
		Goto DeathAnim
	Pain.RavagerBall:
		BANS A 0 ACS_ExecuteAlways(920,0)
		Goto Pain
	Pain.YureiBall:
		BANS A 0 A_GiveToTarget("Health",10)
		BANS A 0 A_SpawnItemEx("BallFire")
		Goto Pain
	Pain.Emtalic:
		BANS A 0 A_PlaySoundEx("RamSuccess","Body")
		Goto Pain
	Pain.EmtalicWeak:
		BANS A 0 A_PlaySoundEx("RamSuccess","Body")
		Goto Pain
	Death.Tenebra:
		TNT1 A 0 A_GiveToTarget("Health",20)
		Goto DeathAnim
	Death.TenebraRail:
	Death.Telefrag:
	Death.Grenade:
	Death.Termissiles:
	Death.ChaosExpl12:
	Death.KarenExplo:
	Death.IlluNukeKABUUM:
	Death.CalebDynamite:
	Death.Wendigo:
	Death.MorphRipperGib:
	Death.DarkVortex:
	Death.ImpostorJitter:
	Death.PuppetStrings:
	Death.LichIce:
	Death.LichLightning:
	Death.AsylumCannonBall:
		Goto Death.Jitter
	Death.TrueDivine:
		TNT1 A 0 A_PlaySoundEx("SoulSnatchStinger",CHAN_AUTO,0,1)
		TNT1 A 0 A_SpawnItemEx("SoulSnatch")
		Goto Death.JitterAlt
	Death.Judgement:
		TNT1 A 0 A_SpawnItemEx("StellarisThunderFX")
		Goto Death.JitterAlt
	Death.VoltMelee:
	Death.AmperRail:
		TNT1 A 0 A_GiveToTarget("VoltRingAmmo",2)
		TNT1 A 0 A_GiveToTarget("AmperSpeedTokenCheck",1)
		Goto Death.Jitter
	Pain.FrostbiteWind:
	Pain.Ravager:
	Pain.Juglava:
	Pain.HarvesterRock:
	Pain.EmtalicSaw:
	Pain.MorphRipper:
	Pain.MorphRipperGib:
	Pain.I1:
	Pain.I3:
	Pain.ZombiePoison:
	Pain.Asylum:
	Pain.AsylumCannonBall:
	Pain.FleshlingMissile:
	Pain.DarkVortex:
	Pain.ImpostorJitter:
	Pain.BlueFire:
	Pain.PuppetStrings:
	Pain.LichFire:
	Pain.LichIce:
	Pain.LichLightning:
	Pain.Whiteface:
		TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
		Goto Pain
	}
}

ACTOR SummonRoyalKnightProjectile1
{
	Radius 6
	Height 8
	Speed 24
	Damage 0
	Projectile
	+bloodlessimpact
	+RANDOMIZE
	+RIPPER
	+SKYEXPLODE
    +DONTREFLECT
	RenderStyle "ADD"
	Alpha 0.75
	SeeSound "imp/attack"
	DeathSound "MulDisciple/attackr3"
	Decal DoomImpScorch
	States
	{
	Spawn: 
		ZAPL B 4 BRIGHT A_SpawnItemEx("RoyalTrail", 0, 0, 0, 0, 0, 0, 0)
		ZAPL B 1 A_Gravity
		Loop
	Death:
		ZAPL B 3 Bright
		ZAPL CDEFG 1 BRIGHT 
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
        ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("Royal2Hander")
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 0 A_Gravity
		Stop
	}
}


actor RoyalTrail
{
    Radius 1
    Height 1
    Speed 0
    PROJECTILE
    RENDERSTYLE ADD
    ALPHA 0.6
    +NOCLIP
	+CLIENTSIDEONLY
    States
    {
    Spawn:
     ZAPL B 4 Bright
        Stop       
    }
}

ACTOR SummonRoyalKnightProjectile2
{
	Radius 6
	Height 8
	Speed 12
	Damage 0
	Projectile
	+bloodlessimpact
	+RANDOMIZE
	+RIPPER
	+SKYEXPLODE
    +DONTREFLECT
	RenderStyle "ADD"
	Alpha 0.75
	SeeSound "imp/attack"
	DeathSound "MulDisciple/attackr3"
	Decal DoomImpScorch
	States
	{
	Spawn: 
		ZAPL B 4 BRIGHT A_SpawnItemEx("RoyalTrail", 0, 0, 0, 0, 0, 0, 0)
		ZAPL B 1 A_Gravity
		Loop
	Death:
		ZAPL B 3 Bright
		ZAPL CDEFG 1 BRIGHT 
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
        ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("RoyalSwordsman")
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 0 A_Gravity
		Stop
	}
}

ACTOR SummonRoyalKnightProjectile3
{
	Radius 6
	Height 8
	Speed 12
	Damage 0
	Projectile
	+bloodlessimpact
	+RANDOMIZE
	+RIPPER
	+SKYEXPLODE
    +DONTREFLECT
	RenderStyle "ADD"
	Alpha 0.75
	SeeSound "imp/attack"
	DeathSound "MulDisciple/attackr3"
	Decal DoomImpScorch
	States
	{
	Spawn: 
		ZAPL B 4 BRIGHT A_SpawnItemEx("RoyalTrail", 0, 0, 0, 0, 0, 0, 0)
		ZAPL B 1 A_Gravity
		Loop
	Death:
		ZAPL B 3 Bright
		ZAPL CDEFG 1 BRIGHT 
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
        ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("RoyalHalberdier")
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 0 A_Gravity
		Stop
	}
}

ACTOR SummonRoyalKnightProjectile4
{
	Radius 6
	Height 8
	Speed 12
	Damage 0
	Projectile
	+bloodlessimpact
	+RANDOMIZE
	+RIPPER
	+SKYEXPLODE
    +DONTREFLECT
	RenderStyle "ADD"
	Alpha 0.75
	SeeSound "imp/attack"
	DeathSound "MulDisciple/attackr3"
	Decal DoomImpScorch
	States
	{
	Spawn: 
		ZAPL B 4 BRIGHT A_SpawnItemEx("RoyalTrail", 0, 0, 0, 0, 0, 0, 0)
		ZAPL B 1 A_Gravity
		Loop
	Death:
		ZAPL B 3 Bright
		ZAPL CDEFG 1 BRIGHT 
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
        ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("RoyalDefender")
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 0 A_Gravity
		Stop
	}
}

ACTOR SummonRoyalArcherProjectile
{
	Radius 6
	Height 8
	Speed 12
	Damage 0
	Projectile
	+bloodlessimpact
	+RANDOMIZE
	+RIPPER
	+SKYEXPLODE
    +DONTREFLECT
	RenderStyle "ADD"
	Alpha 0.75
	SeeSound "imp/attack"
	DeathSound "MulDisciple/attackr3"
	Decal DoomImpScorch
	States
	{
	Spawn: 
		ZAPL B 4 BRIGHT A_SpawnItemEx("RoyalTrail", 0, 0, 0, 0, 0, 0, 0)
		ZAPL B 1 A_Gravity
		Loop
	Death:
		ZAPL B 3 Bright
		ZAPL CDEFG 1 BRIGHT 
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
        ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("RoyalArcher")
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 1 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
		ZAPL A 0 A_Gravity
		Stop
	}
}

Actor RoyalStaff : Weapon
{
  Obituary "%o bowed down to her royal majesty."
  Weapon.AmmoType "RoyalCloseQuarterAmmoX"
  Weapon.AmmoType2 "RoyalRangedAmmoX"
  Weapon.AmmoGive 0
  Weapon.AmmoUse 10
  Weapon.AmmoUse2 10
  Weapon.KickBack 3000
  Inventory.icon "TNT1A0"
  States
  {
  Spawn:
    DSPS A -1
    Loop
  Select:
    DSPS A 1 A_Raise
    loop
  Deselect:
    DSPS A 1 A_Lower
    loop
  Ready:
	DSPS A 0 A_JumpIfInventory("CyborgDashCheck",1,"ElezaGoddessState")
    DSPS A 4 A_WeaponReady
    loop
    Fire:
	DSPS A 0 A_JumpIfInventory("BloodCurseItem",1,"FireCont")
	DSPS A 0 A_GiveInventory("Health",2)
	FireCont:
	DSPS A 0 A_GiveInventory("RoyalRangedAmmoX",2)
	DSPS A 0 A_PlayWeaponSound("Royalstaff/fire")
	DSPS A 1 A_Jump(256,"SummonKnight1","SummonKnight2","SummonKnight3","SummonKnight4")
	SummonKnight1:
	DSPS B 2 
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -55, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 55, 128)
	DSPS BCDEFG 2 Bright
	DSPS G 0 Bright A_FireCustommissile("SummonRoyalKnightProjectile1",0,1,0,-10)
	DSPS HIJ 3 BRIGHT
	DSPS A 10
	Goto Ready
	SummonKnight2:
	DSPS B 2 
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -55, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 55, 128)
	DSPS BCDEFG 2 Bright
	DSPS G 0 Bright A_FireCustommissile("SummonRoyalKnightProjectile2",0,1,0,-10)
	DSPS HIJ 3 BRIGHT
	DSPS A 10
	Goto Ready
	SummonKnight3:
	DSPS B 2 
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -55, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 55, 128)
	DSPS BCDEFG 2 Bright
	DSPS G 0 Bright A_FireCustommissile("SummonRoyalKnightProjectile3",0,1,0,-10)
	DSPS HIJ 3 BRIGHT
	DSPS A 10
	Goto Ready
	SummonKnight4:
	DSPS B 2
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -55, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 35, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 45, 128)
    DSPS A 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 55, 128)
	DSPS BCDEFG 2 Bright
	DSPS G 0 Bright A_FireCustommissile("SummonRoyalKnightProjectile4",0,1,0,-10)
	DSPS HIJ 3 BRIGHT
	DSPS A 10
	Goto Ready
	Altfire:
	DSPS A 0 A_JumpIfInventory("BloodCurseItem",1,"AltfireCont")
	DSPS A 0 A_GiveInventory("Health",4)
	AltfireCont:
	DSPS D 0 A_PlayWeaponSound("Royalstaff/altfire")
	DSPS A 35 Bright
    DSPS D 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -35, 128)
    DSPS D 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -45, 128)
    DSPS D 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), -55, 128)
    DSPS D 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 35, 128)
    DSPS D 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 45, 128)
    DSPS D 0 A_SpawnItemEx("Icytrail", 6, 0, Random(31, 33), 2, 0, Random(-0.5, 0.5), 55, 128)
	DSPS KLMNO 2 Bright
    DSPS P 1 Bright A_FireCustommissile("SummonRoyalArcherProjectile",0,1,0,-10)
	DSPS PQR 3 Bright
	DSPS A 10
    Goto Ready
	ElezaGoddessState:
	DSPS A 0 A_TakeInventory("CyborgDashCheck",999)
	DSPS A 0 A_JumpIfInventory("RoyalWandAmmo",20,"ElezaGoddessStateCheck")
	Goto Ready
	ElezaGoddessStateCheck:
	DSPS A 0 A_JumpIfInventory("RoyalCloseQuarterAmmoX",30,"ElezaGoddessStateBeam")
	Goto Ready
	ElezaGoddessStateBeam:
	DSPS A 0 A_ChangeFlag("SHOOTABLE", FALSE)
	DSPS A 0 ThrustThingZ(0,25,0,0)
	DSPS A 1 SetPlayerProperty (0,1,0)
	DSPS A 0 SetPlayerProperty (0,1,3)
	DSPS A 35
	DSPS A 0 A_TakeInventory("RoyalWandAmmo",20)
	DSPS A 0 A_TakeInventory("RoyalCloseQuarterAmmoX",30)
	DSPS A 1 A_SpawnItemEx("GoddessStateExplosion2")
	DSPS A 1 SetPlayerProperty (0,1,0)
	DSPS A 0 SetPlayerProperty (0,1,3)
	DSPS A 0 A_Playsound("ELAURAX",CHAN_6,1,0,ATTN_NONE)
	DSPS A 1 A_SetBlend("248 248 255", .5, 35)
	DSPS A 0 Radius_Quake(6,17,0,6400,0)
	DSPS A 0 Radius_Quake(7,17,0,6400,0)
	DSPS A 0 Radius_Quake(8,17,0,6400,0)
	DSPS A 0 A_Playsound("SHAURAX",CHAN_5)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 0 
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 0 A_Playsound("SHAURAX",CHAN_5)
	DSPS A 0 A_Playsound("SHOCHRG",CHAN_7,1)
	DSPS A 1 SetPlayerProperty (0,1,0)
	DSPS A 0 SetPlayerProperty (0,1,3)
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 0 A_Playsound("SHAURAX",CHAN_5)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 0 A_Playsound("SHAURAX",CHAN_5)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 0 A_Playsound("SHAURAX",CHAN_5)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 0 A_Playsound("SHAURAX",CHAN_5)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 0 A_Playsound("Eleza/DivineYell",CHAN_VOICE)
	TNT1 A 0 A_SpawnItemEx("IcyTrail",random(-20,20),random(-20,20),0,0,0,10)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 0 A_Playsound("ELFLASH",CHAN_7,1,0,ATTN_NONE)
	DSPS BCDEFG 2 Bright A_spawnItemEx("GoddessAura")
	DSPS G 1 A_FireCustomMissile("ElezaJudgementBeam",0,0)
	DSPS HIJ 2 BRIGHT A_spawnItemEx("GoddessAura")
	DSPS A 0 A_Playsound("SHAURAX",CHAN_5)
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")		
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 7 A_spawnItemEx("GoddessAura")
	DSPS A 0 SetPlayerProperty (0,0,3)
	DSPS A 0 SetPlayerProperty (0,0,0)
	DSPS A 0 A_ChangeFlag("SHOOTABLE", TRUE)
	DSPS A 0 A_TakeInventory("RoyalWandAmmo",20)
	DSPS A 0 A_TakeInventory("RoyalCloseQuarterAmmoX",30)
	Goto Ready
		}
	}
	
ACTOR ElezaJudgementBeam
{
  obituary "Judgement day came early for %o"
   Radius 10
   Height 4
   Speed 40
   Damage 60
   RENDERSTYLE ADD
   scale 1.0
   ALPHA 0.80
   Projectile
   +RIPPER
   +noclip
   Damagetype "Sentinel" 
   DeathSound "DarkFireDeath"
   activesound "beamhead"   
   States
   {
   Spawn:
      KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
	  KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
	  KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      KAMS A 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS B 1 Bright A_custommissile("ElezaJudgementtrail",0,0,0,0)
	  KAMS A 0 A_loopactivesound
	  KAMS A 0 A_Explode(70,164)
      Stop
   Death:
	  KAMS A 0 A_Playsound("DarkFireDeath",7,1,0,ATTN_NONE)
	  KAMS B 0 Radius_Quake(7,34,0,6400,0)
	  KAMS B 0 Radius_Quake(8,34,0,6400,0)
	  KAMS B 0 Radius_Quake(9,34,0,6400,0)
      stop
   }
} 

ACTOR ElezaJudgementtrail
{
   Radius 13
   Height 8
   Speed 0
   RENDERSTYLE ADD
   scale 1.3
   ALPHA 0.67
   PROJECTILE
   DONTHURTSHOOTER
   +CLIENTSIDEONLY
   States
   {
   Spawn:
      NULL A 2 Bright
      KAMS ABABABABABABABABABABA 2 Bright
      stop
   }
}  

Actor RoyalCloseQuarterAmmoX : Ammo
{
	Inventory.Amount 30
	Inventory.MaxAmount 30
}

Actor RoyalRangedAmmoX : Ammo
{
	Inventory.Amount 10
	Inventory.MaxAmount 10
}

Actor RoyalWandAmmo : Ammo
{
	Inventory.Amount 20
	Inventory.MaxAmount 20
}

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

ACTOR RoyalWand : Weapon
{
   Obituary "%o enjoyed %k's fireworks."
   Weapon.AmmoType "RoyalWandAmmo"
   Weapon.AmmoType2 "RoyalWandAmmo"
   Weapon.AmmoUse 1
   Weapon.ammoUse2 5
   Inventory.icon "TNT1A0"
   Damagetype "Divine"
   States
   {
   Spawn:
      JADE C -1 Bright
      Loop
   Ready:
      JADE A 15 A_WeaponReady
	  JADE A 0 A_GiveInventory("RoyalWandAmmo",1)
	  JADE A 0 A_JumpIfInventory("CyborgDashCheck",1,"ElezaStarStorm")
      Loop
   Deselect:
      JADE A 1 A_Lower
      Loop
   Select:
      JADE A 1 A_Raise
      Loop
   Fire:
	  JADE B 0 A_PlayWeaponSound("RoyalWand/Fire")
	  JADE B 0 A_PlaySound("SHONEWF",Chan_7)
      JADE B 1 
	  JADE B 0 Bright A_FireCustomMissile("JadeShot",0,1,30)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot",0,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot",0,0,-30)
	  JADE B 1 Offset(0, 35)
	  JADE B 1 Offset(0, 39)
      JADE B 1 Offset(0, 45)
      JADE A 1 Offset(0, 50)
      JADE A 1 Offset(0, 46)
      JADE A 1 Offset(0, 40)
      JADE A 1 Offset(0, 37)
      JADE A 1 Offset(0, 32)
	  JADE A 10
      JADE A 0 A_Refire
      Goto Ready
	Altfire:
	  JADE A 0 A_JumpIfInventory("BloodCurseItem",1,"AltfireCont")
	  JADE A 0 A_GiveInventory("Health",2)
	AltfireCont:
	  JADE B 0 A_GiveInventory("RoyalCloseQuarterAmmoX",2)
	  JADE B 0 A_PlaySound("RoyalWand/Altfire",CHAN_ITEM)
      JADE B 0 Bright A_FireCustomMissile("JadeShot2",5,1,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-5,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",10,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-10,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",15,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-15,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",20,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-20,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",25,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-25,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",30,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-35,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",40,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-45,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",50,0,0)
	  JADE B 0 Bright A_FireCustomMissile("JadeShot2",-50,0,0)
	  JADE B 2 Offset(0, 35)
	  JADE B 2 Offset(0, 39)
      JADE B 2 Offset(0, 45)
      JADE A 2 Offset(0, 50)
      JADE A 2 Offset(0, 46)
      JADE A 2 Offset(0, 40)
      JADE A 2 Offset(0, 37)
      JADE A 2 Offset(0, 32)
	  JADE A 1
      JADE A 0 A_Refire
      Goto Ready
	  	ElezaStarStorm:
		JADE A 0 A_TakeInventory("CyborgDashCheck",999)
		JADE A 0 A_JumpIfInventory("ElezaStarStormAmmo",1,"ElezaStarStormspawn")
		Goto Ready
		ElezaStarStormSpawn:
		JADE A 0 A_TakeInventory("ElezaStarStormAmmo",1)
		JADE A 0 A_Playsound("RoyalWand/StarStorm")
		JADE A 0 A_JumpIfInventory("BloodCurseItem",1,"ElezaStarStormSpawnCont")
		JADE A 0 A_GiveInventory("Health",10)
		ElezaStarStormSpawnCont:
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE A 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		JADE B 1 Bright A_FireCustomMissile("JadeShot3",random(-90,90),0,0)
		Goto Ready
   }
}

ACTOR JadeShot
{
   Radius 3
   Height 3
   Speed 90
   Damage (5)
   Scale 1.2
   Alpha .6
   PROJECTILE
   RENDERSTYLE Normal
   +ripper
   +noblood
   +bloodlessimpact
   -bloodsplatter
   Damagetype "Divine"
   States
   {
   Spawn:
      IDEX A 1 Bright
	  IDEX B 0 A_SpawnItemEx("JadeTrail",0,0,0,0,0,0,0,8)
      IDEX B 0 A_SpawnItemEx("ElezaVFXPlasmaTrail")
	  TNT1 A 0 A_SpawnItemEx("ElezaVFXPlasmaTrail",random(-5,5),random(-5,5),random(-5,5),0,0,0)
      loop
   Death:
	  TNT1 A 1
	  IDEX B 0 A_Playsound("RoyalWand/Hit",CHAN_ITEM)
	  IDEX B 0 A_SpawnItemEx("ElezaVFXPlasmaTrailDeath")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
	  IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      stop
   }
}


ACTOR JadeShot2
{
   Radius 3
   Height 3
   Speed 20
   Damage (8)
   Scale .9
   Alpha .5
   PROJECTILE
   gravity 0.1
   RENDERSTYLE Normal
   Damagetype "Divine"
   States
   {
   Spawn:
      IDEX A 1 Bright
      IDEX B 0 A_SpawnItemEx("JadeTrail",0,0,0,0,0,0,0,8)
	  IDEX B 0 A_SpawnItemEx("ElezaVFXPlasmaTrail")
	  TNT1 A 0 A_SpawnItemEx("ElezaVFXPlasmaTrail",random(-5,5),random(-5,5),random(-5,5),0,0,0)
      loop
   XDeath:
	  TNT1 A 0 A_GiveToTarget("HitBeep",1)
	  Goto Death
   Death:
	  TNT1 A 1
	  IDEX B 0 A_Playsound("RoyalWand/Hit",CHAN_ITEM)
	  IDEX B 0 A_SpawnItemEx("ElezaVFXPlasmaTrailDeath")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
	  IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      stop
   
   }
}

ACTOR JadeShot3
{
   Radius 3
   Height 3
   Speed 20
   Damage (6)
   Scale .9
   Alpha .5
   PROJECTILE
   +SEEKERMISSILE
   RENDERSTYLE Normal
   Damagetype "Divine"
   States
   {
   Spawn:
      IDEX A 1 Bright A_SeekerMissile(5,8)
      IDEX B 0 A_SpawnItemEx("JadeTrail",0,0,0,0,0,0,0,8)
	  IDEX B 0 A_SpawnItemEx("ElezaVFXPlasmaTrail")
	  TNT1 A 0 A_SpawnItemEx("ElezaVFXPlasmaTrail",random(-5,5),random(-5,5),random(-5,5),0,0,0)
      loop
	XDeath:
	  TNT1 A 0 A_GiveToTarget("HitBeep",1)
	  Goto Death
   Death:
	  TNT1 A 1
	  IDEX B 0 A_Playsound("RoyalWand/Hit",CHAN_ITEM)
	  IDEX B 0 A_SpawnItemEx("ElezaVFXPlasmaTrailDeath")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
	  IDEX B 0 A_SpawnItemEx("JadeLightSpawner")
      stop
   }
}

ACTOR JadeTrail
{   
   Radius 0
   Height 1
   Damage 0
   Speed 0
   Scale 0.5
   PROJECTILE
   RENDERSTYLE ADD
   ALPHA 0.50
   +CLIENTSIDEONLY
   States
   {
   Spawn:
      SPKL IJKLMNOP 2 Bright
      Stop 
   }
}

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

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

actor JadeLightSpawner
{
	+NoBlockMap +NoGravity +NoSector +NoInteraction +NoClip -Solid +CLIENTSIDEONLY
        states
        {
        Spawn:
           Active:
        	TNT1 A 0
        	TNT1 A 0 A_JumpIf(Args[1], "Circle")
        	TNT1 A 2
        	TNT1 A 0 A_SpawnItemEx ("JadeTrail", random(-Args[0], Args[0]), random(-Args[0], Args[0]), random(0, 8), (0.1)*Random(1, 3), 0, (0.1)*Random(1, 10), random(0,360), 129, Args[2])
                TNT1 A 0 A_SpawnItemEx ("JadeTrail", random(-Args[0], Args[0]), random(-Args[0], Args[0]), random(0, 8), (0.1)*Random(1, 3), 0, (0.1)*Random(1, 10), random(0,360), 129, Args[2]) 
        	Stop
           Circle:
        	TNT1 A 0
        	TNT1 A 2 A_SpawnItemEx ("JadeTrail", random(-Args[0], Args[0]), 0, random(0, 8), (0.1)*Random(1, 3), 0, (0.1)*Random(1, 10), Random(0, 360), 129, Args[2]) 
        	Loop
           Inactive:
		TNT1 A 1
		Loop
        }     
}

actor JadePuff
{
  renderstyle Add
  +NOBLOCKMAP
  +NOGRAVITY
  +PUFFONACTORS
  +PAINLESS
  +CLIENTSIDEONLY
  Scale .5
  Alpha .5
  states
  {
  Spawn:
    JADE DEFGHI 2 bright
    stop
  Crash:
    JADE DEFGHI 2 bright
    stop
  }
}


//ELEZA

ACTOR Royal2Hander
{
  
  Health 350
  Radius 24
  Height 56
  Mass 1000
  Speed 15
  scale 0.9
  PainChance 50
  Monster
	+FRIENDLY
+QUICKTORETALIATE
+FRIENDLY
+DONTHURTSPECIES
+NOBLOCKMONST
+INCOMBAT
+MISSILEMORE
+LOOKALLAROUND
+NEVERRESPAWN
+DONTDRAIN
	Damagefactor "MechPewPews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "Shotgun", 0.0
	Damagefactor "Machinegun", 0.0
	Damagefactor "I5", 1.2
	Damagefactor "I1", 0.2
	Damagefactor "I2", 0.9
	Damagefactor "Divine", 0.0
	Damagefactor "BlueFire", 1.8
	Damagefactor "Hellzone", 1.2
	Damagefactor "Lamiafire", 1.9
	Damagefactor "ThrottlePews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "MacheteRangAttackSlice", 0.0
	damagefactor "Ghosttrap", 0.0
    Damagefactor "ZombiePoison", 1.0
	Damagefactor "ZombieIce", 1.0
	Damagefactor "minion2", 2.0
	Damagefactor "minion", 2.0
	Damagefactor "MorphRipper", 2.0
	Damagefactor "FleshlingMissile", 2.0
	Damagefactor "Ice2", 0.0
	Damagefactor "Ice", 0.0
	Damagefactor "fire", 0.0
	Damagefactor "fire2", 0.0
	Damagefactor "Altice", 0.0
	Damagefactor "Altfire", 0.0
	Damagefactor "Altice2", 0.0
	Damagefactor "altfire2", 0.0
	Damagefactor "plasma", 0.0
	damagefactor "CrapPlasma", 0.0
	Damagefactor "AntiAirbolt", 0.0
	Damagefactor "sentinel", 0.0
	Damagefactor "Inariplasma", 0.0
	Damagefactor "PistolBullets", 0.0
	Damagefactor "grenade", 0.0
	Damagefactor "grenade2", 0.0
	Damagefactor "proton", 0.0
	Damagefactor "arrow", 0.0
	Damagefactor "railgun", 0.0
	Damagefactor "SamDeagle", 0.0
	Damagefactor "Bulletpuff2", 0.0
	Damagefactor "KnightSword", 0.0
	Damagefactor "wind", 0.0
	Damagefactor "AxeFly", 0.0
	Damagefactor "CryoXBow", 0.0
	Damagefactor "ChaosExpl1", 0.0
	Damagefactor "ChaosExpl2", 0.0
	Damagefactor "ChaosExpl12", 0.0
	Damagefactor "RevyRifleBullet", 0.0
	Damagefactor "FlameProtect", 0.0
	Damagefactor "IlluPewPewRifle", 0.0
	Damagefactor "IlluNukeKABUUM", 0.0
	Damagefactor "BlackHoleDamages", 0.0
	Damagefactor "Melee", 0.0
	Damagefactor "Uppercut", 0.0
	Damagefactor "AntiAirBolt", 0.0
	Damagefactor "MechPewPews", 0.0
	Damagefactor "Creeper", 0.1
	Damagefactor "UboaRawrScream", 0.1
	Damagefactor "Creepstun", 5.0
	Damagefactor "SjasScream", 2.0
	Damagefactor "FrostbiteWind", 2.0
	Damagefactor "EmtalicSaw", 2.0
	Damagefactor "LichFire", 2.0
	Damagefactor "EyesoreballX", 5.0
	Damagefactor "Ravager", 0.1
	Damagefactor "Yurei", 2.0
	Damagefactor "YureiBall", 2.0
	Damagefactor "KarenExplo", 0.0
    Damagefactor "GasterSmokeHurt", 0.0
  meleerange 92
  SeeSound "Royal2Hander/active"
  PainSound "Royal2Hander/pain"
  DeathSound "Royal2Hander/death"
  ActiveSound "Royal2Hander/active"
  Obituary "%o bowed down to her royal majesty."
  translation "192:207=168:175" , "240:246=176:182"
  States
  {
  Spawn:
    CLEE AB 10 A_Look
    Goto See
  See:
	CLEE AABBCCDD 3 A_chase
    Loop
  Melee:
    CLEE E 0 a_jump(256,"melee1","melee2")
	CLEE E 0 A_Jump(25,"SwordsmanYell1","SwordsmanYell2")
    melee1:
    CLEE EF 5 a_facetarget
    CLEE GH 5 A_CustomMeleeAttack(15,"Sword/HitThings","none","Macheteslicerino")  
    Goto See
    melee2:
    CLEE H 5 a_facetarget
    CLEE GF 5 A_CustomMeleeAttack(15,"Sword/HitThings","none","Macheteslicerino")  
    CLEE E 5 a_facetarget
    Goto See
	SwordsmanYell1:
    CLEE EF 5 a_facetarget
	CLEE G 0 A_Playsound("Royal2Hander/attack")
    CLEE GH 5 A_CustomMeleeAttack(15,"Sword/HitThings","none","Macheteslicerino")  
    Goto See
    SwordsmanYell2:
    CLEE H 5 a_facetarget
	CLEE G 0 A_Playsound("Royal2Hander/attack")
    CLEE GF 5 A_CustomMeleeAttack(15,"Sword/HitThings","none","Macheteslicerino")  
    CLEE E 5 a_facetarget
    Goto See
  Pain:
    CLEE A 2
    CLEE A 2 A_Pain
    Goto See
  Death:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    CLEE I 5
    CLEE J 5 A_Scream
    CLEE K 5
    CLEE L 5 A_NoBlocking
    CLEE MNOP 4
    CLEE Q -1 A_BossDeath
  Death.MapGibber:
	TNT1 A 0 A_PlaySound("car/hit",chan_auto)
  Death.MapGibber2:
  Death.Jitter:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    TNT1 A 0 A_StopSound
	TNT1 A 1 A_NoBlocking
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
    Stop
	Death.TenebraRail:
	Death.Telefrag:
	Death.Grenade:
	Death.Termissiles:
	Death.ChaosExpl12:
	Death.KarenExplo:
	Death.IlluNukeKABUUM:
	Death.CalebDynamite:
	Death.LoonaClawing:
	Death.LoonaClawingLightSFX:
	Death.LoonaClawingHeavySFX:
	Death.GloomWatcherLure:
	Death.Fleshbent:
	Death.GhoulChainSaw:
	Death.BastetClawing:
	Death.BastetClawingLightSFX:
	Death.BastetClawingHeavySFX:
	Death.Harvester:
	Death.Sinistar:
	Death.Choke:
	Death.JusticarSpike:
	Death.Emtalic:
	Death.Wendigo:
	Death.MorphRipperGib:
	Death.DarkVortex:
	Death.ImpostorJitter:
	Death.PuppetStrings:
	Death.LichIce:
	Death.LichLightning:
	Death.AsylumCannonBall:
		Goto Death.Jitter
	Death.TrueDivine:
		TNT1 A 0 A_PlaySoundEx("SoulSnatchStinger",CHAN_AUTO,0,1)
		TNT1 A 0 A_SpawnItemEx("SoulSnatch")
		Goto Death.Jitter
	Death.Judgement:
		TNT1 A 0 A_SpawnItemEx("StellarisThunderFX")
		Goto Death.Jitter
	Pain.FrostbiteWind:
	Pain.Ravager:
	Pain.Juglava:
	Pain.HarvesterRock:
	Pain.EmtalicSaw:
	Pain.MorphRipper:
	Pain.MorphRipperGib:
	Pain.I1:
	Pain.I3:
	Pain.ZombiePoison:
	Pain.JusticarSpike:
	Pain.Asylum:
	Pain.AsylumCannonBall:
	Pain.FleshlingMissile:
	Pain.DarkVortex:
	Pain.ImpostorJitter:
	Pain.BlueFire:
	Pain.PuppetStrings:
	Pain.LichFire:
	Pain.LichIce:
	Pain.LichLightning:
	Pain.Whiteface:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		Goto Pain
 
  }
}

ACTOR RoyalHalberdier
{
  
  Health 450
  Radius 24
  Height 56
  Mass 1000
  Speed 15
  scale 0.9
  PainChance 50
  Monster
	+FRIENDLY
+QUICKTORETALIATE
+FRIENDLY
+DONTHURTSPECIES
+NOBLOCKMONST
+INCOMBAT
+MISSILEMORE
+LOOKALLAROUND
+NEVERRESPAWN
+DONTDRAIN
	Damagefactor "MechPewPews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "Shotgun", 0.0
	Damagefactor "Machinegun", 0.0
	Damagefactor "I5", 1.2
	Damagefactor "I1", 0.2
	Damagefactor "I2", 0.9
	Damagefactor "Divine", 0.0
	Damagefactor "BlueFire", 1.8
	Damagefactor "Hellzone", 1.2
	Damagefactor "Lamiafire", 1.9
	Damagefactor "ThrottlePews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "MacheteRangAttackSlice", 0.0
	damagefactor "Ghosttrap", 0.0
    Damagefactor "ZombiePoison", 1.0
	Damagefactor "ZombieIce", 1.0
	Damagefactor "minion2", 2.0
	Damagefactor "minion", 2.0
	Damagefactor "MorphRipper", 2.0
	Damagefactor "FleshlingMissile", 2.0
	Damagefactor "Ice2", 0.0
	Damagefactor "Ice", 0.0
	Damagefactor "fire", 0.0
	Damagefactor "fire2", 0.0
	Damagefactor "Altice", 0.0
	Damagefactor "Altfire", 0.0
	Damagefactor "Altice2", 0.0
	Damagefactor "altfire2", 0.0
	Damagefactor "plasma", 0.0
	damagefactor "CrapPlasma", 0.0
	Damagefactor "AntiAirbolt", 0.0
	Damagefactor "sentinel", 0.0
	Damagefactor "Inariplasma", 0.0
	Damagefactor "PistolBullets", 0.0
	Damagefactor "grenade", 0.0
	Damagefactor "grenade2", 0.0
	Damagefactor "proton", 0.0
	Damagefactor "arrow", 0.0
	Damagefactor "railgun", 0.0
	Damagefactor "SamDeagle", 0.0
	Damagefactor "Bulletpuff2", 0.0
	Damagefactor "KnightSword", 0.0
	Damagefactor "wind", 0.0
	Damagefactor "AxeFly", 0.0
	Damagefactor "CryoXBow", 0.0
	Damagefactor "ChaosExpl1", 0.0
	Damagefactor "ChaosExpl2", 0.0
	Damagefactor "ChaosExpl12", 0.0
	Damagefactor "RevyRifleBullet", 0.0
	Damagefactor "FlameProtect", 0.0
	Damagefactor "IlluPewPewRifle", 0.0
	Damagefactor "IlluNukeKABUUM", 0.0
	Damagefactor "BlackHoleDamages", 0.0
	Damagefactor "Melee", 0.0
	Damagefactor "Uppercut", 0.0
	Damagefactor "AntiAirBolt", 0.0
	Damagefactor "MechPewPews", 0.0
	Damagefactor "Creeper", 0.1
	Damagefactor "UboaRawrScream", 0.1
	Damagefactor "Creepstun", 5.0
	Damagefactor "SjasScream", 2.0
	Damagefactor "FrostbiteWind", 2.0
	Damagefactor "EmtalicSaw", 2.0
	Damagefactor "LichFire", 2.0
	Damagefactor "EyesoreballX", 5.0
	Damagefactor "Ravager", 0.1
	Damagefactor "Yurei", 2.0
	Damagefactor "YureiBall", 2.0
	Damagefactor "KarenExplo", 0.0
    Damagefactor "GasterSmokeHurt", 0.0
  meleerange 92
  SeeSound "RoyalHalberdier/active"
  PainSound "RoyalHalberdier/pain"
  DeathSound "RoyalHalberdier/death"
  ActiveSound "RoyalHalberdier/active"
  Obituary "%o bowed down to her royal majesty."
  States
  {
  Spawn:
    CLHL AB 10 A_Look
    Goto See
  See:
    CLHL AABBCCDD 3 A_Chase
    Loop
  Melee:       
	CLHL E 0 A_Jump(25,"SwordsmanYell")
	Regularmelee:
    CLHL EF 5 a_facetarget
    CLHL G 5 A_CustomMeleeAttack(15,"Sword/HitThings","none","Macheteslicerino")  
    Goto See
	SwordsmanYell:
    CLHL EF 5 a_facetarget
	CLHL G 0 A_Playsound("RoyalHalberdier/attack")
    CLHL G 5 A_CustomMeleeAttack(15,"Sword/HitThings","none","Macheteslicerino")  
    Goto See     
  Pain:
    CLHL A 2
    CLHL A 2 A_Pain
    Goto See
  Death:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    CLEE I 5
    CLEE J 5 A_Scream
    CLEE K 5
    CLEE L 5 A_NoBlocking
    CLEE MNOP 4
    CLEE Q -1 A_BossDeath
    Stop
  Death.MapGibber:
	TNT1 A 0 A_PlaySound("car/hit",chan_auto)
  Death.MapGibber2:
  Death.Jitter:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    TNT1 A 0 A_StopSound
	TNT1 A 1 A_NoBlocking
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
    Stop
	Death.TenebraRail:
	Death.Telefrag:
	Death.Grenade:
	Death.Termissiles:
	Death.ChaosExpl12:
	Death.KarenExplo:
	Death.IlluNukeKABUUM:
	Death.CalebDynamite:
	Death.LoonaClawing:
	Death.LoonaClawingLightSFX:
	Death.LoonaClawingHeavySFX:
	Death.GloomWatcherLure:
	Death.Fleshbent:
	Death.GhoulChainSaw:
	Death.BastetClawing:
	Death.BastetClawingLightSFX:
	Death.BastetClawingHeavySFX:
	Death.Harvester:
	Death.Sinistar:
	Death.Choke:
	Death.JusticarSpike:
	Death.Emtalic:
	Death.Wendigo:
	Death.MorphRipperGib:
	Death.DarkVortex:
	Death.ImpostorJitter:
	Death.PuppetStrings:
	Death.LichIce:
	Death.LichLightning:
	Death.AsylumCannonBall:
		Goto Death.Jitter
	Death.TrueDivine:
		TNT1 A 0 A_PlaySoundEx("SoulSnatchStinger",CHAN_AUTO,0,1)
		TNT1 A 0 A_SpawnItemEx("SoulSnatch")
		Goto Death.Jitter
	Death.Judgement:
		TNT1 A 0 A_SpawnItemEx("StellarisThunderFX")
		Goto Death.Jitter
	Pain.FrostbiteWind:
	Pain.Ravager:
	Pain.Juglava:
	Pain.HarvesterRock:
	Pain.EmtalicSaw:
	Pain.MorphRipper:
	Pain.MorphRipperGib:
	Pain.I1:
	Pain.I3:
	Pain.ZombiePoison:
	Pain.JusticarSpike:
	Pain.Asylum:
	Pain.AsylumCannonBall:
	Pain.FleshlingMissile:
	Pain.DarkVortex:
	Pain.ImpostorJitter:
	Pain.BlueFire:
	Pain.PuppetStrings:
	Pain.LichFire:
	Pain.LichIce:
	Pain.LichLightning:
	Pain.Whiteface:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		Goto Pain
  }
}

ACTOR RoyalSwordsman
{
  
  Health 500
  Radius 24
  Height 56
  Mass 1000
  Speed 10
  scale 0.9
  PainChance 50
  Monster
+FRIENDLY
+QUICKTORETALIATE
+FRIENDLY
+DONTHURTSPECIES
+NOBLOCKMONST
+INCOMBAT
+MISSILEMORE
+LOOKALLAROUND
+NEVERRESPAWN
+DONTDRAIN
	Damagefactor "MechPewPews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "Shotgun", 0.0
	Damagefactor "Machinegun", 0.0
	Damagefactor "I5", 1.2
	Damagefactor "I1", 0.2
	Damagefactor "I2", 0.9
	Damagefactor "Divine", 0.0
	Damagefactor "BlueFire", 1.8
	Damagefactor "Hellzone", 1.2
	Damagefactor "Lamiafire", 1.9
	Damagefactor "ThrottlePews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "MacheteRangAttackSlice", 0.0
	damagefactor "Ghosttrap", 0.0
    Damagefactor "ZombiePoison", 1.0
	Damagefactor "ZombieIce", 1.0
	Damagefactor "minion2", 2.0
	Damagefactor "minion", 2.0
	Damagefactor "MorphRipper", 2.0
	Damagefactor "FleshlingMissile", 2.0
	Damagefactor "Ice2", 0.0
	Damagefactor "Ice", 0.0
	Damagefactor "fire", 0.0
	Damagefactor "fire2", 0.0
	Damagefactor "Altice", 0.0
	Damagefactor "Altfire", 0.0
	Damagefactor "Altice2", 0.0
	Damagefactor "altfire2", 0.0
	Damagefactor "AntiAirbolt", 0.0
	Damagefactor "plasma", 0.0
	damagefactor "CrapPlasma", 0.0
	Damagefactor "sentinel", 0.0
	Damagefactor "Inariplasma", 0.0
	Damagefactor "PistolBullets", 0.0
	Damagefactor "grenade", 0.0
	Damagefactor "grenade2", 0.0
	Damagefactor "proton", 0.0
	Damagefactor "arrow", 0.0
	Damagefactor "railgun", 0.0
	Damagefactor "SamDeagle", 0.0
	Damagefactor "Bulletpuff2", 0.0
	Damagefactor "KnightSword", 0.0
	Damagefactor "wind", 0.0
	Damagefactor "AxeFly", 0.0
	Damagefactor "CryoXBow", 0.0
	Damagefactor "ChaosExpl1", 0.0
	Damagefactor "ChaosExpl2", 0.0
	Damagefactor "ChaosExpl12", 0.0
	Damagefactor "RevyRifleBullet", 0.0
	Damagefactor "FlameProtect", 0.0
	Damagefactor "IlluPewPewRifle", 0.0
	Damagefactor "IlluNukeKABUUM", 0.0
	Damagefactor "BlackHoleDamages", 0.0
	Damagefactor "Melee", 0.0
	Damagefactor "Uppercut", 0.0
	Damagefactor "AntiAirBolt", 0.0
	Damagefactor "MechPewPews", 0.0
	Damagefactor "Creeper", 0.1
	Damagefactor "UboaRawrScream", 0.1
	Damagefactor "Creepstun", 5.0
	Damagefactor "SjasScream", 2.0
	Damagefactor "FrostbiteWind", 2.0
	Damagefactor "EmtalicSaw", 2.0
	Damagefactor "LichFire", 2.0
	Damagefactor "EyesoreballX", 5.0
	Damagefactor "Ravager", 0.1
	Damagefactor "Yurei", 2.0
	Damagefactor "YureiBall", 2.0
	Damagefactor "KarenExplo", 0.0
    Damagefactor "GasterSmokeHurt", 0.0
  meleerange 92
  SeeSound "RoyalSwordsman/active"
  PainSound "RoyalSwordsman/pain"
  DeathSound "RoyalSwordsman/death"
  ActiveSound "RoyalSwordsman/active"
  Obituary "%o bowed down to her royal majesty."
  States
  {
  Spawn:
    CLOL AB 10 A_Look
    Goto See
  See:
    CLOL AABBCCDD 3 A_Chase
    Loop
  Melee:
	CLOL E 0 A_Jump(25,"SwordsmanYell")
	Regularmelee:
    CLOL EF 5 a_facetarget
    CLOL G 5 A_CustomMeleeAttack(12,"Sword/HitThings","none","Macheteslicerino")  
    Goto See
	SwordsmanYell:
    CLOL EF 5 a_facetarget
	CLOL G 0 A_Playsound("RoyalSwordsman/attack")
    CLOL G 5 A_CustomMeleeAttack(12,"Sword/HitThings","none","Macheteslicerino")  
    Goto See    
  Pain:
    CLOL H 2
    CLOL H 2 A_Pain
    Goto See
  Death:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    CLEE I 5
    CLEE J 5 A_Scream
    CLEE K 5
    CLEE L 5 A_NoBlocking
    CLEE MNOP 4
    CLEE Q -1 A_BossDeath
    Stop
  Death.MapGibber:
	TNT1 A 0 A_PlaySound("car/hit",chan_auto)
  Death.MapGibber2:
  Death.Jitter:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    TNT1 A 0 A_StopSound
	TNT1 A 1 A_NoBlocking
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
    Stop
	Death.TenebraRail:
	Death.Telefrag:
	Death.Grenade:
	Death.Termissiles:
	Death.ChaosExpl12:
	Death.KarenExplo:
	Death.IlluNukeKABUUM:
	Death.CalebDynamite:
	Death.LoonaClawing:
	Death.LoonaClawingLightSFX:
	Death.LoonaClawingHeavySFX:
	Death.GloomWatcherLure:
	Death.Fleshbent:
	Death.GhoulChainSaw:
	Death.BastetClawing:
	Death.BastetClawingLightSFX:
	Death.BastetClawingHeavySFX:
	Death.Harvester:
	Death.Sinistar:
	Death.Choke:
	Death.JusticarSpike:
	Death.Emtalic:
	Death.Wendigo:
	Death.MorphRipperGib:
	Death.DarkVortex:
	Death.ImpostorJitter:
	Death.PuppetStrings:
	Death.LichIce:
	Death.LichLightning:
	Death.AsylumCannonBall:
		Goto Death.Jitter
	Death.TrueDivine:
		TNT1 A 0 A_PlaySoundEx("SoulSnatchStinger",CHAN_AUTO,0,1)
		TNT1 A 0 A_SpawnItemEx("SoulSnatch")
		Goto Death.Jitter
	Death.Judgement:
		TNT1 A 0 A_SpawnItemEx("StellarisThunderFX")
		Goto Death.Jitter
	Pain.FrostbiteWind:
	Pain.Ravager:
	Pain.Juglava:
	Pain.HarvesterRock:
	Pain.EmtalicSaw:
	Pain.MorphRipper:
	Pain.MorphRipperGib:
	Pain.I1:
	Pain.I3:
	Pain.ZombiePoison:
	Pain.JusticarSpike:
	Pain.Asylum:
	Pain.AsylumCannonBall:
	Pain.FleshlingMissile:
	Pain.DarkVortex:
	Pain.ImpostorJitter:
	Pain.BlueFire:
	Pain.PuppetStrings:
	Pain.LichFire:
	Pain.LichIce:
	Pain.LichLightning:
	Pain.Whiteface:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		Goto Pain
  }
}

ACTOR RoyalDefender
{
  
  Health 550
  Radius 24
  Height 56
  Mass 1000
  Speed 10
  scale 0.9
  PainChance 50
  Monster
	+FRIENDLY
+QUICKTORETALIATE
+FRIENDLY
+DONTHURTSPECIES
+NOBLOCKMONST
+INCOMBAT
+MISSILEMORE
+LOOKALLAROUND
+NEVERRESPAWN
+DONTDRAIN
	Damagefactor "MechPewPews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "Shotgun", 0.0
	Damagefactor "Machinegun", 0.0
	Damagefactor "I5", 1.2
	Damagefactor "I1", 0.2
	Damagefactor "I2", 0.9
	Damagefactor "Divine", 0.0
	Damagefactor "BlueFire", 1.8
	Damagefactor "Hellzone", 1.2
	Damagefactor "Lamiafire", 1.9
	Damagefactor "ThrottlePews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "MacheteRangAttackSlice", 0.0
	damagefactor "Ghosttrap", 0.0
    Damagefactor "ZombiePoison", 1.0
	Damagefactor "ZombieIce", 1.0
	Damagefactor "minion2", 2.0
	Damagefactor "minion", 2.0
	Damagefactor "MorphRipper", 2.0
	Damagefactor "FleshlingMissile", 2.0
	Damagefactor "Ice2", 0.0
	Damagefactor "Ice", 0.0
	Damagefactor "fire", 0.0
	Damagefactor "fire2", 0.0
	Damagefactor "Altice", 0.0
	Damagefactor "Altfire", 0.0
	Damagefactor "Altice2", 0.0
	Damagefactor "altfire2", 0.0
	Damagefactor "plasma", 0.0
	damagefactor "CrapPlasma", 0.0
	Damagefactor "sentinel", 0.0
	Damagefactor "Inariplasma", 0.0
	Damagefactor "PistolBullets", 0.0
	Damagefactor "grenade", 0.0
	Damagefactor "grenade2", 0.0
	Damagefactor "proton", 0.0
	Damagefactor "arrow", 0.0
	Damagefactor "railgun", 0.0
	Damagefactor "SamDeagle", 0.0
	Damagefactor "Bulletpuff2", 0.0
	Damagefactor "AntiAirbolt", 0.0
	Damagefactor "KnightSword", 0.0
	Damagefactor "wind", 0.0
	Damagefactor "AxeFly", 0.0
	Damagefactor "CryoXBow", 0.0
	Damagefactor "ChaosExpl1", 0.0
	Damagefactor "ChaosExpl2", 0.0
	Damagefactor "ChaosExpl12", 0.0
	Damagefactor "RevyRifleBullet", 0.0
	Damagefactor "FlameProtect", 0.0
	Damagefactor "IlluPewPewRifle", 0.0
	Damagefactor "IlluNukeKABUUM", 0.0
	Damagefactor "BlackHoleDamages", 0.0
	Damagefactor "Melee", 0.0
	Damagefactor "Uppercut", 0.0
	Damagefactor "AntiAirBolt", 0.0
	Damagefactor "MechPewPews", 0.0
	Damagefactor "Creeper", 0.1
	Damagefactor "UboaRawrScream", 0.1
	Damagefactor "Creepstun", 5.0
	Damagefactor "SjasScream", 2.0
	Damagefactor "FrostbiteWind", 2.0
	Damagefactor "EmtalicSaw", 2.0
	Damagefactor "LichFire", 2.0
	Damagefactor "EyesoreballX", 5.0
	Damagefactor "Ravager", 0.1
	Damagefactor "Yurei", 2.0
	Damagefactor "YureiBall", 2.0
	Damagefactor "KarenExplo", 0.0
    Damagefactor "GasterSmokeHurt", 0.0
  meleerange 92
  SeeSound "RoyalDefender/active"
  PainSound "RoyalDefender/pain"
  DeathSound "RoyalDefender/death"
  ActiveSound "RoyalDefender/active"
  Obituary "%o bowed down to her royal majesty."
  States
  {
  Spawn:
    CLMA AB 10 A_Look
    Goto See
  See:
    CLMA AABBCCDD 3 A_Chase
    Loop
  Melee:       
	CLMA E 0 A_Jump(25,"SwordsmanYell")
	Regularmelee:
    CLMA EF 5 a_facetarget
    CLMA G 5 A_CustomMeleeAttack(10,"Sword/HitThings","none","Macheteslicerino")  
    Goto See
	SwordsmanYell:
    CLMA EF 5 a_facetarget
	CLMA G 0 A_Playsound("RoyalDefender/attack")
    CLMA G 5 A_CustomMeleeAttack(10,"Sword/HitThings","none","Macheteslicerino")  
    Goto See   
  Pain:
    CLMA H 2
    CLMA H 2 A_Pain
    Goto See
  Death:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    CLEE I 5
    CLEE J 5 A_Scream
    CLEE K 5
    CLEE L 5 A_NoBlocking
    CLEE MNOP 4
    CLEE Q -1 A_BossDeath
    Stop
  Death.MapGibber:
	TNT1 A 0 A_PlaySound("car/hit",chan_auto)
  Death.MapGibber2:
  Death.Jitter:
	TNT1 A 0 A_GiveToTarget("HitBeep",1)
    TNT1 A 0 A_StopSound
	TNT1 A 1 A_NoBlocking
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
    Stop
	Death.TenebraRail:
	Death.Telefrag:
	Death.Grenade:
	Death.Termissiles:
	Death.ChaosExpl12:
	Death.KarenExplo:
	Death.IlluNukeKABUUM:
	Death.CalebDynamite:
	Death.LoonaClawing:
	Death.LoonaClawingLightSFX:
	Death.LoonaClawingHeavySFX:
	Death.GloomWatcherLure:
	Death.Fleshbent:
	Death.GhoulChainSaw:
	Death.BastetClawing:
	Death.BastetClawingLightSFX:
	Death.BastetClawingHeavySFX:
	Death.Harvester:
	Death.Sinistar:
	Death.Choke:
	Death.JusticarSpike:
	Death.Emtalic:
	Death.Wendigo:
	Death.MorphRipperGib:
	Death.DarkVortex:
	Death.ImpostorJitter:
	Death.PuppetStrings:
	Death.LichIce:
	Death.LichLightning:
	Death.AsylumCannonBall:
		Goto Death.Jitter
	Death.TrueDivine:
		TNT1 A 0 A_PlaySoundEx("SoulSnatchStinger",CHAN_AUTO,0,1)
		TNT1 A 0 A_SpawnItemEx("SoulSnatch")
		Goto Death.Jitter
	Death.Judgement:
		TNT1 A 0 A_SpawnItemEx("StellarisThunderFX")
		Goto Death.Jitter
	Pain.FrostbiteWind:
	Pain.Ravager:
	Pain.Juglava:
	Pain.HarvesterRock:
	Pain.EmtalicSaw:
	Pain.MorphRipper:
	Pain.MorphRipperGib:
	Pain.I1:
	Pain.I3:
	Pain.ZombiePoison:
	Pain.JusticarSpike:
	Pain.Asylum:
	Pain.AsylumCannonBall:
	Pain.FleshlingMissile:
	Pain.DarkVortex:
	Pain.ImpostorJitter:
	Pain.BlueFire:
	Pain.PuppetStrings:
	Pain.LichFire:
	Pain.LichIce:
	Pain.LichLightning:
	Pain.Whiteface:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		Goto Pain
  }
}

actor RoyalArcher
{
    Health 350
    Radius 20
    Height 56
    Speed 20
    PainChance 25
	scale 0.9
	Mass 2000
    MONSTER 
	+NODROPOFF
    	+FRIENDLY
+QUICKTORETALIATE
+FRIENDLY
+DONTHURTSPECIES
+NOBLOCKMONST
+INCOMBAT
+MISSILEMORE
+MISSILEEVENMORE
+LOOKALLAROUND
+NEVERRESPAWN
+DONTDRAIN
	Damagefactor "MechPewPews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "Shotgun", 0.0
	Damagefactor "Machinegun", 0.0
	Damagefactor "I5", 1.2
	Damagefactor "I1", 0.2
	Damagefactor "I2", 0.9
	Damagefactor "Divine", 0.0
	Damagefactor "BlueFire", 1.8
	Damagefactor "Hellzone", 1.2
	Damagefactor "Lamiafire", 1.9
	Damagefactor "ThrottlePews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
	Damagefactor "MacheteRangAttackSlice", 0.0
	damagefactor "Ghosttrap", 0.0
    Damagefactor "ZombiePoison", 1.0
	Damagefactor "ZombieIce", 1.0
	Damagefactor "minion2", 2.0
	Damagefactor "minion", 2.0
	Damagefactor "MorphRipper", 2.0
	Damagefactor "FleshlingMissile", 2.0
	Damagefactor "Ice2", 0.0
	Damagefactor "Ice", 0.0
	Damagefactor "fire", 0.0
	Damagefactor "fire2", 0.0
	Damagefactor "AntiAirbolt", 0.0
	Damagefactor "Altice", 0.0
	Damagefactor "Altfire", 0.0
	Damagefactor "Altice2", 0.0
	Damagefactor "altfire2", 0.0
	Damagefactor "plasma", 0.0
	damagefactor "CrapPlasma", 0.0
	Damagefactor "sentinel", 0.0
	Damagefactor "Inariplasma", 0.0
	Damagefactor "PistolBullets", 0.0
	Damagefactor "grenade", 0.0
	Damagefactor "grenade2", 0.0
	Damagefactor "proton", 0.0
	Damagefactor "arrow", 0.0
	Damagefactor "railgun", 0.0
	Damagefactor "SamDeagle", 0.0
	Damagefactor "Bulletpuff2", 0.0
	Damagefactor "KnightSword", 0.0
	Damagefactor "wind", 0.0
	Damagefactor "AxeFly", 0.0
	Damagefactor "CryoXBow", 0.0
	Damagefactor "ChaosExpl1", 0.0
	Damagefactor "ChaosExpl2", 0.0
	Damagefactor "ChaosExpl12", 0.0
	Damagefactor "RevyRifleBullet", 0.0
	Damagefactor "FlameProtect", 0.0
	Damagefactor "IlluPewPewRifle", 0.0
	Damagefactor "IlluNukeKABUUM", 0.0
	Damagefactor "BlackHoleDamages", 0.0
	Damagefactor "Melee", 0.0
	Damagefactor "Uppercut", 0.0
	Damagefactor "AntiAirBolt", 0.0
	Damagefactor "MechPewPews", 0.0
	Damagefactor "Creeper", 0.1
	Damagefactor "UboaRawrScream", 0.1
	Damagefactor "Creepstun", 5.0
	Damagefactor "SjasScream", 2.0
	Damagefactor "FrostbiteWind", 2.0
	Damagefactor "EmtalicSaw", 2.0
	Damagefactor "LichFire", 2.0
	Damagefactor "EyesoreballX", 5.0
	Damagefactor "Ravager", 0.1
	Damagefactor "Yurei", 2.0
	Damagefactor "YureiBall", 2.0
	Damagefactor "KarenExplo", 0.0
    Damagefactor "GasterSmokeHurt", 0.0
    SeeSound "RoyalArcher/active"
    AttackSound "archer/attack"
    PainSound "Royalarcher/pain"
    DeathSound "RoyalArcher/death"
    ActiveSound "RoyalArcher/active"
    Obituary "%o bowed down to her royal majesty."
    States
    {
    Spawn:
        ENIG AB 10 A_Look
        Goto See
    See:
        ENIG AABBCCDD 3 A_fastchase
        Loop
    Missile:
		ENIG E 0 A_Jump(100,"Missile2")
        ENIG E 3 A_PlaySound("archer/draw")
        ENIG E 10 A_FaceTarget
        ENIG F 5 bright A_CustomMissile("ArcherArrow",32,5)
		ENIG E 5
        Goto See
	Missile2:	
        ENIG E 3 A_PlaySound("archer/draw")
        ENIG E 10 A_FaceTarget
        ENIG G 5 bright A_CustomMissile("ArcherArrow2",32,5)
		ENIG E 5
        Goto See
    Pain:
    	ENIG H 3
        ENIG H 3 A_Pain
    	Goto See
    Death:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
        ENIG I 5 A_Scream
        ENIG J 5 A_NoBlocking
        ENIG KLMN 5
        ENIG N -1
        Stop
    XDeath:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
        ENIG O 5 A_PlaySound("archer/gib")
        ENIG P 5 A_NoBlocking
        ENIG QRSTUVWX 5
        ENIG X -1
        Stop
    Raise:
        KNIT MLKJIH 3
        Goto See
	Death.MapGibber:
		TNT1 A 0 A_PlaySound("car/hit",chan_auto)
	Death.MapGibber2:
	Death.Jitter:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		TNT1 A 0 A_StopSound
		TNT1 A 1 A_NoBlocking
		NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A -1
		Stop
	Death.TenebraRail:
	Death.Telefrag:
	Death.Grenade:
	Death.Termissiles:
	Death.ChaosExpl12:
	Death.KarenExplo:
	Death.IlluNukeKABUUM:
	Death.CalebDynamite:
	Death.LoonaClawing:
	Death.LoonaClawingLightSFX:
	Death.LoonaClawingHeavySFX:
	Death.GloomWatcherLure:
	Death.Fleshbent:
	Death.GhoulChainSaw:
	Death.BastetClawing:
	Death.BastetClawingLightSFX:
	Death.BastetClawingHeavySFX:
	Death.Harvester:
	Death.Sinistar:
	Death.Choke:
	Death.JusticarSpike:
	Death.Emtalic:
	Death.Wendigo:
	Death.MorphRipperGib:
	Death.DarkVortex:
	Death.ImpostorJitter:
	Death.PuppetStrings:
	Death.LichIce:
	Death.LichLightning:
	Death.AsylumCannonBall:
		Goto Death.Jitter
	Death.TrueDivine:
		TNT1 A 0 A_PlaySoundEx("SoulSnatchStinger",CHAN_AUTO,0,1)
		TNT1 A 0 A_SpawnItemEx("SoulSnatch")
		Goto Death.Jitter
	Death.Judgement:
		TNT1 A 0 A_SpawnItemEx("StellarisThunderFX")
		Goto Death.Jitter
	Pain.FrostbiteWind:
	Pain.Ravager:
	Pain.Juglava:
	Pain.HarvesterRock:
	Pain.EmtalicSaw:
	Pain.MorphRipper:
	Pain.MorphRipperGib:
	Pain.I1:
	Pain.I3:
	Pain.ZombiePoison:
	Pain.JusticarSpike:
	Pain.Asylum:
	Pain.AsylumCannonBall:
	Pain.FleshlingMissile:
	Pain.DarkVortex:
	Pain.ImpostorJitter:
	Pain.BlueFire:
	Pain.PuppetStrings:
	Pain.LichFire:
	Pain.LichIce:
	Pain.LichLightning:
	Pain.Whiteface:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		Goto Pain
    }
}


actor ArcherArrow
{
   Radius 5
   Height 12
   Speed 60
   Damage 5
   Damagetype "MechPewPews"
   PROJECTILE
   +NOGRAVITY
   renderstyle add
   alpha 0.8
   scale 0.5
   SeeSound "archer/attack"
   DeathSound "archer/hit"
   States
   {
   Spawn:
      VEKF A 1 bright A_SpawnItem("ArcherArrowTrail")
      Loop
   Death:
      VEKF FGHI 3 bright
	Stop
   }
}

actor ArcherArrowTrail
{
	+NOCLIP
	+NOBLOCKMAP
	+NOGRAVITY
	+CLIENTSIDEONLY
	renderstyle add
	alpha 0.5
	States
	{
		Spawn:
		VEKF AABCDE 3 A_FadeOut(0.1)
		loop
	}
}

actor ArcherArrow2 : ArcherArrow
{
   Speed 80
   Damage (15)
   Damagetype "MechPewPews"
   SeeSound "archer/attackboss"
   States
   {
   Spawn:
      VEKG A 1 bright A_SpawnItem("ArcherArrowTrail2")
      Loop
   Death:
      VEKG FGHI 3 bright
	Stop
   }
}

actor ArcherArrowTrail2 : ArcherArrowTrail
{
	States
	{
		Spawn:
		VEKG AABCDE 3 A_FadeOut(0.1)
		loop
	}
}