Actor ZamasuRevenant : NemesisRevenant
{
  Health 11500 
  Mass 1600
  Speed 24
  PainChance 30
  MeleeRange 90
  MeleeThreshold 196
  Scale 1.20
  SeeSound "NemesisRevenant/see"
  PainSound "NemesisRevenant/pain"
  DeathSound "NemesisRevenant/death"
  ActiveSound "NemesisRevenant/idle"
  MeleeSound "skeleton/melee"
  MeleeDamage 650
  DamageFactor 0.2
  DamageFactor "Legendary1", 0.0
  DamageFactor "LegendaryPlayer", 0.3
  DamageFactor "Legendary", 0.0
  DamageFactor "LegendaryGuru", 0.0
  DamageFactor "LegendaryGuruPlayer", 0.3
  DamageFactor "PDTBFG", 0.25
  DamageFactor "PDTBFGTracer", 0.25
  DamageFactor "PlayerDevBall", 0.125
  DamageFactor "PlayerDevBall2", 0.125
  DamageFactor "PlayerDTBFGRailgunSlug", 0.125
  DamageFactor "PlayerDevTracer", 0.125
  DamageFactor "CadaverRocket", 0.0
  DamageFactor "DBFG10K2", 0.65
  DamageFactor "PlayerDTRG", 0.5
  DamageFactor "PlayerDBFG10K2", 0.65
  DamageFactor "DBFG2", 0.65
  DamageFactor "PlayerDBFG2", 0.65
  DamageFactor "LegMind", 0.0
  DamageFactor "VileFires", 0.0
  DamageFactor "Baby15K", 0.0
  DamageFactor "SoulToxic", 0.0
  DamageFactor "BombBreath", 0.0
  DamageFactor "CacoComet", 0.0
  DamageFactor "CadaverRocket", 0.0
  DamageFactor "BeheComet", 0.0
  DamageFactor "NobleComet", 0.0
  DamageFactor "DemolisherEx", 0.0
  DamageFactor "DarkDemoEx", 0.0
  DamageFactor "Hell", 0.0
  DamageFactor "UltimateLegendary", 0.0
  DamageFactor "PlayerPyro", 0.4
  DamageFactor "HellComet", 0.4
  DropItem "ZamasuRune" 120
  DropItem "ZamasuArmor" 128
 DropItem "NemesisHealthBonusMax" 256 32
DropItem "NemesisArmorBonus32" 256
DropItem "NemesisHealthBonusMax" 256 32
DropItem "NemesisArmorBonus32" 256
DropItem "NemesisSuperSphere" 160
DropItem "LegendarySalvationSphere" 240
DropItem "NemesisRuneSpawnerTier3" 230
DropItem "NemesisGreaterDemonicEnergy" 256
DropItem "NemesisDemonicEnergy" 256
DropItem "BossLifeEssence" 256
DropItem "BossArmorBonusMax" 256
DropItem "Nemesis Rifle" 256
DropItem "Nemesis Plasmatic Cannon" 256
  +BRIGHT
  Obituary "%o was completely broken by an \c[s5]Zamasu Revenant\c-"
  HitObituary "%o got his head punched clean off by the \c[s5]Zamasu Revenant\c-."
  Tag "\c[s5]Zamasu Revenant\c-"
  Translation "0:255=%[0.00,0.00,0.00]:[0.01,0.01,0.01]"
  var int user_missile;
  var int user_fake;
  var int user_music;
  States
  {
  Spawn:
    TNT1 A 0
  	DRGR AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    DRGR A 10 Bright A_Look
    Loop
  See:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,924)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
    TNT1 A 0 A_Jump(100,"Rush")
	TNT1 A 0 A_SpawnItem("LegendaryBonyStep",0,0,0,0)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    DRGR AAA 2 Bright A_Chase
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR BBB 2 Bright A_Chase
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR CCC 2 Bright A_Chase	
    TNT1 A 0 A_SpawnItem("LegendaryBonyStep",0,0,0,0)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    DRGR DDD 2 Bright A_Chase
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    DRGR EEE 2 Bright A_Chase
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    DRGR FFF 2 Bright A_Chase	
	TNT1 A 0 A_Jump(28,"Dodge")
	TNT1 A 0 A_Jump(16,"Teleport")
    Loop
  Rush:
	TNT1 A 0 A_SpawnItem("LegendaryBonyStep",0,0,0,0)
	DRGR A 2 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR AAAA 0 Bright A_Chase
	DRGR B 2 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR AAA 0 Bright A_Chase	
	DRGR C 2 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR AAAA 0 Bright A_Chase	
	TNT1 A 0 A_SpawnItem("LegendaryBonyStep",0,0,0,0)
	DRGR D 2 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR AAA 0 Bright A_Chase
	DRGR E 2 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR AAAA 0 Bright A_Chase	
	DRGR F 2 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR AAA 0 Bright A_Chase	
	TNT1 A 0 A_Jump(28,"Dodge")
	TNT1 A 0 A_Jump(12,"Teleport")
	TNT1 A 0 A_Jump(75,"See")
	Loop
  Teleport:
    DRGR K 1 Bright A_UnSetShootable
	DRGR KKKKKK 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR KKKKKKKKKK 1 A_FadeOut(0.1,0)
	DRGR K 2
	DRGR KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 0 A_Wander
	DRGR KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 0 A_Wander
    DRGR K 1 A_PlayWeaponSound("boss/teleport")
	DRGR KKKKKK 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR KKKKKKKKKK 1 A_FadeIn(0.1)
    DRGR K 1 Bright A_SetShootable
    Goto See
  Dodge:
	DRGR A 1 A_JumpIfTargetInLos(1)
	Goto See
	DRGR A 1 Bright A_SetAngle(random(0,359))
	TNT1 A 0 A_Recoil(-40)
	DRGR AAAAAAAAAAAAA 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR A 1 A_Stop  
	DRGR A 1 A_SetAngle(random(0,359))
	TNT1 A 0 A_Recoil(-40)  
	DRGR AAAAAAAAAAAAA 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR A 1 A_Stop  
	DRGR A 1 A_SetAngle(random(0,359))
	TNT1 A 0 A_Recoil(-40)
	DRGR AAAAAAAAAAAAA 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR A 1 A_Stop  
	DRGR A 1 A_SetAngle(random(0,359))
	TNT1 A 0 A_Recoil(-40)
	DRGR AAAAAAAAAAAAA 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR A 1 A_Stop
    Goto See
  Melee:
    DRGR G 0 A_FaceTarget
    DRGR G 1 A_Jump(127,4)
    DRGR G 1 A_SkelWhoosh
    DRGR H 1 A_FaceTarget
    DRGR I 2 A_SkelFist
    Goto See
    DRGR R 1 A_SkelWhoosh
    DRGR S 1 A_FaceTarget
    DRGR T 2 A_SkelFist
    Goto See
  DashPunch:
    TNT1 A 0 A_Jump(128,"Normal")
	TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_Recoil(-65)
    TNT1 A 0 A_SkelWhoosh	
	DRGR GGGGG 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR HHHHH 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
/*	TNT1 A 0 A_CustomMissile("TrueLegendaryRevFireSpawnerHoming",0,0,0)
	TNT1 A 0 A_CustomMissile("TrueLegendaryRevFireSpawnerHoming",0,0,-5)
	TNT1 A 0 A_CustomMissile("TrueLegendaryRevFireSpawnerHoming",0,0,5)
	TNT1 A 0 A_CustomMissile("TrueLegendaryRevFireSpawnerHoming",0,0,-10)
	TNT1 A 0 A_CustomMissile("TrueLegendaryRevFireSpawnerHoming",0,0,10)*/
	TNT1 A 0 A_CustomMissile("LRDashPunch",32,0,0,CMF_AIMDIRECTION)
	DRGR III 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR A 1 Bright A_Stop	
	DRGR A 1 Bright A_FaceTarget
    TNT1 A 0 A_Recoil(-65)
    TNT1 A 0 A_SkelWhoosh	
	DRGR RRRRR 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR SSSSS 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_CustomMissile("LRDashPunch",32,0,0,CMF_AIMDIRECTION)
	DRGR TTT 1 Bright A_SpawnItemEx("ZamasuRevenantGhost",0,0,0,0,0,0,0,128)
	DRGR A 1 Bright A_Stop
    TNT1 A 0 A_Jump(128,"Dodge")
    Goto See
  Missile:
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_Jump(32,"BestAttack")
    TNT1 A 0 A_Jump(156,"Rage","HomingMissiles","Railgun","RandomAngle")
    TNT1 A 0 A_Jump(108,"IonBeamFire","BFG10K","SuperPlasma","SuperRandomAngle")
    TNT1 A 0 A_JumpIfCloser(300,"DashPunch")
  Normal:		
    DRGR J 4 Bright A_FaceTarget
	TNT1 J 0 A_PlaySound("lrball1/shot")
    DRGR K 0 A_CustomMissile("NemesisRevMiniLaser",65,-13,0)
    DRGR K 4 Bright A_CustomMissile("NemesisRevMiniLaser",65,13,0)
    DRGR K 4 Bright A_FaceTarget
	TNT1 A 0 A_SpidRefire
    DRGR J 4 Bright A_FaceTarget
	TNT1 J 0 A_PlaySound("lrball1/shot")
    DRGR K 0 A_CustomMissile("NemesisRevCannonLaser",65,-13,0)
    DRGR K 4 Bright A_CustomMissile("NemesisRevCannonLaser",65,13,0)
    DRGR K 4 Bright A_FaceTarget
	TNT1 A 0 A_SpidRefire
    DRGR J 4 Bright A_FaceTarget
	TNT1 J 0 A_PlaySound("lrball1/shot")
    DRGR K 0 A_CustomMissile("NemesisRevMiniLaser",65,-13,0)
    DRGR K 4 Bright A_CustomMissile("NemesisRevMiniLaser",65,13,0)
    DRGR K 4 Bright A_FaceTarget
	TNT1 A 0 A_SpidRefire
	TNT1 A 0 A_Jump(96,"Missile","HomingMissiles")
    Goto Normal
  HomingMissiles:
    DRGR J 3 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisRevHomingRocket",65,-15,0)
	DRGR K 4 Bright A_CustomMissile("NemesisRevHomingRocket",65,15,0)
	DRGR K 4 Bright A_FaceTarget
	DRGR J 3 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisRevHomingRocket",65,-15,0)
	DRGR K 4 Bright A_CustomMissile("NemesisRevHomingRocket",65,15,0)
	DRGR K 4 Bright A_FaceTarget
	DRGR J 3 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisRevHomingRocket",65,-15,0)
	DRGR K 4 Bright A_CustomMissile("NemesisRevHomingRocket",65,15,0)
	DRGR K 4 Bright A_FaceTarget
	DRGR J 3 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisRevHomingRocket",65,-15,0)
	DRGR K 4 Bright A_CustomMissile("NemesisRevHomingRocket",65,15,0)
	DRGR K 4 Bright A_FaceTarget
	DRGR J 3 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisRevHomingRocket",65,-15,0)
	DRGR K 4 Bright A_CustomMissile("NemesisRevHomingRocket",65,15,0)
	DRGR K 4 Bright A_FaceTarget
	TNT1 A 0 A_Jump(156,"RandomAngle","IonBeamFire")
	Goto See
  IonBeamFire:
    DRGR J 3 Bright A_FaceTarget
    DRGR K 0 A_CustomMissile("NemesisRevCannonIonBeam",65,-15,0)
    DRGR K 6 Bright A_CustomMissile("NemesisRevCannonIonBeam",65,15,0)
    DRGR K 6 Bright A_FaceTarget
	DRGR J 3 Bright A_FaceTarget
    DRGR K 0 A_CustomMissile("NemesisRevCannonIonBeam",65,-15,0)
    DRGR K 6 Bright A_CustomMissile("NemesisRevCannonIonBeam",65,15,0)
    DRGR K 6 Bright A_FaceTarget
	DRGR J 3 Bright A_FaceTarget
    DRGR K 0 A_CustomMissile("NemesisRevCannonIonBeam",65,-15,0)
    DRGR K 6 Bright A_CustomMissile("NemesisRevCannonIonBeam",65,15,0)
    DRGR K 6 Bright A_FaceTarget
	DRGR J 3 Bright A_FaceTarget
    DRGR K 0 A_CustomMissile("NemesisRevCannonIonBeam",65,-15,0)
    DRGR K 6 Bright A_CustomMissile("NemesisRevCannonIonBeam",65,15,0)
    DRGR K 6 Bright A_FaceTarget
	TNT1 A 0 A_Jump(156,"BFG10K","RandomAngle","IonBeamFire")
    Goto See
  RandomAngle:
	TNT1 A 0 A_JumpIfHealthLower(1000,"SuperRandomAngle")
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	DRGR J 18 Bright A_FaceTarget
	DRGR J 5 Bright A_FaceTarget
	DRGR J 1 Bright A_SetUserVar("user_missile",0)
  Randoming:
    DRGR K 0 A_JumpIf(user_missile >= 12,"Ending")
    DRGR K 0 A_SetUserVar("user_missile",user_missile+1)
	DRGR K 0 A_SetAngle(random(0,359))
    DRGR K 0 A_CustomMissile("MiniNemesisBFGBall",65,-13,random(0,359))	
    DRGR K 2 Bright A_CustomMissile("MiniNemesisBFGBall",65,13,random(0,359))
    Loop
  SuperRandomAngle:	
    TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    TNT1 A 0 A_PlaySound("cydes/mischrg",5)
	DRGR J 1 Bright A_PlaySound("NemesisRevenant/see",CHAN_VOICE)
	DRGR J 1 Bright A_FaceTarget
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 Bright A_SetUserVar("user_missile",0)  
  SuperRandoming:
	TNT1 A 0 A_JumpIf(user_missile >= 4,"Ending2")   
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	DRGR K 0 A_SetAngle(random(0,359))
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("legendarycannon/fire",7)
	TNT1 A 0 A_CustomMissile("NemesisGuruBall",65,-13,random(0,359))
	DRGR K 4 Bright A_CustomMissile("NemesisGuruBall",65,13,random(0,359))
	Loop
  Ending:
	DRGR J 19 Bright A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
    DRGR J 1 Bright A_Jump(156,"Rage","HomingMissiles","SuperRandomAngle")
    Goto See
  Ending2:
	DRGR J 20 Bright A_Jump(156,"Rage","IonBeamFire")
    Goto See
  Rage:
    DRGR J 2 Bright A_PlaySound("NemesisRevenant/attack1")
	DRGR J 0 A_SetInvulnerable
	DRGR J 2 Bright A_FaceTarget
	DRGR J 2 Bright A_SetUserVar("user_missile",0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_ChangeFlag("NOPAIN",1)
    DRGR J 0 A_UnSetInvulnerable
  Raging:
    DRGR K 0 A_JumpIf(user_missile >= 10,"See")	 
    DRGR K 0 A_SetUserVar("user_missile",user_missile+1)
	DRGR K 0 A_FaceTarget	
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",80,-13,0)
    DRGR K 3 Bright A_CustomMissile("NemesisRevRailLaser",80,13,0)
	DRGR K 0 A_FaceTarget	
    DRGR K 0 A_CustomMissile("TrueRevenantMiniLaser2",80,-13,0)
    DRGR K 3 Bright A_CustomMissile("TrueRevenantMiniLaser2",80,13,0)
	DRGR K 0 A_FaceTarget	
    DRGR K 0 A_CustomMissile("NemesisRevCannonLaser",80,-13,0)
    DRGR K 3 Bright A_CustomMissile("NemesisRevCannonLaser",80,13,0)
    Loop
  Railgun:
    DRGR J 1 A_PlaySound("ELEGRev/See")
	DRGR J 0 A_SetInvulnerable
	DRGR JJ 1  A_FaceTarget
  RailgunCharge:
    DRGR K 0 A_JumpIf(user_missile >= 4,"RailgunFire")
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")	
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
	DRGR K 0 A_SetUserVar("user_missile",user_missile+1)
	Loop
  RailgunFire:
	TNT1 A 0 A_SetUserVar("user_missile",0)	
	DRGR J 0 A_ChangeFlag("NOPAIN",1)
    DRGR J 0 A_UnSetInvulnerable
	DRGR K 0 A_FaceTarget	
	DRGR K 0 A_PlayWeaponSound("monsters/darkcyberrail")
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",74,-18,0)	
    DRGR K 3 Bright A_CustomMissile("NemesisRevRailLaser",74,18,0)
    DRGR JJJ 5 Bright A_FaceTarget
	DRGR K 0 A_PlayWeaponSound("monsters/darkcyberrail")
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",74,-18,0)	
    DRGR K 3 Bright A_CustomMissile("NemesisRevRailLaser",74,18,0)
    DRGR JJJ 4 Bright A_FaceTarget
	DRGR K 0 A_PlayWeaponSound("monsters/darkcyberrail")
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",74,-28,0)	
    DRGR K 3 Bright A_CustomMissile("NemesisRevRailLaser",74,18,0)
    DRGR JJJ 3 Bright A_FaceTarget
	DRGR K 0 A_PlayWeaponSound("monsters/darkcyberrail")
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",74,-28,0)	
    DRGR K 3 Bright A_CustomMissile("NemesisRevRailLaser",74,18,0)
    DRGR JJJJJJ 5 Bright A_FaceTarget
	DRGR K 0 A_PlayWeaponSound("monsters/darkcyberrail")
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",74,-18,-5)	
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",74,18,5)
    DRGR K 0 A_CustomMissile("NemesisRevRailLaser",74,-18,0)	
    DRGR K 6 Bright A_CustomMissile("NemesisRevRailLaser",74,18,0)
    Goto See
  BFG10K:
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	DRGR J 18 Bright A_FaceTarget
	DRGR J 6 Bright A_FaceTarget
	TNT1 A 0 A_SetUserVar("user_missile",0)
  BFG10KLoop:
	TNT1 A 0 A_JumpIf(user_missile > 10,"BFG10KEnd")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	TNT1 A 0 A_CustomMissile("Nemesis10kProjectile",74,15,random(-6,6))
	DRGR K 3 Bright A_CustomMissile("Nemesis10kProjectile",74,-15,random(-6,6))
    DRGR JJ 2 A_FaceTarget
	Loop
  BFG10KEnd:
	DRGR J 20 Bright A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	TNT1 A 0 A_Jump(128,"Rage","IonBeamFire","Railgun")
	Goto See
  SuperPlasma:
    DRGR J 1 A_PlaySound("ELEGRev/See")
	DRGR J 0 A_SetInvulnerable
	TNT1 A 0 A_SetUserVar("user_missile",0)	
	DRGR JJ 1  A_FaceTarget
  SuperPlasmaCharge:
    DRGR K 0 A_JumpIf(user_missile >= 5,"SuperPlasmaFire")
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 2 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
	DRGR K 0 A_SetUserVar("user_missile",user_missile+1)
	Loop
  SuperPlasmaFire:
	DRGR J 0 A_ChangeFlag("NOPAIN",1)
    DRGR J 0 A_UnSetInvulnerable
	DRGR J 0 A_FaceTarget
    DRGR K 0 A_CustomMissile("NemesisGuruBall",74,-28,0)	
    DRGR K 3 Bright A_CustomMissile("NemesisGuruBall",74,28,0)
	DRGR K 3 Bright A_PlaySoundEx("weapons/DemonTechRifle","Weapon")
    DRGR J 3 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 3 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 3 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR K 0 A_CustomMissile("NemesisGuruBall",74,-28,0)	
    DRGR K 3 Bright A_CustomMissile("NemesisGuruBall",74,28,0)
	DRGR K 3 Bright A_PlaySoundEx("weapons/DemonTechRifle","Weapon")
    DRGR J 3 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 3 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR J 3 A_SpawnItem("TrueNemesisHellionSmokeSpawner")
	DRGR J 0 A_FaceTarget
    DRGR K 0 A_CustomMissile("NemesisGuruBall",74,-28,0)	
    DRGR K 3 Bright A_CustomMissile("NemesisGuruBall",74,28,0)
	DRGR K 3 Bright A_PlaySoundEx("weapons/DemonTechRifle","Weapon")
	DRGR KKKK 3 Bright
    Goto See
  BestAttack:		
    DRGR J 1 Bright A_FaceTarget
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_ChangeFlag(REFLECTIVE,1)
	DRGR J 0 A_SetInvulnerable
	DRGR J 0 A_PlaySound("NemesisRevenant/attack2")
	DRGR JJJJJJJJJJ 2 Bright A_FaceTarget
	DRGR J 2 Bright A_PlayWeaponSound("legendarycannon/charge")
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	DRGR J 0 A_FaceTarget
    DRGR J 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    DRGR J 0 A_UnSetInvulnerable	
	DRGR J 10 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("LegCannon/Fire2",6)
	TNT1 A 0 A_PlaySound("star/fire",1)
    DRGR K 0 A_CustomMissile("TrueLegendaryRevCannonBomb",65,-13,0)	
    DRGR K 15 A_CustomMissile("TrueLegendaryRevCannonBomb",65,13,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_ChangeFlag(REFLECTIVE,0)
	TNT1 A 0 A_PlaySound ("legendarycannon/steam",7)
    DRGR K 20 A_FaceTarget
    TNT1 A 0 A_Jump(156,"DashPunch","Railgun")
    TNT1 A 0 A_Jump(64,"SuperPlasma")
    Goto See
  Pain:
    TNT1 A 0 A_Jump(16,"Healing")
    TNT1 A 0 A_Jump(10,"Rage")
  	TNT1 A 0 A_Jump(22,"Teleport")
	TNT1 A 0 A_Jump(128,"PainMissile")
    DRGR L 3 Bright
    DRGR L 3 Bright A_Pain 
    Goto See
  PainMissile:
    TNT1 A 0 A_Jump(16,"Healing")
    DRGR L 3 Bright	
    DRGR L 3 Bright A_Pain
    Goto Missile
  Healing:
	TNT1 A 0 A_PlaySound("NemesisRevenant/see",1)
	TNT1 A 0 A_SetInvulnerable
    TNT1 A 0 A_Playsound("brain/spit",6,2.0,0,0.5)
	DRGR J 2 Bright HealThing(750)
	DRGR JJJJJJJJJJJJJJJJJJJJJJJ 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
	DRGR A 2 Bright
	Goto See
  Death:
	TNT1 A 0 A_StopSound(6)
	DRGR LLLLL 3 A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
    TNT1 A 0 A_PlaySound("weapons/dtech10kexplode")
	TNT1 A 0 A_SpawnItemEx("BlueDTech10KShockwave",0,0,15,0,0,0,0,128)
    TNT1 A 0 A_SpawnItem("BlueDTBFGEx",0,-10)
	TNT1 A 0 A_Scream
	TR3V AAABBBCCCDDDEEE 2 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_NoBlocking
	TR3V FFGGHH 3 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_ChangeFlag(BRIGHT,0)
	TR3V IJ 8
	TR3V K 17
	TR3V K -1
	Stop
	}
}

Actor INFZamasuRevenant : ZamasuRevenant
{
Tag "\c[s5]Zamasu Revenant\c-"
States
{
  Spawn:
    TNT1 A 0 A_Jump(150,"Remove")
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	DRGR A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    DRGR A 10 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("LegendaryRevenant",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

Actor ZamasuRevenantGhost
{
Scale 1.15
RENDERSTYLE Translucent
Alpha 0.75
+NOGRAVITY
+CLIENTSIDEONLY
+DONTSPLASH
+NOINTERACTION
+NOCLIP
+NOTIMEFREEZE
States
{
Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
    DRGR A 2 A_FadeOut(0.09)
    Loop
  Toaster:
    TNT1 A 0
	Stop		
    }
}