Actor NemesisRemilia : Mainyu
{
//Creator: Fluffy
//Origin: Nexus Infinity
//Sprite: XRE1 - XRE9, ZRE1 - ZRE9
//Title: "Nemesis Remilia"
Speed 7
FloatSpeed 7
Health 80000
ActiveSound "nemesisremilia/idle"
SeeSound "nemesisremilia/sight"
PainSound ""
Species "NemesisRemilia"
PainChance "Denied1", 255
PainChance "Denied2", 255
PainChance "Denied3", 255
Painchance "PlayerPyro", 128
DamageFactor "Mainyu", 0.0
DamageFactor "RST", 0.0
DamageFactor "HFCyb3r", 0.0
DamageFactor "C0mm4nder", 0.0
DamageFactor "PlayerPyro", 0.2
DamageFactor "TrueLegendaryDamage", 0.45
DamageFactor "TrueLegendaryPlayer", 0.45
DamageFactor 0.6
Obituary "%o stood no chance against \c[v9]Nemesis \c[p1]Remilia's\c- divine powers."
HitObituary "%o's was blasted to bits by \c[v9]Nemesis \c[p1]Remilia's\c- knuckles."
Tag "\c[v9]Nemesis \c[p1]Remilia\c-"
+FLOATBOB
-MISSILEMORE
-MISSILEEVENMORE
+NEVERFAST
MinMissileChance 2000
var int user_CheckPower;
var int user_concealed;
var int user_denied;
var int user_buffed;
var int user_resistant;
var int user_vexedupgrade;
var int user_mastertid;
var int user_fusion;
var int user_cooldown;
var int user_down;
States
{
  Spawn:
    TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,2)
	TNT1 A 0 A_Jump(164,2)
	TNT1 A 0 A_SetUserVar("user_vexedupgrade",1)
	TNT1 A 0 ACS_NamedExecuteAlways("NMAuraSpawner",0)
	TNT1 A 0 ThrustThingZ(0,2,0,1)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SetUserVar(user_mastertid,ACS_NamedExecuteWithResult("Hem_GetTID"))
	TNT1 A 0 Thing_ChangeTid(0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
	XRE1 ABC 4 A_Look
	TNT1 A 0 A_PlaySound("wings/flap")
	XRE1 DEFGH 4 A_Look
	TNT1 A 0 A_Stop
	TNT1 A 0 A_Jump(128,"Idle")
  Spawnloop:
    XRE1 ABC 4 A_Look //Ex(LOF_FULLVOLSEESOUND,0,0,0,360,"See")
	TNT1 A 0 A_PlaySound("wings/flap")
	XRE1 DEFGH 4 A_Look
    Loop
  Idle:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_NoGravity
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
    TNT1 A 0 A_ChangeFlag(NODAMAGE,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,0)
  IdleLoop:
    XRE1 AAAA 1 A_Wander
	TNT1 A 0 A_Look
	XRE1 BBBB 1 A_Wander
	TNT1 A 0 A_Look
	XRE1 CCCC 1 A_Wander
	TNT1 A 0 A_PlaySound("wings/flap")
	TNT1 A 0 A_Look
	XRE1 DDDD 1 A_Wander
	TNT1 A 0 A_Look
	XRE1 EEEE 1 A_Wander
	TNT1 A 0 A_Look
	XRE1 FFFF 1 A_Wander
	TNT1 A 0 A_Look
	XRE1 GGGG 1 A_Wander
	TNT1 A 0 A_Look
	XRE1 HHHH 1 A_Wander
	TNT1 A 0 A_Look
	Loop
  Remove:
    TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag(COUNTKILL, 0)
	TNT1 A 0
	Stop
  See:
    TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
    TNT1 A 0 A_ChangeFlag(NODAMAGE,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,0)
	TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,0)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 A_NoGravity
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(FLOAT,1)
	TNT1 A 0 A_Stop
	TNT1 A 0 A_SetTranslucent(1)
  SeeLoop:
    TNT1 A 0 A_JumpIf(user_music == 1,4)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2067)
	TNT1 A 0 ACS_NamedExecuteAlways("NRSky",0)
	TNT1 A 0 A_SetUserVar("user_music",1)
    TNT1 A 0 A_Jump(30,"Teleport","AltTeleport")
    XRE1 AA 1 A_Chase("Melee","")
	XRE1 AA 1 A_Chase
    XRE1 BB 1 A_Chase("Melee","")
	XRE1 BB 1 A_Chase
	TNT1 A 0 A_CheckSight(1)
	Goto Strafing2
	XRE1 CC 1 A_Chase("Melee","")
	XRE1 CC 1 A_Chase
	TNT1 A 0 A_PlaySound("wings/flap")
	XRE1 DD 1 A_Chase("Melee","")
	XRE1 DD 1 A_Chase
	TNT1 A 0 A_CheckSight(1)
	Goto Strafing3
	XRE1 EE 1 A_Chase("Melee","")
	XRE1 EE 1 A_Chase
	XRE1 FF 1 A_Chase("Melee","")
	XRE1 FF 1 A_Chase
	TNT1 A 0 A_CheckSight(1)
	Goto Strafing4
	XRE1 GG 1 A_Chase("Melee","")
	XRE1 GG 1 A_Chase
	XRE1 HH 1 A_Chase("Melee","")
	XRE1 HH 1 A_Chase
	TNT1 A 0 A_CheckSight(1)
	Goto Strafing
	TNT1 A 0 A_Jump(30,"Teleport","AltTeleport")
	Loop
  Strafing:
    XRE1 AAA 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 A 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 A 1 A_Chase
    XRE1 BBB 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 B 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 B 1 A_Chase
  Strafing2:
	XRE1 CCC 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 C 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 C 1 A_Chase
	TNT1 A 0 A_PlaySound("wings/flap")
	XRE1 DDD 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 D 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 D 1 A_Chase
  Strafing3:
	XRE1 EEE 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 E 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 E 1 A_Chase
	XRE1 FFF 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 F 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 F 1 A_Chase
  Strafing4:
	XRE1 GGG 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 G 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 G 1 A_Chase
	XRE1 HHH 1 A_Chase("Melee","")
	TNT1 A 0 A_Jump(75,3)
	XRE1 H 1 A_Chase("Melee","Missile",CHF_FASTCHASE)
	TNT1 A 0 A_Jump(256,2)
	XRE1 H 1 A_Chase
	Goto See
  Teleport:
    XRE3 H 1 A_UnSetShootable
	TNT1 A 0 A_Stop
	TNT1 A 0 ACS_NamedExecuteAlways("NMTripleSpeed",0)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaTeleportEffect",0,0,35)
	TNT1 A 0 A_SetTranslucent(1,1)
	XRE3 HIJKLM 2
	XRE3 MMMM 1 A_FadeOut(0.4,0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaTeleportEnd",0,0,35)
	XRE3 MMMM 1 A_FadeIn(0.4)
	XRE3 MLKJIH 2
	TNT1 A 0 A_SetTranslucent(1,0)
	XRE3 H 1 A_SetShootable
	Goto See
  AltTeleportAfraid:
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,1)
  AltTeleport:
    XRE3 H 1 A_UnSetShootable
	TNT1 A 0 A_Stop
	TNT1 A 0 ACS_NamedExecuteAlways("NMTripleSpeed",0)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaTeleportEffect",0,0,35)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeCubes",0)
	TNT1 A 0 ACS_NamedExecuteAlways("HideEffects",0)
	TNT1 A 0 A_SetTranslucent(1,1)
	XRE3 HIJKLM 2
	XRE3 MMMM 1 A_FadeOut(0.4,0)
	TNT1 A 0 A_SetUserVar("user_concealed",1)
	TNT1 A 0 A_SetUserVar("user_teleloop",random(0,100))
  AltTeleportLoop:
    TNT1 A 0 A_JumpIf(user_teleloop >= 300,"AltTeleportEnd")	 
	TNT1 A 0 A_SetUserVar("user_teleloop",user_teleloop+1)
	TNT1 AAA 0 A_Chase("AltTeleportEnd","",CHF_NOPLAYACTIVE)
	XRE0 A 1 A_Chase("AltTeleportEnd","",CHF_NOPLAYACTIVE)
	Loop
  AltTeleportEnd:
    TNT1 A 0 A_ChangeFlag(FRIGHTENED,0)
	TNT1 A 0 A_SetUserVar("user_concealed",0)
	TNT1 A 0 ACS_NamedExecuteAlways("ShowEffects",0)
	XRE3 M 1 A_SpawnItemEx("NemesisRemiliaTeleportEnd",0,0,35)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
	XRE3 MMMM 1 A_FadeIn(0.4)
	XRE3 MLKJIH 2
	TNT1 A 0 A_SetTranslucent(1,0)
	XRE3 H 1 A_SetShootable
	Goto See
  Missile:
	TNT1 A 0 A_JumpIf(user_cooldown == 1,2)
    TNT1 A 0 A_JumpIfCloser(350,"ChargeMelee")
	TNT1 A 0 A_JumpIf(user_buffed == 1,2)
	TNT1 A 0 A_Jump(20,"ActivateBuff")
	TNT1 A 0 A_Jump(35,"Nuke","ActivateDebuff")
	TNT1 A 0 A_JumpIf(user_denied >= 6,2)
	TNT1 A 0 A_Jump(65,"Elementalist")
    TNT1 A 0 A_Jump(255,"Lasers","Dodge","MeleeThrust","Attack","ChargeAttack")
	Goto MeleeThrust
  ActivateDebuff:
    TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_SetInvulnerable
	XRE4 A 10 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_PlaySound("nemesisremilia/startdebuff",CHAN_BODY,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  DebuffPrepare:
    TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_JumpIf(user_missile >= 12,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  DebuffDetectLoop:
    XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Chase("","",CHF_NOPLAYACTIVE|CHF_DONTMOVE)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIfTargetInLOS("GiveDebuff")
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Chase("","",CHF_NOPLAYACTIVE|CHF_DONTMOVE)
	XRE4 BBB 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 5,"DebuffCancel")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_JumpIfTargetInLOS("GiveDebuff")
	TNT1 A 0 A_GiveToTarget("NDefilerMindfuckHeart")
	Loop
  DebuffCancel:
    TNT1 A 0 A_UnSetInvulnerable
	XRE4 P 10 A_ChangeFlag(NOPAIN,0)
	Goto See
  GiveDebuff:
    TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
    XRE4 CCCCC 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Radius_Quake(6,40,0,24,0)
    TNT1 A 0 A_PlaySound("nemesisremilia/detect",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_FaceTarget(45)
	TNT1 A 0 A_SpawnItemEx("NRDebuffEffect",0,0,35,2)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  GiveDebuffLoop:
    XRE4 DDD 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 10,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	TNT1 A 0 A_GiveToTarget("NRemDebuff")
	XRE4 EEE 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 FFF 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 GGGGG 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 HHHHH 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_PlaySound("monster/ambientfire",5,1.0,1)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  GiveDebuffLoop2:
    XRE4 IIIII 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 JJJJJ 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE4 KKKKK 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 3,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	XRE4 LM 5
	TNT1 A 0 A_StopSound(5)
	TNT1 A 0 A_UnSetInvulnerable
	XRE4 N 17 A_ChangeFlag(NOPAIN,0)
	XRE4 O 30
	Goto See
  ActivateBuff:
    TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_SetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
    TNT1 A 0 A_PlaySound("nemesisremilia/buffup",7)
    TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 AAA 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 AA 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 BBB 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 BB 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 CCC 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 CC 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 DDD 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 DD 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  ActivateBuffloop:
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 EE 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 EE 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 FF 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 FF 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 GG 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 GG 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_JumpIf(user_missile >= 1,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
    TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_Jump(255,"HealBuff","ProtectionBuff","SpeedBuff")
	Goto See
  HealBuff:
	TNT1 A 0 A_PlaySound("nemesisremilia/heal",CHAN_ITEM,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("NMRecoveryEffect")
	TNT1 A 0 ACS_NamedExecuteAlways("NMNemesisBuff",0,1)
	TNT1 A 0 A_SpawnItemEx("NMSparkleSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	Goto FinishBuff
  ProtectionBuff:
    TNT1 A 0 A_PlaySound("nemesisremilia/protection",CHAN_ITEM,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("NMGlitterSpawner")
	TNT1 A 0 ACS_NamedExecuteAlways("NMNemesisBuff",0,2)
	TNT1 A 0 A_SpawnItemEx("NMConstantWhiteShield",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	Goto FinishBuff
  SpeedBuff:
    TNT1 A 0 A_PlaySound("nemesisremilia/speed",CHAN_ITEM,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaBuffLightning")
	TNT1 A 0 ACS_NamedExecuteAlways("NMNemesisBuff",0,3)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaSpeedRing",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	Goto FinishBuff	
  FinishBuff:
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 EE 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 EE 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 FF 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 FF 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 GG 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE7 GG 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_JumpIf(user_missile >= 2,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	XRE7 HCBA 6
	Goto See
  Dodge:
    XRE1 A 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_SetUserVar(user_missile,0)
    TNT1 A 0 A_jump(128,"DodgeRight")
	TNT1 A 0 ThrustThing(angle*256/360+192, 20, 0, 0)
	Goto ContinueDodgeLoop
  DodgeRight:
	TNT1 A 0 ThrustThing(angle*256/360+64, 20, 0, 0)
  ContinueDodgeLoop:
    XRE1 A 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaDodgeGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAAA 0 A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,128)
	TNT1 A 0 A_JumpIf(user_missile >= 20,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,5))
	Loop
  Attack:
    XRE1 A 1 A_FaceTarget
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_PlaySound("Glyph/Start",CHAN_BODY)
	XRE3 ABCDE 4 Bright A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(128,"DarkestMatter","BigBalls","PortalProjectiles","WhiteProjectile","SkullShot")
  Normal:
	XRE3 FFFGGGFFFGGGFFFGGGFFFGGGFFF 1 Bright A_CustomMissile("MainyuHornRodFX",30,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	Goto See
  SkullShot:
    XRE3 FGFGFGFGFFGFGFGFGF 3 Bright A_CustomMissile("NemesisExileSkullShot",30,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	Goto See
  WhiteProjectile:
    TNT1 A 0 A_PlayWeaponSound("Mainyu/Sword")
	TNT1 A 0 A_CustomMissile("MainyuSwordProjectile",30)
	XRE3 FFF 5 Bright A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE3 F 15
	Goto See
  PortalProjectiles:
    TNT1 A 0 A_Jump(92,"PortalProjectileBig")
	XRE3 FFFGGGFFFGGGFFFGGG 1 Bright A_CustomMissile("MainyuPortalProjectile",30,0,random(-15,15),CMF_OFFSETPITCH,random(-4,4))
	TNT1 A 0 A_JumpIf(user_missile >= 4,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Goto PortalProjectiles+1
  PortalProjectileBig:
    XRE3 FFGG 4 Bright A_CustomMissile("MainyuPortalProjectileBig",30,0,random(-25,25),CMF_OFFSETPITCH,random(-4,4))
	TNT1 A 0 A_JumpIf(user_missile >= 4,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  DarkestMatter:
    XRE3 FGF 10 Bright A_CustomMissile("ActualDarkMatter",30,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	TNT1 A 0 A_CheckSight("See")
	XRE3 GFG 10 Bright A_CustomMissile("ActualDarkMatter",30,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	Goto See
  BigBalls:
    XRE3 FGF 10 Bright A_CustomMissile("NemesisCyberBigBall",30,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	TNT1 A 0 A_CheckSight("See")
	XRE3 GFG 10 Bright A_CustomMissile("NemesisCyberBigBall",30,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	Goto See
  MeleeThrustInsane:
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
  MeleeThrust:
    TNT1 A 0 A_JumpIf(user_cooldown == 1,"Dodge")
    TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,1)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	TNT1 A 0 A_SetUserVar(user_missile,1)
    TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_FaceTarget
	XRE5 A 1 Bright A_Skullattack(user_missile)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaChargeGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
  MeleeThrustLoop:
    TNT1 A 0 A_JumpIf(user_missile >= 200,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+2)
    TNT1 A 0 A_FaceTarget
	XRE5 A 1 Bright A_Skullattack(user_missile) //honestly this is kinda cursed
	TNT1 AAAAA 0 A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,128)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaChargeGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_CheckSight("See")
	Loop
  ChargeMelee2:
    TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
    TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,20,1,1)
	TNT1 A 0 A_Recoil(-80)
	Goto Melee+2
  ChargeMelee:
    TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,20,1,1)
	TNT1 A 0 A_Recoil(-80)
  Melee:
    TNT1 A 0 A_JumpIf(user_cooldown == 1,"Dodge")
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,0)
	TNT1 A 0 A_UnSetInvulnerable
    XRE5 B 7 Fast A_PlaySound("nemesisremilia/whoosh",7)
	TNT1 A 0 A_CustomMeleeAttack(random(110,250),"nemesisremilia/punch","none","NemesisRemilia")
	XRE5 CDEFG 3 Fast
	TNT1 A 0 A_JumpIfCloser(300,"Melee2")
	Goto See
  Melee2:
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	TNT1 A 0 A_Recoil(-40)
	XRE5 H 5 Fast A_PlaySound("nemesisremilia/whoosh",7)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	XRE5 I 2 Fast A_Recoil(-40)
	XRE5 J 7 Fast A_CustomMeleeAttack(random(110,250),"nemesisremilia/punch","none","NemesisRemilia")
	XRE5 K 6 Fast
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_Jump(80,"SuperMelee2")
    TNT1 A 0 A_JumpIfCloser(300,"ContinueMelee2")
  ContinueMelee:
    TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	TNT1 A 0 A_Recoil(-40)
	XRE5 H 5 Fast A_PlaySound("nemesisremilia/whoosh",7)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	XRE5 I 2 Fast A_Recoil(-40)
	XRE5 J 7 Fast A_CustomMeleeAttack(random(110,250),"nemesisremilia/punch","none","NemesisRemilia")
	XRE5 K 6 Fast
	TNT1 A 0 A_CheckSight("See")
    TNT1 A 0 A_Jump(80,"SuperMelee2")
    TNT1 A 0 A_JumpIfCloser(300,"ContinueMelee2")
	Goto See
  ContinueMelee2:
    TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	TNT1 A 0 A_Recoil(-40)
    XRE5 B 7 Fast A_PlaySound("nemesisremilia/whoosh",7)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	TNT1 A 0 A_Recoil(-40)
	TNT1 A 0 A_CustomMeleeAttack(random(110,250),"nemesisremilia/punch","none","NemesisRemilia")
	XRE5 CDEFG 3 Fast
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_Jump(80,"SuperMelee")
	TNT1 A 0 A_JumpIfCloser(300,"ContinueMelee")
	Goto See
  SuperMelee:
    TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	TNT1 A 0 A_Recoil(-40)
	XRE5 H 5 Fast A_PlaySound("nemesisremilia/whoosh",7)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	XRE5 I 2 Fast A_Recoil(-40)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaHitEffect",0,0,35)
	XRE5 J 7 Fast A_VileAttack("nemesisremilia/bigpunch",Random(150,350),0,100,random(3,4),"NemesisRemilia")
	XRE5 K 15 Fast
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 ACS_NamedExecuteAlways("NRAttackCooldown",0,10)
	Goto See
  SuperMelee2:
    TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	TNT1 A 0 A_Recoil(-40)
    XRE5 B 7 Fast A_PlaySound("nemesisremilia/whoosh",7)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 ThrustThingZ(0,5,1,1)
	TNT1 A 0 A_Recoil(-40)
	TNT1 A 0 A_VileAttack("nemesisremilia/bigpunch",Random(150,350),0,100,random(3,4),"NemesisRemilia")
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaHitEffect",0,0,35)
	XRE5 CDEFG 3 Fast
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 ACS_NamedExecuteAlways("NRAttackCooldown",0,10)
	Goto See
  Lasers:
	TNT1 A 0 A_PlaySound("MReimu/Cast1")
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaCastEffect1")
	XRE3 ABCDE 4 Bright
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Playsound("superlaser",7,1,0,ATTN_NONE)
	XRE3 F 2 A_CustomMissile("NemesisRemiliaRailLaser",38,0,user_missile)
  LaserLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 360,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+10)
	TNT1 A 0 A_CustomMissile("NemesisRemiliaRailLaser",38,0,user_missile*-1)
	XRE3 F 2 Bright A_CustomMissile("NemesisRemiliaRailLaser",38,0,user_missile)
	Loop
  ChargeAttack:
    //TNT1 A 0 A_SetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
    XRE3 AB 5
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 Radius_Quake(5,60,0,24,0)
	TNT1 A 0 A_PlaySound("nemesisremilia/buffup",7)
  ChargeLoop:
    TNT1 A 0 A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	XRE3 CCC 1 Bright A_SpawnItemEx("ArmorParticleWhite",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_JumpIf(user_missile >= 13,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	//TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	XRE3 DE 5 Bright A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(90,"NemesisBFG")
  MiniNemesisBFG:
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_PlaySound("FantasyStaff/Fire2",7,1.0,0,0.2)
    TNT1 A 0 A_PlaySound("FantasyStaff/Meltdown",6,1.0,0,0.2)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,-90)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,90)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,-45)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,45)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,0)
	XRE3 FFFFFFF 5 Bright A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_PlaySound("FantasyStaff/Fire2",7,1.0,0,0.2)
    TNT1 A 0 A_PlaySound("FantasyStaff/Meltdown",6,1.0,0,0.2)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,-30)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,30)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,-15)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,15)
	TNT1 A 0 A_CustomMissile("MiniNemesisBFGBall",38,0,0)
	XRE3 FFFFFF 5 Bright A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	Goto See
  NemesisBFG:
    TNT1 A 0 A_PlaySound("NemesisBFG/Fire",1)
    TNT1 A 0 A_CustomMissile("NemesisGuruBall",30,0,0)
	XRE3 FFFFFFF 5 Bright A_SpawnItem("WhiteRageFlameSpawner",0,0,0,0)
	Goto See
  Nuke:
    TNT1 A 0 A_JumpIf(user_fusion > 0,"Attack")
	XRE2 A 1 Bright A_Stop
	TNT1 A 0 A_SetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeCubes",0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_PlaySound("nemesisremilia/attack",2,1.0,FALSE,ATTN_NONE)
    XRE2 AAAAAA 1 Bright A_SpawnItemEx("NemesisRemiliaParticle",random(60,80),0,random(0,64),frandom(-3,-1),0,0,random(0,360))
	TNT1 A 0 A_PlaySound("Arcradimus/BFGCharge",7)
	TNT1 A 0 A_PlaySound("nemesisremilia/bigballaura",6)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaBallChargingWarp",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	XRE2 BBBBBB 1 Bright A_SpawnItemEx("NemesisRemiliaParticle",random(60,80),0,random(0,64),frandom(-3,-1),0,0,random(0,360))
	XRE2 CCCCCC 1 Bright A_SpawnItemEx("NemesisRemiliaParticle",random(60,80),0,random(0,64),frandom(-3,-1),0,0,random(0,360))
	XRE2 DDDDDD 1 Bright A_SpawnItemEx("NemesisRemiliaParticle",random(60,80),0,random(0,64),frandom(-3,-1),0,0,random(0,360))
  NukeChargeLoop:
	XRE2 EEEEEE 1 Bright A_SpawnItemEx("NemesisRemiliaParticle",random(60,80),0,random(0,64),frandom(-3,-1),0,0,random(0,360))
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-600,600),Random(-600,600),0,0,0,0,0,0,192)
	XRE2 FFFFFF 1 Bright A_SpawnItemEx("NemesisRemiliaParticle",random(60,80),0,random(0,64),frandom(-3,-1),0,0,random(0,360))
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-600,600),Random(-600,600),0,0,0,0,0,0,192)
	XRE2 GGGGGG 1 Bright A_SpawnItemEx("NemesisRemiliaParticle",random(60,80),0,random(0,64),frandom(-3,-1),0,0,random(0,360))
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-600,600),Random(-600,600),0,0,0,0,0,0,192)
	TNT1 A 0 A_JumpIf(user_missile >= 100,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+10)
	Loop
	XRE2 HIJ 6 Bright
	XRE2 K 9
	TNT1 A 0 Radius_Quake(6,34,0,24,0)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeBall",0)
	TNT1 A 0 A_CustomMissile("NemesisRemiliaBall",120,0,0,0)
	XRE2 LMN 3 Bright
	TNT1 A 0 A_SetUserVar("user_fusion",user_fusion+30)
	TNT1 A 0 ACS_NamedExecuteAlways("FusionCooldownTimer",0)
	XRE2 O 10 Bright
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
	XRE2 PQR 8
	Goto See
  Elementalist:
	TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_SetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
    TNT1 A 0 A_Jump(255,"CallHFCyber","CallHeresiarch","CallCerebralCommander","CallCorruptedCardinal")
	Goto See
  CallHFCyber:
    CRE3 A 1 A_Stop
	CRE3 A 6 A_PlaySound("nemesisremilia/attack",2,1.0,FALSE,ATTN_NONE)
	CRE3 B 6 A_PlaySound("nemesisremilia/firecharge",7)
	CRE3 CC 4 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("HFCGhost1",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 Radius_Quake(5,60,0,24,0)
	CRE3 CCCCCCCCCCCCCCCCC 4 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_resistant == 1,2)
    TNT1 A 0 A_Jump(60,"Denied1")
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_Jump(128,"FireDodge")
	CRE3 DD 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	CRE3 EE 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"PyroShot","ForgottenOnes","FireRandom")
	Goto See
  CallHeresiarch:
    YRE3 A 1 A_Stop
	YRE3 A 6 A_PlaySound("nemesisremilia/attack",2,1.0,FALSE,ATTN_NONE)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/magiccharge")
	YRE3 B 6 A_PlaySound("nemesisremilia/firecharge",7)
	YRE3 CC 4 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("HereGhost1",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 Radius_Quake(5,60,0,24,0)
	YRE3 CCCCCCCCCCCCCCCCC 4 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_resistant == 1,2)
    TNT1 A 0 A_Jump(60,"Denied2")
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_Jump(128,"MagicDodge")
	YRE3 DDEE 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"BouncyComets","DarkMatter","MagicLaser","Nemesis")
	Goto See
  CallCerebralCommander:
    YRE3 A 1 A_Stop
	YRE3 A 6 A_PlaySound("nemesisremilia/attack",2,1.0,FALSE,ATTN_NONE)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/magiccharge")
	YRE3 B 6 A_PlaySound("nemesisremilia/firecharge",7)
	YRE3 CC 4 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("CerebralGhost1",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 Radius_Quake(5,60,0,24,0)
	YRE3 CCCCCCCCCCCCCCCCC 4 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_resistant == 1,2)
    TNT1 A 0 A_Jump(60,"Denied3")
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_Jump(128,"MagicDodge2")
	YRE3 DDEE 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"SummonManipulator","Antimatter","PurpleDBFGTeleportSpam","PurplePyroShot")
	Goto See
  CallCorruptedCardinal:
    ZRE3 A 1 A_Stop
	ZRE3 A 6 Bright A_PlaySound("nemesisremilia/attack",2,1.0,FALSE,ATTN_NONE)
	ZRE3 B 6 Bright A_PlaySound("nemesisremilia/dbfgcharge",7)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 CC 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 CC 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 CC 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 CC 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorCardGhost1",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 Radius_Quake(5,60,0,24,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  CorruptedChargeLoop:
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 CC 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_JumpIf(user_missile >= 29,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
    TNT1 A 0 A_Jump(60,"Denied4")
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_Jump(128,"BlueDodge")
    ZRE3 DDD 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 DDD 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 EEE 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 EEE 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"DBFG","DBFG10kBalls","BlueLaser")
	Goto See
  Denied1:
    TNT1 A 0 A_SpawnItemEx("HFCGhost2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar(user_denied,user_denied+1)
	CRE3 CCCCCC 4 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	CRE3 CCCCCCCCCCCCC 4 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	Goto See
  Denied2:
    TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_SpawnItemEx("HereGhost2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar(user_denied,user_denied+1)
	YRE3 CCCCCCCC 4 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	YRE3 CCCCCCCCCCCCC 4 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	Goto See
  Denied3:
    TNT1 A 0 A_SpawnItemEx("CerebralGhost2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar(user_denied,user_denied+1)
	YRE3 CCCCCCCCC 4 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 C 1 Bright A_UnSetShootable
	XRE1 I 1 A_Playsound("nemesisremilia/pain", 2, 1.0, 0, ATTN_NONE)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeCubes",0)
	TNT1 A 0 ACS_NamedExecuteAlways("HideEffects",0)
	TNT1 A 0 A_SetUserVar("user_concealed",1)
	TNT1 A 0 ACS_NamedExecuteAlways("NMTripleSpeed",0)
	XRE1 IIIIIIII 1 A_FadeOut(0.2,0)
	TNT1 A 0 A_StopSound(2)
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,1)
	TNT1 A 0 A_SetUserVar("user_teleloop",random(0,150))
  VoidLoop:
	TNT1 A 1 A_Chase("","",CHF_NOPLAYACTIVE)
	TNT1 A 0 A_JumpIf(user_teleloop >= 300,2)	 
	TNT1 A 0 A_SetUserVar("user_teleloop",user_teleloop+1)
	Loop
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,0)
	XRE1 I 13 A_SpawnItemEx("CerebralGhost3",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_SetUserVar("user_concealed",0)
	TNT1 A 0 ACS_NamedExecuteAlways("ShowEffects",0)
	XRE1 I 100
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
	Goto See
  Denied4:
    TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_SpawnItemEx("CorCardGhost2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar(user_denied,user_denied+1)
	ZRE3 CCCCCCCCCCCCCCCCC 4 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	ZRE3 CCCCCCCCCCCCC 4 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	Goto See
  BlueDodge:
	TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_jump(128,3)
	TNT1 A 0 ThrustThing(angle*256/360+192, 20, 0, 0)
	TNT1 A 0 A_jump(255,2)
    TNT1 A 0 ThrustThing(angle*256/360+64, 20, 0, 0)
  BlueDodgeLoop:
    ZRE3 C 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaDodgeGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_JumpIf(user_missile >= 12,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,3))
	Loop
	ZRE3 DDD 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 DDD 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 EEE 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 EEE 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"DBFG","DBFG10kBalls","BlueLaser")
	Goto See
  FireDodge:
	TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_jump(128,3)
	TNT1 A 0 ThrustThing(angle*256/360+192, 20, 0, 0)
	TNT1 A 0 A_jump(255,2)
    TNT1 A 0 ThrustThing(angle*256/360+64, 20, 0, 0)
  FireDodgeLoop:
    CRE3 C 1 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaDodgeGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,3))
	TNT1 A 0 A_JumpIf(user_missile >= 12,1)
	Loop
	CRE3 DD 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	CRE3 EE 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"PyroShot","ForgottenOnes","FireRandom")
	Goto See
  MagicDodge:
	TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_jump(128,3)
	TNT1 A 0 ThrustThing(angle*256/360+192, 20, 0, 0)
	TNT1 A 0 A_jump(255,2)
    TNT1 A 0 ThrustThing(angle*256/360+64, 20, 0, 0)
  MagicDodgeLoop:
    YRE3 C 1 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaDodgeGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,3))
	TNT1 A 0 A_JumpIf(user_missile >= 12,1)
	Loop
	YRE3 DD 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 EE 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"BouncyComets","DarkMatter","MagicLaser","Nemesis")
	Goto See
  MagicDodge2:
	TNT1 A 0 A_PlaySound("elite/charge",6)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_jump(128,3)
	TNT1 A 0 ThrustThing(angle*256/360+192, 20, 0, 0)
	TNT1 A 0 A_jump(255,2)
    TNT1 A 0 ThrustThing(angle*256/360+64, 20, 0, 0)
  MagicDodgeLoop:
    YRE3 C 1 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaDodgeGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,3))
	TNT1 A 0 A_JumpIf(user_missile >= 12,1)
	Loop
	YRE3 DD 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 EE 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_Jump(255,"SummonManipulator","Antimatter","PurpleDBFGTeleportSpam","PurplePyroShot")
	Goto See
  DBFG:
    ZRE3 F 1 Bright A_CustomMissile("T3DBFGBall",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("Weapons/dbfgfire")
	ZRE3 FFFFFFFFFFF 2 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 6,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,2))
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	ZRE3 A 0 A_Stop
	ZRE3 F 2 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 A 0 A_FadeOut(0.4,0)
	ZRE3 F 2 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 A 0 A_FadeOut(0.4,0)
	ZRE3 F 2 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 A 0 A_FadeOut(0.4,0)
	ZRE3 F 2 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 F 1 Bright A_UnSetShootable
	TNT1 A 0 ACS_NamedExecuteAlways("NMTripleSpeed",0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ZRE3 F 1 Bright A_faceTarget
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	ZRE3 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(128,3)
	TNT1 A 0 ThrustThing(angle*256/360+192, 40, 0, 0)
	TNT1 A 0 A_Jump(256,2)
	TNT1 A 0 ThrustThing(angle*256/360+64, 40, 0, 0)
	ZRE3 F 1 Bright A_SetShootable
	TNT1 A 0 A_CheckSight("See")
	ZRE3 FFF 2 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	Loop
  DBFG10kBalls:
    TNT1 A 0 A_Jump(128,"DBFG10kBallsSpam")
    TNT1 A 0 A_CustomMissile("T3DBFG10KBall",30,0,0)
	TNT1 A 0 A_CustomMissile("T3DBFG10KBall",30,0,-45)
	TNT1 A 0 A_CustomMissile("T3DBFG10KBall",30,0,45)
	ZRE3 F 1 Bright A_PlaySound("Weapons/dbfgfire2")
	ZRE3 FFFFFFFFFF 3 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	Goto See
  DBFG10kBallsSpam:
    TNT1 A 0 A_CustomMissile("T3DBFG10KBall",30,0,0)
	ZRE3 F 1 Bright A_PlaySound("Weapons/dbfgfire2")
  DBFG10kBallsSpamLoop:
    ZRE3 F 1 Bright A_UnSetShootable
	TNT1 A 0 ACS_NamedExecuteAlways("NMTripleSpeed",0)
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_SetUserVar("user_concealed",1)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeCubes",0)
    ZRE3 FFFFFFFFFFF 1 Bright A_FadeOut(0.1,0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ZRE3 F 20
	ZRE3 F 1 A_PlayWeaponSound("boss/teleport")
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SetUserVar("user_concealed",0)
	ZRE3 FFFFFFFFFFF 1 Bright A_FadeIn(0.1)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_CheckSight("See")
	ZRE3 F 1 Bright A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_CustomMissile("T3DBFG10KBall2",30,0,0)
	ZRE3 F 1 Bright A_PlaySound("Weapons/dbfgfire2")
	TNT1 A 0 A_JumpIf(user_missile >= 6,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,2))
	Loop
  BlueLaser:
	TNT1 A 0 A_SpawnItemEx("CorCardGhost3",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
  BlueLaserLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 24,"See")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
	TNT1 A 0 A_CustomMissile("LaserBeam",116,6,0,0)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 F 2 Bright A_CustomMissile("LaserBeam",116,-6,0,0)
	TNT1 A 0 A_CustomMissile("LaserBeam",116,6,0,0)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	ZRE3 F 2 Bright A_CustomMissile("LaserBeam",116,-6,0,0)
	Loop
  SummonManipulator:
    TNT1 A 0 A_Stop
    YRE3 F 1 Bright A_FaceTarget
    TNT1 A 0 A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_CustomMissile("CommanderPulse",29)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30)
	YRE3 F 3 Bright A_SpawnItemEx("Manipulator",0,0,0,0,0,0,random(-300,300),SXF_NOCHECKPOSITION|SXF_SETMASTER)
	YRE3 GGG 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	Goto See
  Antimatter:
	YRE3 F 1 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
    TNT1 A 0 A_JumpIf(user_missile >= 40,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
    TNT1 A 0 A_Jump(255,1,2)
	YRE3 F 1 Bright A_CustomMissile("CommanderAntiMatterMissile",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto Antimatter
	YRE3 F 1 Bright A_CustomMissile("CommanderPlasmaBlast",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto Antimatter
  PurpleDBFGTeleportSpam:
	YRE3 F 1 Bright A_CustomMissile("PurpleDBFGBall",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("Weapons/dbfgfire")
	YRE3 FFFFFFFFFFF 2 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 6,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+random(1,2))
	TNT1 A 0 A_SpawnItemEx("ManpTeleportFXSpawner",0,0,35)
	YRE3 A 0 A_Stop
	YRE3 F 2 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 A 0 A_FadeOut(0.4,0)
	YRE3 F 2 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 A 0 A_FadeOut(0.4,0)
	YRE3 F 2 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 A 0 A_FadeOut(0.4,0)
	YRE3 F 2 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 F 1 Bright A_UnSetShootable
	TNT1 A 0 ACS_NamedExecuteAlways("NMTripleSpeed",0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	YRE3 F 1 Bright A_faceTarget
	TNT1 A 0 A_SpawnItemEx("ManpTeleportFXSpawner",0,0,35)
	YRE3 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(128,3)
	TNT1 A 0 ThrustThing(angle*256/360+192, 40, 0, 0)
	TNT1 A 0 A_Jump(256,2)
	TNT1 A 0 ThrustThing(angle*256/360+64, 40, 0, 0)
	YRE3 F 1 Bright A_SetShootable
	TNT1 A 0 A_CheckSight("See")
	YRE3 FFF 2 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	Loop
  PurplePyroShot:
	TNT1 A 0 A_CustomMissile("PatriarchCommanderPyroShot",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/pyro")
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 FF 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 GGGG 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
    TNT1 A 0 A_CustomMissile("PatriarchCommanderPyroShot",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/pyro")
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 FF 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 GGGG 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_CustomMissile("PatriarchCommanderPyroShot",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/pyro")
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 FF 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	YRE3 GGGG 3 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	Goto See
  Nemesis:
    TNT1 A 0 A_PlaySound("Nemesis/FireBall",6,1.0,0,ATTN_NONE)
	TNT1 A 0 A_CustomMissile("NemesisAltBallMonster",30,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 FG 5
	Goto See
  MagicLaser:
    YRE3 F 1 Bright A_CustomMissile("HeresiarchLaserBeam",30,0,0,CMF_TRACKOWNER|CMF_CHECKTARGETDEAD)
	YRE3 F 1 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
    TNT1 A 0 A_JumpIf(user_missile >= 35,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  DarkMatter:
	YRE3 F 1 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
    TNT1 A 0 A_JumpIf(user_missile >= 60,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
    TNT1 A 0 A_Jump(255,1,2)
	YRE3 F 1 Bright A_CustomMissile("HeresiarchDarkMatter",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto DarkMatter
	YRE3 F 1 Bright A_CustomMissile("HeresiarchDarkMatterHoming",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto DarkMatter
  BouncyComets:
	TNT1 AA 0 A_CustomMissile("ArcradimusSeekerComet",30,0,random(-8,8),CMF_TRACKOWNER|CMF_OFFSETPITCH,frandom(-2.0,2.0))
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 FFF 1 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 AA 0 A_CustomMissile("ArcradimusSeekerComet",30,0,random(-8,8),CMF_TRACKOWNER|CMF_OFFSETPITCH,frandom(-2.0,2.0))
	TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,30,0,0,0,0,0,128)
	YRE3 GGG 1 Bright A_SpawnItem("NMPurpleRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 16,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  PyroShot:
	TNT1 A 0 A_CustomMissile("RSTPyroShot",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/pyro")
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	CRE3 FF 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	CRE3 GGGG 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
    TNT1 A 0 A_CustomMissile("RSTPyroShot",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/pyro")
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	CRE3 FF 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	CRE3 GGGG 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_CustomMissile("RSTPyroShot",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/pyro")
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	CRE3 FF 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	CRE3 GGGG 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	Goto See
  ForgottenOnes:
    TNT1 A 0 A_CustomMissile("ForgottenOneBomb",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
    CRE3 F 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	TNT1 A 0 A_JumpIf(user_missile >= 40,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
    TNT1 A 0 A_CustomMissile("PyroShot",30,0,0)
	TNT1 A 0 A_PlayWeaponSound("nemesisremilia/pyro")
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
	CRE3 FF 3 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	Goto See
  FireRandom:
	CRE3 F 1 Bright A_SpawnItem("NMRageFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,30,0,0,0,0,0,128)
    TNT1 A 0 A_JumpIf(user_missile >= 80,"See")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
    TNT1 A 0 A_Jump(255,1,2,3,4,5)
	CRE3 F 1 Bright A_CustomMissile("LavaBall",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4)) //,30,0,0)
	Goto FireRandom
	CRE3 F 1 Bright A_CustomMissile("HFCyberFireBalls",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto FireRandom
	CRE3 F 1 Bright A_CustomMissile("IComet",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto FireRandom
	CRE3 F 1 Bright A_CustomMissile("CyberSeekingComet",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto FireRandom
	CRE3 F 1 Bright A_CustomMissile("HFCyberMiniFireBall",30,0,random(-8,8),CMF_OFFSETPITCH,frandom(-4,4))
	Goto FireRandom
  Pain.PlayerPyro:
    //vexedjump
	TNT1 A 0 ThrustThing(angle*256/128,random(30,40))
	TNT1 A 0 A_JumpIf(user_resistant == 1,"pain")
    TNT1 A 0 ThrustThingZ(0,35,0,0)
	Goto StartFall
  Pain.Denied3:
    XRE1 IIIIIIII 0 A_FadeIn(0.2)
	TNT1 A 0 ThrustThing(Random(0,360),random(60,90))
	Goto StartFall
  Pain.Denied2:
    TNT1 A 0 ThrustThingZ(0,35,0,0)
	TNT1 A 0 ThrustThing(angle*256/360,random(30,40))
    Goto StartFall
  Pain.Denied1:
    TNT1 A 0 ThrustThingZ(0,35,0,0)
	TNT1 A 0 ThrustThing(Random(0,360),random(15,20))
  StartFall:
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_ChangeFlag(NOGRAVITY,0)
	TNT1 A 0 A_ChangeFlag(FLOAT,0)
	TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,1)
    TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
    XRE1 I 4 A_Playsound("nemesisremilia/pain", 2, 1.0, 0, ATTN_NONE)
	TNT1 A 0 ACS_NamedExecuteAlways("DestroyCubes",0)
	TNT1 A 0 ACS_NamedExecuteAlways("HideEffects",0)
	XRE1 KKKKKKKKKK 1 A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 ACS_NamedExecuteAlways("CheckVelocityForNM",0,1)
  FallLoop:
	XRE1 K 1 A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	Wait
  FallX2:
    TNT1 A 0 ThrustThingZ(0,frandom(35,45),0,0)
	TNT1 A 0 A_PlaySound("nemesisremilia/bodyfall",7)
	XRE1 OOOOOOOOOO 1 A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 ACS_NamedExecuteAlways("CheckVelocityForNM",0,2)
  FallX2Loop:
    TNT1 A 0 A_SetUserVar("user_down",1)
	XRE1 O 1 A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	Wait
  FinishFall:
    TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
    XRE1 P 75 A_PlaySound("nemesisremilia/bodyfall",7)
  Resurrect:
	TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
	TNT1 A 0 A_ChangeFlag(FLOAT,1)
	TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,0)
	TNT1 A 0 ThrustThingZ(0,6,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaResurrect")
	TNT1 A 0 A_PlaySound("nemesisremilia/stand",7,1.0,0,ATTN_NONE)
	TNT1 A 0 ACS_NamedExecuteAlways("ShowEffects",0)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SetUserVar("user_down",0)
	XRE1 RRRRRRRRRRRRRRRRRRRR 1 A_SpawnItemEx("NemesisRemiliaParticle",Random(-2,2),Random(-2,2),Random(-2,2),Random(-6,6),Random(-6,6),Random(6,12),Random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
	XRE1 SSSSSSSSSSSSTTTTT 1 A_SpawnItemEx("NemesisRemiliaParticle",Random(-2,2),Random(-2,2),Random(-2,2),Random(-6,6),Random(-6,6),Frandom(2,4),Random(0,360),0,32)
	XRE1 T 7
	XRE1 U 12
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  Pain.PlayerDBFG10K2:
  Pain.DBFG10K2:
  Pain.DBFG:
  Pain.PlayerDBFG:
  Pain.DBFG2:
  Pain.PlayerDBFG210K:
  Pain.DBFG210K:
  Pain.DBFG2Splash:
  Pain.PlayerDBFG2:
    TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,0)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeCalls",0)
    TNT1 A 0 A_JumpIf(user_buffed == 1,"AltDBFGPain")
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_Stop
	TNT1 A 0 A_PlaySound("nemesisremilia/buffup",7)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Radius_Quake(5,90,0,24,0)
	XRE2 SSS 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 SS 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 TTT 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 TT 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 UUU 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 UU 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  Absorbloop:
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Healthing(Random(10,50))
	XRE2 VV 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Healthing(Random(10,50))
	XRE2 VV 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Healthing(Random(10,50))
	XRE2 WW 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Healthing(Random(10,50))
	XRE2 WW 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Healthing(Random(10,50))
	XRE2 "XX" 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Healthing(Random(10,50))
	XRE2 "XX" 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_JumpIf(user_missile >= 2,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
    TNT1 A 0 A_SpawnItemEx("NMBlueBuffEffect",0,0,35)
	TNT1 A 0 A_SpawnItemEx("NMConstantBlueShield",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_PlaySound("nemesisremilia/bluebuff",CHAN_ITEM,1.0,0,ATTN_NONE)
	TNT1 A 0 ACS_NamedExecuteAlways("NMBlueBuff",0)
  Absorb2Loop:
    TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 VV 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 VV 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 WW 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 WW 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 "XX" 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_SpawnItem("NMBlueRageFlameSpawner",0,0,0,0)
	XRE2 "XX" 1 Bright A_SpawnItemEx("ArmorParticleBlue",Random(-2,2),Random(-2,2),Random(20,30),Random(-4,4),Random(-4,4),Random(-4,4),Random(-360,360),0,32)
	TNT1 A 0 A_JumpIf(user_missile >= 7,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	XRE2 UTS 4 Bright
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	Goto See
  AltDBFGPain:
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_JumpIf(user_cooldown == 1,2)
	TNT1 A 0 A_JumpIfCloser(350,"ChargeMelee2")
	TNT1 A 0 A_Jump(256,"Teleport","AltTeleport","MeleeThrustInsane")
	Goto See
  Pain.Melee:
	//TNT1 A 0 A_JumpIf(user_mode == 1,"PainMelee.vexed")
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeCalls",0)
	TNT1 A 0 A_Jump(192,"SuperMelee")
	Goto Missile
  Pain:
    TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,0)
	TNT1 A 0 ACS_NamedExecuteAlways("FadeCalls",0)
	TNT1 A 0 A_Jump(16,"PainMissile")
    XRE1 I 4 A_Playsound("nemesisremilia/pain", 2, 1.0, 0, ATTN_NONE)
	XRE1 J 4
	TNT1 A 0 A_JumpIf(user_buffed == 1,2)
	TNT1 A 0 A_Jump(16,"ActivateBuff")
	TNT1 A 0 A_Jump(30,"Teleport","AltTeleportAfraid")
    Goto See
  PainMissile:
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	XRE1 I 4 A_Playsound("nemesisremilia/pain", 2, 1.0, 0, ATTN_NONE)
	XRE1 J 4
	Goto Missile
  Death:
    TNT1 A 0 A_JumpIf(user_CheckPower == 1,2)
	TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"CheckPower")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"VexedTransformation")
    TNT1 A 0 ACS_NamedExecuteAlways("NMDestroyed",0)
	TNT1 A 0 A_KillChildren
	TNT1 A 0 A_StopSound(5)
	TNT1 A 0 A_ChangeFlag(FLOAT,0)
	TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,0)
	TNT1 A 0 A_ChangeFlag(SOLID,0)
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIf(user_down == 1,"Downfall")
	TNT1 A 0 ACS_NamedExecuteAlways("CheckVelocityForNM",0,3)
	TNT1 A 0 A_Playsound("nemesisremilia/pain",CHAN_VOICE,1.0,0,ATTN_NONE)
	XRE1 IIIIIII 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	XRE1 J 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	Wait
  Downfall:
    XRE1 P 1 Bright A_Stop
	Goto Death2+4
  Death2:
    XRE1 Y 25 Bright A_PlaySound("nemesisremilia/bodyfall",CHAN_BODY)
	TNT1 A 0 A_Playsound("nemesisremilia/death",CHAN_VOICE,1.0,0,ATTN_NONE)
	TNT1 A 0 ACS_NamedExecuteAlways("NRDarkness",0)
	XRE1 Y 230 Bright A_Playsound("nemesisremilia/thunderstorm",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_Quake(5,350,0,1000,"")
	TNT1 A 0 A_PlaySound("brain/spit",6,1.0,0,ATTN_NONE)
	TNT1 A 0 A_CustomMissile("NemPentaLine3",0,0,-72,2)
    TNT1 A 0 A_CustomMissile("NemPentaLine3",0,0,-144,2)
    TNT1 A 0 A_CustomMissile("NemPentaLine3",0,0,-216,2)
    TNT1 A 0 A_CustomMissile("NemPentaLine3",0,0,-288,2)
    TNT1 A 0 A_CustomMissile("NemPentaLine3",0,0,0,2)
	TNT1 A 0 ThrustThingZ(0,3,0,0)
	TNT1 A 0 A_Playsound("VexedPatriarch/Death2",CHAN_BODY,1.0,0,ATTN_NONE)
	TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  DeathLoop:
	XRE1 K 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_Jump(10,"DeathLightning")
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning2",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,230) //NemesisRemiliaLightning
	TNT1 A 0 A_JumpIf(user_missile >= 180,"ActualDeath")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  DeathLightning:
    TNT1 A 0 A_SetUserVar(user_effects,0)
	TNT1 A 0 A_Playsound("nemesisremilia/zap",CHAN_WEAPON,1.0,0,ATTN_NONE)
  DeathLightningLoop:
	TNT1 A 0 A_Jump(255,1,27)
	XRE1 L 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 L 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 L 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 L 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 L 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 L 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	TNT1 A 0 A_JumpIf(user_effects >= 3,"DeathLoop")
	TNT1 A 0 A_SetUserVar(user_effects,user_effects+1)
	Loop
	XRE1 M 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 M 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 M 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 M 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 M 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	XRE1 M 1 Bright A_SpawnItemEx("NRSkullEffect",Random(10,20),Random(10,20),Random(20,30),Random(1,2),Random(1,2),Random(2,4),Random(0,360),0,168)
	TNT1 A 0 A_SpawnItem("NRItemRandomizer")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	TNT1 A 0 A_SpawnItemEX("NemesisRemiliaLightning",Random(-1200,1200),Random(-1200,1200),-1000,0,0,0,0,0,250)
	TNT1 A 0 A_JumpIf(user_effects >= 3,"DeathLoop")
	TNT1 A 0 A_SetUserVar(user_effects,user_effects+1)
	Loop
  ActualDeath:
	TNT1 A 0 A_ChangeFlag(NOGRAVITY,0)
	XRE1 OOOOOOOOOO 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 ACS_NamedExecuteAlways("CheckVelocityForNM",0,4)
	XRE1 O 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	Wait
  DeadForReal:
	XRE1 Q 35 Bright A_PlaySound("nemesisremilia/bodyfall",7)
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 Q 300 Bright
  Ascension:
    TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
	TNT1 A 0 ThrustThingZ(0,1.3,0,0)
	TNT1 A 0 A_PlaySound("nemesisremilia/starsaura",CHAN_VOICE)
	TNT1 A 0 A_SetUserVar(user_missile,0)
  AscensionLoop:
	XRE1 Q 1 Bright A_SpawnItemEx("VexedAuraStar",Random(20,30),Random(20,30),Random(20,30),0,0,Random(2,4),Random(-360,360),0,92)
	TNT1 A 0 A_SpawnItemEx("NMGlitter",Random(20,30),Random(20,30),Random(20,30),0,0,0,Random(-360,360),0,192)
	TNT1 A 0 A_FadeOut(0.001,0)
	TNT1 A 0 A_JumpIf(user_missile >= 100,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  AscensionLoopX2:
    TNT1 A 0 A_SetTranslucent(0.9,1)
	XRE1 V 1 Bright A_SpawnItemEx("VexedAuraStar",Random(20,30),Random(20,30),Random(20,30),0,0,Random(2,4),Random(-360,360),0,92)
	TNT1 A 0 A_SpawnItemEx("NMGlitter",Random(20,30),Random(20,30),Random(10,30),0,0,0,Random(-360,360),0,192)
	TNT1 A 0 A_FadeOut(0.001,0)
	TNT1 A 0 A_JumpIf(user_missile >= 200,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Goto AscensionLoopX2+1
  AscensionLoopX3:
	XRE1 W 1 Bright A_SpawnItemEx("VexedAuraStar",Random(20,30),Random(20,30),Random(20,30),0,0,Random(2,4),Random(-360,360),0,92)
	TNT1 A 0 A_SpawnItemEx("NMGlitter",Random(20,30),Random(20,30),Random(10,30),0,0,0,Random(-360,360),0,192)
	TNT1 A 0 A_FadeOut(0.001,0)
	TNT1 A 0 A_JumpIf(user_missile >= 300,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  AscensionLoopX4:
	XRE1 X 1 Bright A_SpawnItemEx("VexedAuraStar",Random(20,30),Random(20,30),Random(20,30),0,0,Random(2,4),Random(-360,360),0,92)
	TNT1 A 0 A_SpawnItemEx("NMGlitter",Random(20,30),Random(20,30),Random(10,30),0,0,0,Random(-360,360),0,192)
	TNT1 A 0 A_FadeOut(0.001,0)
	TNT1 A 0 A_JumpIf(user_missile >= 350,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	//TNT1 A 0 A_SpawnItemEx("NRDeathExplosionSpawner") //vexed?
	TNT1 A 0 A_PlaySound("nemesisremilia/starexplosion",CHAN_VOICE,1.0,0,ATTN_NONE)
	TNT1 A 0 A_Quake(4,90,0,3000)
	TNT1 A 0 A_SpawnItemEx("NRDeathExplosion2",0,0,15)
	TNT1 A 0 A_SpawnItemEx("SubliminationSword",0,0,8)
	TNT1 A 0 A_SpawnItemEx("NemesisMegaSphere",0,0,8,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 AA 0 A_SpawnItemEx("DemonicChalice",0,0,8,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 AA 0 A_SpawnItemEx("SkullOfPower",0,0,8,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,random(0,8),random(0,8),2,random(0,360),0,235)
	TNT1 A 0 A_SpawnItemEx("LegendaryInvulnerabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("SignetOfNecromancy",0,0,8,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("NemesisBehemothCannon",0,0,8,random(0,8),random(0,8),2,random(0,360),0,55) //You cannot hide secrets from me, HC!!!!!!!
	XRE1 X 1 Bright A_KillMaster
	XRE1 XXXXXX 1 Bright A_FadeOut(0.2,0)
	XRE1 X 60
	Stop
  Null:
	TNT1 A 0 ACS_NamedExecuteAlways("NMDestroyed",0,1,tid)
	TNT1 A 0 A_KillChildren
	TNT1 A 1
	Stop
  CheckPower:
   TNT1 A 0 A_SetUserVar("user_CheckPower",1)
   TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"VexedTransformation")
   Goto Death
  VexedTransformation:
	TNT1 A 0 A_KillChildren
	TNT1 A 0 ACS_NamedExecuteAlways("DestroyCubes",0)
	TNT1 A 0 A_StopSound(5)
	TNT1 A 0 A_ChangeFlag(FLOAT,0)
	TNT1 A 0 A_ChangeFlag(NOBLOCKMONST,0)
	TNT1 A 0 A_ChangeFlag(SOLID,0)
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Playsound("nemesisremilia/pain",CHAN_VOICE,1.0,0,ATTN_NONE)
	XRE1 IIIIIII 3 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	XRE1 J 25 Bright A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNT1 A 0 A_SpawnItemEx("VexedNemesisRemilia",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	Stop
}
}

ACTOR NRItemRandomizer
{
States
{
Spawn:
TNT1 A 0
TNT1 A 0 A_Jump(256,"Health","Armor")
Health:
TNT1 A 0 A_SpawnItemEx("NemesisHealthBonusMax",0,0,32,frandom(-10,10),frandom(-10,10),frandom(0,3),random(0,360))
TNT1 A 1 A_SpawnItemEx("NemesisHealthBonusMax",0,0,32,frandom(-10,10),frandom(-10,10),frandom(0,3),random(0,360))
Stop
Armor:
TNT1 A 0 A_SpawnItemEx("NemesisArmorBonusMax",0,0,32,frandom(-10,10),frandom(-10,10),frandom(0,3),random(0,360))
TNT1 A 1 A_SpawnItemEx("NemesisArmorBonusMax",0,0,32,frandom(-10,10),frandom(-10,10),frandom(0,3),random(0,360))
Stop
}
}

Actor NRSkullEffect : NemesisPatriarchSkullEffect
{
  Scale 0.2
  States
  {
  Spawn:
    TNT1 A 0 NoDelay A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Null")
	NESK AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLL 3 A_Weave(2, 2, 2.0, 1.0)
	Stop
	}
}

ACTOR NRDeathExplosion : MainyuFloorshitExplosion
{
  Scale 0.6
  States
  {
  Spawn:
	MAFX ABCDEFGHIJKLMNOPQRSTU 4 Bright
    Stop
	}
}

ACTOR NRDeathExplosion2 : MainyuDeathExplosion4
{
  Scale 0.7
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_PlaySound("uroboros/explode",1,1.0,0,0.6)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("VexedAuraStar2",Random(-2,2),Random(-2,2),Random(-2,2),FRandom(-2,2),FRandom(-2,2),FRandom(-2,2),0,0,0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("VexedAuraStar2",Random(-2,2),Random(-2,2),Random(-2,2),FRandom(-2,2),FRandom(-2,2),FRandom(-2,2),0,0,0)
	MND6 ABCDEFGHIJK 6 Bright
    Stop
  }
}

ACTOR NRDeathExplosionSpawner : MainyuShockwaveExplodeBig
{
  RenderStyle Add
  Scale 0.3
  Damagetype "NemesisRemilia"
  Obituary "%o was erased by Nemesis Remilia."
  SeeSound "Mainyu/Floorshit"
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("NRDeathExplosion") 
	//TNT1 A 0 A_Quake(10,55,0,2000,"")
	//TNT1 A 0 A_Explode(2048,1000)
	//TNT1 AAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("CyberNemesisGuruSphereSmoke",0,0,random(-70,40),frandom(-8,8),frandom(-8,8),frandom(-1,1),random(0,359),SXF_SETMASTER,0)
	//TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 A_SpawnItemEx("MainyuShockwaveRain",0,0,frandom(0,20),frandom(25,50),0,frandom(10,30),random(0,360))
	TNT1 A 1 //Remove
    Stop
	}
}

ACTOR NRDebuffEffect : BaseProjectileEffect
{
  Scale 0.19
  Alpha 0
  States
  {
  Spawn:
    NRC3 AAAAAAAAAA 1 Bright A_FadeIn(0.1)
	NRC3 A 3 Bright
	NRC3 A 1 Bright A_FadeOut(0.1)
    Wait
  }
}

Actor NRSpeedToken : Inventory {inventory.maxamount 1}

Actor NRemDebuff : BlueAlert
{
  States
  {
  Spawn:
	TNT1 A 1
	Stop
  Pickup:
    TNT1 A 0
    TNT1 A 0 ACS_NamedExecuteAlways("NMNemesisDebuff",0,Random(1,5),Random(200,400))
    stop
  Nope:
	TNT1 A 0
	Stop
  }
}

ACTOR NemesisDebuffInvisibilityFlash : MainyuSubliminationGiver
{  
  States
  {
  Pickup:
	TNT1 A 1 A_SetBlend("White",1.0,25)
	TNT1 A 0
	Stop
	}
}

ACTOR NemesisDebuffInvisibility : PowerInvisibility
{
  +INVENTORY.PERSISTENTPOWER
  +INVENTORY.HUBPOWER
  +NOTIMEFREEZE
  Powerup.Strength 100
  Powerup.Mode "Translucent"
  Powerup.Color "Black", 0.2
  Powerup.Duration 0x7FFFFFFF
}

Actor NemesisDebuffSpeed : PowerTargeter
{
  +INVENTORY.PERSISTENTPOWER
  +INVENTORY.HUBPOWER
  +NOTIMEFREEZE
  Powerup.Color "Cyan", 0.2
  Powerup.Duration 0x7FFFFFFF
}

Actor NemesisDebuffKa : PowerTargeter
{
  +INVENTORY.PERSISTENTPOWER
  +INVENTORY.HUBPOWER
  +NOTIMEFREEZE
  Powerup.Color 255 218 185, 0.2
  Powerup.Duration 0x7FFFFFFF
}

Actor NemesisDebuffImpurity : PowerTargeter
{
  +INVENTORY.PERSISTENTPOWER
  +INVENTORY.HUBPOWER
  +NOTIMEFREEZE
  Powerup.Color "Blue", 0.2
  Powerup.Duration -10
}

Actor NemesisDebuffReverse : Powerspeed
{
  +INVENTORY.PERSISTENTPOWER
  +INVENTORY.HUBPOWER
  +NOTIMEFREEZE
  Powerup.Color "Purple", 0.2
  Powerup.Duration 0x7FFFFFFF
  speed -1
}

Actor NemesisRemiliaBuffLightning : NemesisPatriarchLightning
{
  Scale 1.0
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_PlaySound("PatriarchLightning",1)
	TNT1 A 0 A_SpawnItemEx("NemesisRemiliaBuffLightning2")
	NLT9 ABCDEFG 2
	Stop
	}
}

Actor NemesisRemiliaBuffLightning2 : NemesisPatriarchLightning2
{
  Scale 2.0
  States
  {
  Spawn:
	NLT0 ABCDEFGHI 1
	Stop
	}
}

ACTOR NMGlitter : PatriarchTeleport
{
  Scale 0.1
  States
  {
  Spawn:
	NTEL ABCDEFGHIJKLMNOPQRSTUVWXY 1 Bright
    Stop
	}
}

Actor NMGlitterSpawner : RedParticleSpawner
{
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 Bright A_SpawnItemEx("NMGlitter",random(-35,35),random(-20,20),random(5,65),0,0,0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAA 1 Bright A_SpawnItemEx("NMGlitter",random(-35,35),random(-20,20),random(5,65),0,0,0)
	TNT1 A 1
    Stop
  }
}

Actor NMRecoveryEffect : NemesisFragmentPortal
{
Scale 0.5
States
{
   Spawn:
     TNT1 A 0
	 REX4 AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMM 1 Bright A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(-2,2),Random(-3,3),Random(-3,3),Random(2,4),Random(0,360),0,0)
     REX4 NOPQRSTUVWXYZ 3 Bright
	 REZ4 A 3 Bright
	 Stop
   }
}

Actor NMSaberResistance : PowerupGiver
{
  Inventory.MaxAmount 1
  Powerup.Duration -15
  Powerup.Type "EnemySaberResistance"
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.AUTOACTIVATE
}

Actor EnemyRemiliaProtectionLite : PowerProtection { DamageFactor "Normal", 0.60 }
Actor NMProtectionLite : NMSaberResistance { Powerup.Duration -20 Powerup.Type "EnemyRemiliaProtectionLite" }

ACTOR NemesisRemiliaSpeedRing : NemesisCyberRageRing
{
  Scale 0.6
  Alpha 0
  -CLIENTSIDEONLY
  var int user_invisible;
  States
  {
  Spawn:
  	Spawn:
	    TNT1 A 0
	Appear:
		TNT1 A 0 A_FadeIn(0.1)
		FEWF A 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF B 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF C 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF D 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF E 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF F 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF G 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF H 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF I 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF J 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF K 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF L 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		FEWF MNOPQRSTUVWXYZ 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     Warp:
        FEWF ABCDEFGHIJKLMNOPQRSTUVWXYZ 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_JumpIf(user_invisible == 1,"WarpInvisible")
        Loop
     WarpInvisible:
	    TNT1 A 0 A_SetTranslucent(0,1)
     WarpInvisibleLoop:
	    TNT1 AAAAAAAA 1 A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_JumpIf(user_invisible == 0,"Appear")
		Loop
     Death.FadeEffects:
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF A 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF B 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF C 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF D 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF E 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF F 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF G 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF H 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF I 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF J 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF K 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		FEWF L 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		Stop
	}
}

ACTOR NMConstantBlueShield : BlueCardShield
{
YScale 1.3
XScale 1
Alpha 0
-NONETID
-NOTELEPORT
-NOGRAVITY
-CLIENTSIDEONLY
+ISMONSTER
var int user_invisible;
States
	{
	Spawn:
	    TNT1 A 0
	Appear:
		TNT1 A 0 A_FadeIn(0.1)
		BCSH A 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BCSH B 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BCSH C 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BCSH D 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BCSH E 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BCSH F 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BCSH G 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BCSH H 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
	Warp:
		BCSH ABCDEFGH 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_JumpIf(user_invisible == 1,"WarpInvisible")
		Loop
	WarpInvisible:
	    TNT1 A 0 A_SetTranslucent(0,1)
	WarpInvisibleLoop:
	    TNT1 AAAAAAAA 1 A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_JumpIf(user_invisible == 0,"Appear")
		Loop
	Death.Destroy:
	Death.FadeEffects:
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH A 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH B 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH C 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH D 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH E 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH F 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH G 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BCSH H 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		Stop
	}
}

Actor NMConstantWhiteShield : NMConstantBlueShield
{
YScale 0.026 //1.3
XScale 0.02 //1 both / 50
Alpha 0.016
var int user_expand;
States
	{
	Spawn:
		BSZ4 A 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.016)
		TNT1 A 0 A_SetScale(Scalex+0.02,Scaley+0.026)
		BSZ4 B 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.016)
		TNT1 A 0 A_SetScale(Scalex+0.02,Scaley+0.026)
		BSZ4 C 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.016)
		TNT1 A 0 A_SetScale(Scalex+0.02,Scaley+0.026)
		BSZ4 D 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.016)
		TNT1 A 0 A_SetScale(Scalex+0.02,Scaley+0.026)
		BSZ4 E 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.016)
		TNT1 A 0 A_SetScale(Scalex+0.02,Scaley+0.026)
		BSZ4 F 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.016)
		TNT1 A 0 A_SetScale(Scalex+0.02,Scaley+0.026)
		BSZ4 G 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.016)
		TNT1 A 0 A_SetScale(Scalex+0.02,Scaley+0.026)
		BSZ4 H 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_JumpIf(user_expand == 6,"WarpFix")
		TNT1 A 0 A_SetUserVar(user_expand,user_expand+1)
		Loop
	Appear:
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 A 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 B 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 C 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 D 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 E 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 F 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 G 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeIn(0.1)
		BSZ4 H 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		Goto Warp
	WarpFix:
	    TNT1 A 0 A_SetScale(1,1.3)
		TNT1 A 0 A_SetTranslucent(0.8,1)
	Warp:
		BSZ4 ABCDEFGH 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_JumpIf(user_invisible == 1,"WarpInvisible")
		Loop
	WarpInvisible:
	    TNT1 A 0 A_SetTranslucent(0)
	WarpInvisibleLoop:
	    TNT1 AAAAAAAA 1 A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_JumpIf(user_invisible == 0,"Appear")
		Loop
	Death.Destroy:
	Death.FadeEffects:
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 A 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 B 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 C 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 D 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 E 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 F 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 G 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		TNT1 A 0 A_FadeOut(0.1,0)
		BSZ4 H 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
		Stop
	}
}

ACTOR NMSparkleSpawner : MainyuSparkleSpawner
{
-CLIENTSIDEONLY
var int user_invisible;
  States
  {
  Spawn:
	TNT1 A 0
    TNT1 AA 1 A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
    TNT1 A 0 A_SpawnItemEx("MainyuSparkle",random(-20,20),random(-20,20),random(13,55),0,0,frandom(-2,-0.5))
	TNT1 A 0 A_JumpIf(user_invisible == 1,"InvisibleLoop")
    Loop
  Toaster:
    TNT1 A 1 A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 0, "Spawn")
	Loop
  InvisibleLoop:
	TNT1 A 1 A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
	TNT1 A 0 A_JumpIf(user_invisible == 0,"Spawn")
	Loop
  Death.Destroy:
  Death.FadeEffects:
    TNT1 A 0
	Stop
	}
}

Actor NMBlueBuffEffect : LegendaryDreadnoughtIllusion
{
Scale 1.4
Alpha 0
States
{
   Spawn:
   TNT1 A 0
   TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD A 2 Bright A_FadeIn(0.1)
   TNT1 AAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD A 2 Bright A_FadeIn(0.1)
   TNT1 AAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD A 2 Bright A_FadeIn(0.1)
   TNT1 AAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD A 2 Bright A_FadeIn(0.1)
   TNT1 AAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD B 2 Bright A_FadeIn(0.1)
   TNT1 AAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD B 2 Bright A_FadeIn(0.1)
   TNT1 AAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD B 2 Bright A_FadeIn(0.1)
   TNT1 AAA 0 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD B 2 Bright A_FadeIn(0.1)
   DRAD CCCCDDDDEEEEFFFFGGGGHHHHIIII 2 A_SpawnItemEx("T3DBFGBallParticle",Random(-2,2),Random(-2,2),Random(5,10),Random(-10,10),Random(-10,10),Random(-10,10),Random(-360,360),0,32)
   DRAD IIIIIIII 2 Bright A_FadeOut(0.1,0)
   Stop
   }
}

Actor NemesisRemiliaResurrect : MainyuBigStrikeBeam
{
  XScale 3.0
  +CLIENTSIDEONLY
  States
  {
  Spawn:
	SWHI AAAAAA 3 A_FadeIn(0.1)
	SWHI A 20
	SWHI A 1 A_FadeOut(0.05)
	Wait
	}
}

ACTOR NMRageFlame : CardinalFire { Scale 0.5 }

ACTOR NMBlueRageFlame : LRedFlameFlame { Scale 0.5 }

ACTOR NMPurpleRageFlame : CommanderBrainFlame { Scale 0.5 }

ACTOR WhiteRageFlame : CommanderBrainFlame
{
Scale 0.5
States
{
Spawn:
	BMX9 ABCDEFGHIJKL 2 Bright A_FadeOut
	Stop
	}
}

ACTOR WhiteRageFlameSpawner : RedParticleSpawner
{
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_SpawnItemEx("WhiteRageFlame",random(15,-15),random(15,-15),random(40,50),0,0,random(3,6))
	TNT1 A 1
    Stop
  }
}

ACTOR NMRageFlameSpawner : RedParticleSpawner
{
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_SpawnItemEx("NMRageFlame",random(15,-15),random(15,-15),random(40,50),0,0,random(3,6))
	TNT1 A 1
    Stop
  }
}

ACTOR NMBlueRageFlameSpawner : RedParticleSpawner
{
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_SpawnItemEx("NMBlueRageFlame",random(15,-15),random(15,-15),random(40,50),0,0,random(3,6))
	TNT1 A 1
    Stop
  }
}

ACTOR NMPurpleRageFlameSpawner : CommanderBrainSFX
{
  States
  {
  Spawn:
    TNT1 A 0
	TNT1 AA 0 A_SpawnItemEx("CommanderBrainLightning",random(15,-15),random(15,-15),random(40,50),0,0,0,0,0,128)
	TNT1 AA 0 A_SpawnItemEx("CommanderBrainLightning2",random(15,-15),random(15,-15),random(40,50),0,0,0,0,0,128)
	TNT1 AAAA 0 A_SpawnItemEx("NMPurpleRageFlame",random(15,-15),random(15,-15),random(40,50),0,0,random(3,6))
    TNT1 A 1
    Stop
  }
}

Actor HFCGhost1 : LCVGhost1
{
-CLIENTSIDEONLY
States
  {
   Spawn:
     TNT1 A 0
     TNT1 A 0 A_PlaySound("HFCyb/laugh2",6,1,0,ATTN_NONE)
   FadeIn:
     TNT1 A 0 A_JumpIf(user_fade == 5,"Looping")
     TNT1 A 0 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     HFZ7 G 2 A_FadeIn(0.1)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Looping:
     TNT1 A 0 A_JumpIf(user_fade == 37,"Death.Destroy")
     HFZ7 G 2 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Death.Destroy:
     HFZ7 GGGGGGG 1 A_FadeOut(0.1)
	 TNT1 A 1 A_NoBlocking
	 TNT1 A 5
     Stop
  }
}

Actor HereGhost1 : LCVGhost1
{
Scale 2.0
-CLIENTSIDEONLY
States
  {
   Spawn:
     TNT1 A 0
     TNT1 A 0 A_PlaySound("LOH/idle",6,1,0,ATTN_NONE)
   FadeIn:
     TNT1 A 0 A_JumpIf(user_fade == 5,"Looping")
     TNT1 A 0 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     HIER K 2 A_FadeIn(0.1)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Looping:
     TNT1 A 0 A_JumpIf(user_fade == 37,"Death.Destroy")
     HIER K 2 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Death.Destroy:
     HIER KKKKKKK 1 A_FadeOut(0.1)
	 TNT1 A 1 A_NoBlocking
	 TNT1 A 5
     Stop
  }
}

Actor CerebralGhost1 : LCVGhost1
{
Scale 1.1
-CLIENTSIDEONLY
States
  {
   Spawn:
     TNT1 A 0
     TNT1 A 0 A_PlaySound("Commander/sight",6,1,0,ATTN_NONE)
   FadeIn:
     TNT1 A 0 A_JumpIf(user_fade == 5,"Looping")
     TNT1 A 0 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     COMM C 2 A_FadeIn(0.1)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Looping:
     TNT1 A 0 A_JumpIf(user_fade == 37,"Death.Destroy")
     COMM C 2 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Death.Destroy:
     COMM CCCCCCC 1 A_FadeOut(0.1)
	 TNT1 A 1 A_NoBlocking
	 TNT1 A 5
     Stop
  }
}

Actor CorCardGhost1 : LCVGhost1
{
Scale 1.1
-CLIENTSIDEONLY
States
  {
   Spawn:
     TNT1 A 0
     TNT1 A 0 A_PlaySound("BlueCardinal/Taunt",6,1,0,ATTN_NONE)
   FadeIn:
     TNT1 A 0 A_JumpIf(user_fade == 5,"Looping")
     TNT1 A 0 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     BCT1 X 2 A_FadeIn(0.1)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Looping:
     TNT1 A 0 A_JumpIf(user_fade == 37,"Death.Destroy")
     BCT1 X 2 A_FaceTarget
     TNT1 A 0 A_Warp(AAPTR_MASTER,-12,0,0,0,WARPF_USECALLERANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
     TNT1 A 0 A_SetUserVar(user_fade,user_fade+1)
     Loop
   Death.Destroy:
     BCT1 XXXXXXX 1 A_FadeOut(0.1)
	 TNT1 A 1 A_NoBlocking
	 TNT1 A 5
     Stop
  }
}

Actor HFCGhost2 : LCVGhost1
{
-CLIENTSIDEONLY
Alpha 1
States
  {
   Spawn:
     TNT1 A 0
	 TNT1 A 0 A_FaceTarget
     TNT1 A 0 A_PlaySound("hfcyber/denied",CHAN_VOICE,1.0,0,ATTN_NONE)
     TNT1 A 0 A_PlaySound("boss/teleport",6)
     TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("HFireSpawner",random(-64,64),random(-64,64),random(0,64),0,0,0,0,0,32)
	 HFCS A 35
	 TNT1 A 0 Radius_Quake(10,8,0,24,0)	
	 TNT1 A 0 A_PlaySound("monsters/darkcyberstomp")
	 TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("PainfulKaboom",0,0,random(0,120),(Random (-8, 8)),(Random (-8, 8)),(Random (0, 8)),(Random (0, 360)))
	 TNT1 AAAAA 0 A_DamageMaster(random(500,1000),"Denied1")
	 HFCS B 20
   Death.Destroy:
     TNT1 A 0 A_PlaySound("boss/teleport",6)
	 TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("HFireSpawner",random(-64,64),random(-64,64),random(0,64),0,0,0,0,0,32)
     HFCY GGGGGGGGGGGGG 2 A_FadeOut
	 Stop
     }
}

Actor HereGhost2 : HFCGhost2
{
Scale 2.0
States
  {
   Spawn:
     TNT1 A 0
	 TNT1 A 0 A_FaceTarget
	 TNT1 A 0 A_PlaySound("Heresiarch/Teleport",7,1.0,0,ATTN_NONE)
	 TNT1 A 0 A_SpawnItemEx("HeresTeleportFXSpawner",0,0,62,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	 HIER K 35
	 TNT1 A 0 A_PlaySound("Heresiarch/Pain",CHAN_VOICE,1.0,0,ATTN_NONE)
	 HIER HI 5
	 HIER J 2 A_PlaySound("nemesisremilia/punished",6,1.0,0,ATTN_NONE)
	 TNT1 AAAAA 0 A_DamageMaster(random(500,1000),"Denied2")
	 HIER J 25
   Death.Destroy:
     TNT1 A 0 A_PlaySound("Heresiarch/Teleport",7,1.0,0,ATTN_NONE)
	 TNT1 A 0 A_SpawnItemEx("HeresTeleportFXSpawner",0,0,62,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
     HIER JJJJJJJJJJJJJ 2 A_FadeOut
	 Stop
     }
}

Actor CerebralGhost2 : HFCGhost2
{
Scale 1.1
States
  {
   Spawn:
     TNT1 A 0
	 TNT1 A 0 A_FaceTarget
	 TNT1 A 0 A_PlaySound("Heresiarch/Teleport",7,1.0,0,ATTN_NONE)
	 TNT1 A 0 A_PlaySound("Commander/Laugh",6,1.0,0,ATTN_NONE)
	 TNT1 A 0 A_SpawnItemEx("CommTeleportFXSpawner",0,0,62)
	 COMM C 35
	 TNT1 A 0 A_SpawnItemEx("CommTeleportFXSpawner",0,0,62)
	 TNT1 A 0 A_PlaySound("Heresiarch/Teleport",7,1.0,0,ATTN_NONE)
	 TNT1 A 0 A_HideThing
   Death:
     COMM C 5
	 Stop
     }
}

Actor CerebralGhost3 : CerebralGhost2
{
Alpha 0
-CLIENTSIDEONLY
States
  {
   Spawn:
     TNT1 A 0
	 TNT1 A 0 A_FaceTarget
	 TNT1 A 0 A_PlaySound("Heresiarch/Teleport",7,1.0,0,ATTN_NONE)
	 TNT1 A 0 A_SpawnItemEx("CommTeleportFXSpawner",0,0,30)
	 COMM C 15
	 COMM C 2 A_SpawnItemEx("PurpleDBFGBoltExp69",0,0,30)
	 TNT1 AAAAA 0 A_DamageMaster(random(500,1000),"Denied3")
   Death:
     COMM C 20
	 Stop
     }
}

Actor CorCardGhost2 : HFCGhost2
{
Scale 1.1
Alpha 0
States
  {
   Spawn:
     TNT1 A 0
	 TNT1 A 0 A_FaceTarget
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,0)
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,45)
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,90)
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,135)
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,180)
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,225)
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,270)
	 BCFL A 1 A_SpawnItemEx("BlueCardinalTeleportMirrorIn",-400,0,0,16,0,0,315)
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 TNT1 A 1 A_PlayWeaponSound("boss/teleport")
	 TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	 BCFL AAAAAAAAAAA 1 A_FadeIn(0.1)
	 BCT1 XXX 4 Bright A_SpawnItem("BlueFireSpawner",0,16,0,0)
	 TNT1 A 0 A_PlaySound("BlueCardinal/Active1",6,1,0,ATTN_NONE)
	 BCC1 AA 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 BB 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CC 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 DD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 AB 3 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 3 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 AB 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
     BCC1 CD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 AB 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 TNT1 A 0 A_PlaySound("BlueCardinal/Spit")
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,0,2,0)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,20,2,5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,40,2,10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,60,2,15)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,80,2,25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,100,2,30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,120,2,35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,140,2,40)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,160,2,45)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,180,2,0)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,200,2,-5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,220,2,-10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,240,2,-15)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,260,2,-20)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,280,2,-25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,300,2,-30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,320,2,-35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,340,2,-40)
	 BCC1 AB 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 TNT1 A 0 A_PlaySound("BlueCardinal/Spit")
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,180,2,45)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,200,2,40)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,220,2,35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,240,2,30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,260,2,25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,280,2,20)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,300,2,15)
 	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,320,2,10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,340,2,5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,0,2,0)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,20,2,-5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,40,2,-10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,60,2,-15)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,80,2,-20)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,100,2,-25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,120,2,-30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,140,2,-35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,160,2,-40)
	 BCC1 AB 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 TNT1 A 0 A_PlaySound("BlueCardinal/Spit")
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,90,2,45)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,110,2,40)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,130,2,35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,150,2,30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,170,2,25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,190,2,20)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,210,2,15)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,230,2,10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,250,2,5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,270,2,0)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,290,2,-5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,310,2,-10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,330,2,-15)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,350,2,-20)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,10,2,-25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,30,2,-30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,50,2,-35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,70,2,-40)
	 BCC1 AB 2 Bright
	 TNT1 AAAAA 0 A_DamageMaster(random(500,1000),"Denied2")
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 TNT1 A 0 A_PlaySound("BlueCardinal/Spit")
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,270,2,45)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,290,2,40)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,310,2,35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,330,2,30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,350,2,25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,10,2,20)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,30,2,15)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,50,2,10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,70,2,5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,90,2,0)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,110,2,-5)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,130,2,-10)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,150,2,-15)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,170,2,-20)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,190,2,-25)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,210,2,-30)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,230,2,-35)
	 TNT1 A 0 A_CustomMissile("BlueCardballNM",72,0,250,2,-40)
	 BCC1 AB 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 AB 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 2 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 AB 3 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 CD 3 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 A 4 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 B 4 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 C 4 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	 BCC1 D 4 Bright
	 TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
  Death.Destroy:
	 TNT1 A 0 A_PlaySound("boss/teleport",6)
	 TNT1 A 0 A_ChangeVelocity(16, 0, 0, CVF_RELATIVE|CVF_REPLACE)
	 BCC1 ABCDABCD 2 A_FadeOut(0.1,1)
	 Stop
     }
}

Actor CorCardGhost3 : HeresiarchGuardian
{
Alpha 0.8
Scale 1.1
var int user_time;
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_SetUserVar(user_time,0)
  Looping:
    TNT1 A 0 A_JumpIf(user_time >= 24,"Death.FadeCalls")
	TNT1 A 0 A_SetUserVar("user_time",user_time+1)
	BCLR A 0 A_FaceTarget
    BCLR AA 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
    BCLR BB 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	Loop
  Death.Destroy:
  Death.FadeCalls:
    BCLR BBBBBBBBBBBBBB 1 Bright A_FadeOut(0.2)
  Stop
  }
}

Actor BlueCardballNM : BlueCardball { DamageType "Mainyu" }

ACTOR PurpleDBFGBoltExp69 : PurpleDBFGBoltExp
{
States 
{
  Spawn:
        TNT1 A 0 Radius_Quake(5,60,0,10,0)
		TNT1 A 0 A_SpawnItemEx("PurpleDBFGBallParticle", random(1,-1), frandom(1,-1), frandom(1,-1), frandom(1,1), frandom(1,1), frandom(1,-1), random(0,359))
        TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExpC", random(1,-1), frandom(1,-1), frandom(1,-1), frandom(1,1), frandom(1,1), frandom(1,-1), random(0,359))
        TNT1 A 0 A_StopSound(CHAN_VOICE)
        TNT1 A 0 Radius_Quake(15,20,0,20,0)
		TNT1 A 0 A_PlaySound("Weapons/dbfgexplode", CHAN_AUTO, 1.0, False, ATTN_NONE)
        TNT1 A 1 A_SpawnItemEx("PurpleDBFGBallExp")
		TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExpImpact")
        TNT1 A 0 A_SpawnItemEx("PurpleDBFGBallShockwaveLrg", 0, 0, 15, 0, 0, 0, 0, 128)
		C3PX A 3 Bright A_FadeOut(0.05)
		C3PX B 3 Bright A_FadeOut(0.05)
        TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltLrgExpC", random(1,-1), frandom(1,-1), frandom(1,-1), frandom(1,1), frandom(1,1), frandom(1,-1), random(0,359))
		C3PX C 3 Bright A_FadeOut(0.045)
		C3PX D 3 Bright A_FadeOut(0.035)
        TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExtLrgExpB", random(1,-1), frandom(1,-1), frandom(1,-1), frandom(1,1), frandom(1,1), frandom(1,-1), random(0,359))
		C3PX A 3 Bright A_FadeOut(0.05)
		C3PX B 3 Bright A_FadeOut(0.05)
		C3PX C 3 Bright A_FadeOut(0.045)
		C3PX D 3 Bright A_FadeOut(0.035)
		C3PX E 3 Bright A_FadeOut(0.025)
		C3PX F 3 Bright A_FadeOut(0.015)
		C3PX G 4 Bright A_FadeOut(0.065)
	Continuous:
		C3PX G 1 Bright A_FadeOut(0.065)
		Loop
    }
}

ACTOR NemesisRemiliaParticle : TatsuyaTeleportParticle1
{
  Scale 0.09
  Alpha 0
  +BRIGHT
  States
  {
  Spawn:
    CLBA DDDDDDDDDDDDDDDDDDDD 1 A_Fadein(0.05)
  Fade:
	CLBA D 1 A_FadeOut(0.2)
	Wait
	}
}

Actor NemesisRemiliaLightning : NemesisLightning2 //PainLightning
{
Damagetype "Legendary"
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("thepain/light",7,1.0,0,ATTN_STATIC)    
	TNT1 A 0 Radius_Quake(175,8,512,1024,0)
	//TNT1 AAA 0 A_CustomMissile("NemesisLightningBolt",30,0,random(0,360),2)
	TNT1 A 0 A_Explode(50,300)
	TNT1 AAA 0 A_CustomMissile("SmokeFX3",0,0,random(0,360),2,random(0,360))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("WhiteLightningSpark",0,0,0,random(1,10),0,random(1,10),random(0,359),0,129)
	DV10 ABCBCAB 3 Bright
	Stop
    }     
}

Actor NemesisRemiliaLightning2 : NemesisLightning2
{
Damagetype "Legendary"
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("thepain/light",7,1.0,0,ATTN_STATIC)    
	TNT1 A 0 Radius_Quake(175,8,512,1024,0)
	TNT1 AAA 0 A_CustomMissile("NemesisLightningBolt",30,0,random(0,360),2)
	TNT1 A 0 A_Explode(50,300)
	TNT1 AAA 0 A_CustomMissile("SmokeFX3",0,0,random(0,360),2,random(0,360))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("WhiteLightningSpark",0,0,0,random(1,10),0,random(1,10),random(0,359),0,129)
	DV10 ABCBCAB 3 Bright
	Stop
    }     
}

//RemiliaBall
ACTOR NemesisShockwave1 : LCAShockwave
{
  Alpha 0.9
  Scale 0.2 //0.15
  Renderstyle Add
  +DONTSPLASH
  +FORCEXYBILLBOARD

  States
  {
    Spawn:
      NBXR ABCDEFGHIJKLMNOPQR 1 Bright A_FadeOut(0.04)
      Stop
  }
}

ACTOR NemesisShockwave2 : NemesisShockwave1 { Scale 0.3 }
ACTOR NemesisShockwave3 : NemesisShockwave1 { Scale 0.4 }
ACTOR NemesisShockwave4 : NemesisShockwave1 { Scale 0.5 }
ACTOR NemesisShockwave5 : NemesisShockwave1 { Scale 0.6 }
ACTOR NemesisShockwave6 : NemesisShockwave1 { Scale 0.7 }
ACTOR NemesisShockwave7 : NemesisShockwave1 { Scale 0.8 }
ACTOR NemesisShockwave8 : NemesisShockwave1 { Scale 0.9 }
ACTOR NemesisShockwave9 : NemesisShockwave1 { Scale 1 }
ACTOR NemesisShockwave10 : NemesisShockwave1 { Scale 1.1 }

Actor NemesisRemiliaBallChargingWarp : PatriarchOrbitCube1
{
Scale 0.1
Renderstyle Add
-CLIENTSIDEONLY
States
{
 Spawn:
   TNT1 A 0
   TNT1 A 1 A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 AAAAAAAAAAAAAAAAAAAA 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGBall",5,1.0,True)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave1")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave2")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.15)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave3")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.2)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave4")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.27)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave5")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.39)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave6")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.46)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave7")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.59)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave8")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.69)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave9")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.75)
   NRB1 AABBCCDDEEAABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
   TNT1 A 0 A_SpawnitemEx("NemesisShockwave10")
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   TNT1 A 0 A_SetScale(0.9)
  Looping:
   NRB1 AABBCCDDEE 1 bright A_Warp(AAPTR_MASTER,0,0,120,0,WARPF_INTERPOLATE|WARPF_NOCHECKPOSITION)
   TNT1 A 0 A_SpawnItemEx("NemesisLightningWhiteSpawner3",Random(6,-6),Random(6,-6),0,0,0,0,0,0,64)
   Loop
  Death.Destroy:
  Death.FadeBall:
   TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
   TNT1 A 0 A_StopSound(5)
   NRB1 AABBCCDDEEAABBCCDDEEAABBCCDDEEAABBCCDDEE 1 bright A_FadeOut(0.05)
   Stop
   }
}

Actor NemesisRemiliaBall : ZamasuCyberFinalBall Replaces ZamasuCyberFinalBall
{
Speed 5
//SeeSound "ball/bounce"
-RIPPER
//+DOOMBOUNCE
+HEXENBOUNCE
+EXPLODEONWATER
+NOBOUNCESOUND
//+USEBOUNCESTATE
//+SEEKERMISSILE
var int user_speed;
ReactionTime 60
States
{
 Spawn:
   TNT1 A 0
   TNT1 A 0 A_PlaySound("Arcradimus/BFGBall",5,1.0,True)
   TNT1 A 0 A_SetUserVar("user_speed",0)
 SpeedupLoop:
   TNT1 A 0 A_JumpIf(user_speed >= 3,"Finished")
   TNT1 A 0 A_SetUserVar("user_speed",user_speed+1)
   NRB1 A 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_ScaleVelocity(1.1)
   NRB1 A 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_ChangeFlag(USEBOUNCESTATE,1)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   TNT1 A 0 A_ScaleVelocity(1.1)
   NRB1 B 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_ScaleVelocity(1.1)
   NRB1 B 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   TNT1 A 0 A_ScaleVelocity(1.1)
   NRB1 C 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_ScaleVelocity(1.1)
   NRB1 C 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   TNT1 A 0 A_ScaleVelocity(1.2)
   NRB1 D 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_ScaleVelocity(1.2)
   NRB1 D 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   TNT1 A 0 A_ScaleVelocity(1.2)
   NRB1 E 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_ScaleVelocity(1.2)
   NRB1 E 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   Loop
 Bounce:
   TNT1 A 0
   TNT1 A 0 A_PlaySound("ball/bounce",7)
   Goto SpeedupLoop
 Finished:
   NRB1 A 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   NRB1 A 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   NRB1 B 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   NRB1 B 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   NRB1 C 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   NRB1 C 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   NRB1 D 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   NRB1 D 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   NRB1 E 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   NRB1 E 1 bright A_SpawnItemEx("ArmorParticleWhite",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,64)
   TNT1 A 0 A_SpawnItemEx("NemesisBallTrail",5,0,0,0,0,0,0,0,0)
   TNT1 A 0 A_SpawnItemEx("NemesisShockwave10",0,0,0,10,0,0,0,0,224)
   TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt7",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,0,50)
   TNT1 A 0 A_Explode(600,192,0,1)
   TNT1 A 0 A_Countdown
   Loop
 Death:
   TNT1 A 0
   TNT1 A 0 A_StopSound(5)
   //TNT1 A 0 A_SpawnItem("NemesisNuke")
   TNT1 A 0 A_PlaySound("Weapons/VexedNemesisNukeExp", 5, 1.0, 0, ATTN_NONE)
   TNT1 A 1 A_Explode(10000,10000,0,1)
   TNT1 A 0 A_BFGSpray("ArcSpray",15,20)
   TNT1 A 0 A_SpawnItemEx("ZamasuNukeFlare", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
   TNT1 AA 0 A_SpawnItemEx("ZamasuNukeSmokeFloor", 0, 0, 0, 0, 0, 0, 0, SXF_CLIENTSIDE)
   TNT1 A 0 A_SpawnItemEx("ZamasuNukeFloor", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
   TNT1 A 0 A_SpawnItemEx("ZamasuNukeMushroom", 0, 0, 0, 0, 0, 10, 0, SXF_TRANSFERPOINTERS, 0)
   TNT1 A 0 A_SpawnItemEx("ZamasuNukeFlareMushroom", 0, 0, 0, 0, 0, 10, 0, SXF_CLIENTSIDE, 0)
   TNT1 AA 0 A_SpawnItemEx("ZamasuNukeSmokeMushroom", 0, 0, 0, 0, 0, 10, 0, SXF_CLIENTSIDE, 0)
   TNT1 A 0 A_SpawnItemEx("ZamasuNukePillar", 0, 0, 0, 0, 0, 0, 12, SXF_TRANSFERPOINTERS, 0)
   TNT1 AA 0 A_SpawnItemEx("ZamasuNukeSmokePillar", 0, 0, 0, 0, 0, 12, 0, SXF_CLIENTSIDE, 0)
   TNT1 A 0 A_SpawnItem("NemesisDeathBall")
   TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
   TNT1 A 0 A_SpawnItem("NemesisDeathBall")
   TNT1 A 90 Radius_Quake(9, 90, 0, 9999, "None")
   Stop
   }
}

Actor NemesisBallTrail : ArcTrail
{
States
{
  Spawn:
  TNT1 A 0
  TNT1 A 0 A_SetScale(ScaleX -0.01, ScaleY -0.01)
  NRB1 ABCDE 1 Bright A_FadeOut(0.05)
  Loop
	}
}

ACTOR NemesisLightningWhiteSpawner2 : BluePowerLineSpawner
{
States
{
Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 Bright A_SpawnItemEx("NemLightningBoltWhite2",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    Stop
    }
}

ACTOR NemesisLightningWhiteSpawner3 : BluePowerLineSpawner
{
States
{
Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 Bright A_SpawnItemEx("NemLightningBoltWhite3",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    Stop
    }
}

ACTOR NemLightningBoltWhite2 : ArcBallLightningBolt2
{
States
{
Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(256,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72)
    GZX1 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
    GZX2 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
    GZX3 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
    GZX4 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
	Goto Death
    }
}

Actor NemLightningBoltWhite3 : NemLightningBoltWhite2 { Scale 0.3 }

ACTOR ArcBallLightningBolt7 : NemLightningBoltWhite2
{
Scale 0.55
States
 {
 Spawn:
  TNT1 A 0
  TNT1 A 0 A_PlaySound("Arcradimus/BFGElectric")
  Goto Super::Spawn
 }
}

//Cubes
Actor RemiliaOrbitCube1 : PatriarchOrbitCube1 //HeresiarchGuardian
{
  Scale 0.8
  Alpha 0
  -CLIENTSIDEONLY
  +NOTELEPORT
  +NOBLOCKMAP
  Tag "\c[c4]Remilia Orbit Cube\c-"
  states
  {
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_FadeIn(0.06)
    CAB1 AA 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 BB 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 CC 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 DD 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 EE 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 FF 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 GG 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 HH 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 II 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 JJ 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 KK 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 LL 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 MM 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 NN 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 OO 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB1 PP 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
  Warp:
	CAB1 AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	Loop
  Death.Destroy:
  Death.DestroyCubes:
	TNT1 A 0 A_ChangeFlag(NOINTERACTION,0)
	TNT1 A 0 A_ChangeFlag(BOUNCEONFLOORS,1)
	TNT1 A 0 A_ChangeFlag(MBFBOUNCER,1)
	TNT1 A 0 ThrustThingZ(0,25,0,0)
	TNT1 A 0 ThrustThing(angle*256/120+90,5)
    CAB1 A 1 A_CheckFloor("DeathFade")
	Wait
  DeathFade:
    CAB1 A 70
	CAB1 AAAAAAAAAAAA 1 A_FadeOut(0.1,0)
	Stop
  Death.FadeCubes:
    TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
    CAB1 AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP 1 Bright A_Fadeout(0.05,0)
	Stop
	}
}

Actor RemiliaOrbitCube2 : RemiliaOrbitCube1
{
  Tag "\c[c3]Remilia Orbit Cube\c-"
  States
  {	
   Spawn:
    TNT1 A 0
	TNT1 A 0 A_FadeIn(0.06)
    CAB2 AA 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 BB 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 CC 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 DD 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 EE 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 FF 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 GG 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 HH 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 II 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 JJ 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 KK 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 LL 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 MM 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 NN 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 OO 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB2 PP 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
  Warp:
	CAB2 AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	Loop
  Death.Destroy:
  Death.DestroyCubes:
	TNT1 A 0 A_ChangeFlag(NOINTERACTION,0)
	TNT1 A 0 A_ChangeFlag(BOUNCEONFLOORS,1)
	TNT1 A 0 A_ChangeFlag(MBFBOUNCER,1)
	TNT1 A 0 ThrustThingZ(0,25,0,0)
	TNT1 A 0 ThrustThing(angle*256/120+240,5)
    CAB2 A 1 A_CheckFloor("DeathFade")
	Wait
  DeathFade:
    CAB2 A 70
	CAB2 AAAAAAAAAAAA 1 A_FadeOut(0.1,0)
	Stop
  Death.FadeCubes:
    TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
    CAB2 AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP 1 Bright A_Fadeout(0.05,0)
	Stop
  }
}

Actor RemiliaOrbitCube3 : RemiliaOrbitCube1
{
  Tag "\c[c6]Remilia Orbit Cube\c-"
  States
  {
   Spawn:
    TNT1 A 0
	TNT1 A 0 A_FadeIn(0.06)
    CAB3 AA 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 BB 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 CC 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 DD 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 EE 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 FF 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 GG 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 HH 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 II 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 JJ 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 KK 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 LL 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 MM 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 NN 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 OO 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
	CAB3 PP 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	TNT1 A 0 A_FadeIn(0.06)
  Warp:
	CAB3 AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP 1 Bright A_Warp(AAPTR_MASTER,21,0,77,10,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE|WARPF_USECALLERANGLE)
	Loop
  Death.Destroy:
	TNT1 A 0 A_ChangeFlag(NOINTERACTION,0)
	TNT1 A 0 A_ChangeFlag(BOUNCEONFLOORS,1)
	TNT1 A 0 A_ChangeFlag(MBFBOUNCER,1)
	TNT1 A 0 ThrustThingZ(0,25,0,0)
	TNT1 A 0 ThrustThing(angle*256/120+360,5)
    CAB3 A 1 A_CheckFloor("DeathFade")
	Wait
  DeathFade:
    CAB3 A 70
	CAB3 AAAAAAAAAAAA 1 A_FadeOut(0.1,0)
	Stop
  Death.Fade:
    TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
    CAB3 AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP 1 Bright A_Fadeout(0.05,0)
	Stop
  }
}

ACTOR NemesisRemiliaChargeGhost
{
PROJECTILE
Height 56
Radius 20
Speed 0
Scale 0.7
RENDERSTYLE Translucent
Alpha 0.7
+NOTIMEFREEZE
+NOINTERACTION
+CLIENTSIDEONLY
States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
	XRE5 A 2 A_FadeOut(0.1,1)
	Wait
  }
}

Actor NemesisRemiliaDodgeGhost : NemesisRemiliaChargeGhost
{
States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
	XRE1 A 2 A_FadeOut(0.1,1)
	Wait
  }
}

ACTOR NemesisRemiliaCastEffect1 : MReimuCastEffect1
{
  Renderstyle Add
  scale 0.21
  States
  {
  Spawn:
	MR4Z ABCDEFGHIJKLMNOPQRSTU 2 Bright
    Stop
  }
}

Actor NemesisRemiliaRailLaser : NemesisCyberRailLaser
{
-PIERCEARMOR
Missiletype "NemesisRemiliaLaserTrail"
Obituary "%o stood no chance against \c[v9]Nemesis \c[p1]Remilia's\c- divine powers, projected by the nemesis supreme lord himself."
States
  {
  Spawn:
	TNT1 A 0
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("WhiteProjParticleSuperLarge2",0,0,0,frandom(0,6),frandom(-6,6),frandom(-6,6))
	TNT1 A 1 Bright
	Loop
  }
}

Actor NemesisRemiliaLaserTrail : NemesisImpLaserTrail { Renderstyle Add }

ACTOR NMAuraSpawner : VexedAuraSpawnerZombie
{
States
  {
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Null")
	TNT1 A 0 A_SpawnItem("NMAura",0,0,0,0)
	TNT1 A 1
	Stop	
  }
}

Actor NMAura : VexedAura
{
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Null")
	//TNT1 AA 0 A_SpawnItemEx("VexedAuraSpark",random(-12,12),random(-12,12),random(15,40),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,3),0,0,64)
	TNT1 AA 0 A_SpawnItemEx("VexedAuraStar",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),0,128)
	//TNT1 AA 0 A_SpawnItemEx("VexedAuraSoul",random(-12,12),random(-12,12),random(6,32),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,4),0,0,64)
	TNT1 A 0 A_SpawnItemEx("VexedAuraRiftRandomizer",random(-12,12),random(-12,12),random(6,32),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,4),0,0,64)
	//TNT1 A 0 A_SpawnItemEx("VexedAuraParticle",Random(-12,12),Random(-12,12),Random(30,50),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	Stop
	}
}

Actor VexedAuraStar : VexedAuraSpark
{
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Null")
	TNT1 A 0 A_SetScale(frandom(0.07,0.15))
	TNT1 A 0 A_SetUserVar(user_delay,random(2,4))
	NMX8 ABCD 1 Bright A_SetTics(user_delay)
  Fade:
	TNT1 A 0 A_FadeOut(0.1,0)
	NMX8 A 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.1,0)
	NMX8 B 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.1,0)
	NMX8 C 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.1,0)
	NMX8 D 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.1,0)
	Loop
	}
}

Actor VexedAuraStar2 : VexedAuraStar
{
  -NOINTERACTION
  +DOOMBOUNCE
  +NOGRAVITY
  bouncecount 6
  Projectile
  var int user_holdtime;
  States
  {
  Spawn:
    TNT1 A 0 NoDelay A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Null")
    TNT1 A 0 A_SetScale(frandom(0.07,0.15))
    TNT1 A 0 A_SetUserVar(user_delay,random(2,3))
	TNT1 A 0 A_SetUserVar(user_holdtime,0)
  Fade:
	NMX8 ABCD 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_JumpIf(user_holdtime == 50,"FadeX2")
	TNT1 A 0 A_SetUserVar(user_holdtime,user_holdtime+random(1,2))
	Loop
  FadeX2:
	TNT1 A 0 A_FadeOut(0.06,0)
	NMX8 A 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.06,0)
	NMX8 B 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.06,0)
	NMX8 C 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.06,0)
	NMX8 D 1 Bright A_SetTics(user_delay)
	TNT1 A 0 A_FadeOut(0.06,0)
	Loop
  Death:
    TNT1 A 1
	Stop
	}
}


Actor NemesisRemiliaTeleportEffect : NemesisFragmentPortal
{
Scale 0.7
States
{
  Spawn:
    TNT1 A 0 A_SetTranslucent(0)
	TNT1 A 0 A_PlaySound("elite/teleporteffect")
    NTEL LKJIHGFEDCBA 1 A_Fadein(0.1)
	NPDL A 1
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(-2,2),Random(-6,6),Random(-6,6),Random(-6,6),Random(-20,20),0,64)
	NSPF KJIHGFEDCBA 2
	TNT1 A 200
	Stop
	}
}

Actor NemesisRemiliaTeleportEnd : NemesisFragmentPortal
{
Scale 0.4
States
{
  Spawn:
    TNT1 AAAAAAAAA 0 A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(-2,2),Random(-6,6),Random(-6,6),Random(-6,6),Random(-20,20),0,64)
	TNT1 A 0 A_PlaySound("elite/teleportend")
	NFX8 ABCDEFGHIJLMN 2 A_FadeOut(0.1,0)
	Stop
	}
}

Actor NemesisRemiliaHitEffect : NemesisFragmentPortal
{
Scale 0.15
States
{
  Spawn:
    //TNT1 AAAAAAAAA 0 A_SpawnItemEx("VexedAuraStar",Random(-2,2),Random(-2,2),Random(-2,2),Random(-6,6),Random(-6,6),Random(-6,6),Random(-20,20),0,64)
	//TNT1 A 0 A_PlaySound("elite/teleportend")
	NFX8 ABCDEFGHIJLMN 2 A_FadeOut(0.1,0)
	Stop
	}
}