ACTOR VexedNemesisGeneralRoasterock : NemesisGeneralRoasterock
{
//Creator: Dr. Sticky
//Origin: Nexus Infinity
//Sprite: VGRR
//Title: "Vexed Nemesis General Roasterock"
Health 8000
Speed 20
DamageFactor "Explosion", 0.0001
DamageFactor "PlayerDTRG", 0.0001
DamageFactor "DTRailgun", 0.0001
DamageFactor "PDTPuff", 0.0001
DamageFactor "RailG", 0.0001
DamageFactor "PyroShot", 0.0001
DamageFactor "PlayerPyro", 0.0001
DamageFactor "PlayerBHole", 0.025
DamageFactor "PlayerDBFG", 0.015
DamageFactor "PlayerDBFG2", 0.015
DropItem "Nemesis BFG", 256
DropItem "Demon Tech BFG10K", 96, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "Nemesis Plasmatic Cannon", 200, 1
DropItem "VexedNemesisUltraSphere" 215
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "LegendaryRune" 70 1
DropItem "Backpack", 190, 1
DropItem "Backpack", 190, 1
DropItem "AmpGoggles", 190, 1
DropItem "SkullOfPower", 72, 1
DropItem "SkullOfPower", 72, 1
DropItem "DemonicChalice", 72, 1
DropItem "DemonicChalice", 72, 1
Tag "\c[w2]Vexed Nemesis General Roasterock\c-"
var int user_10K2;
var int user_painspam;
Obituary "%o let \cI Vexed Nemesis General Roasterock \c-get %h."
States
{
  Spawn:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VGRR A 10 A_look
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VGRR "Z" 10 A_look
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	Loop
  See:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2107)
	TNT1 A 0 A_SetUserVar("user_music",1)
	VGRR AABB 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR CCDD 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	Loop
  Idle:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VGRR A 0 A_LookEx(0,0,2048,2048,100)
	TNT1 A 0 A_SpawnItem("RoasterStepQuiet",0,0,0,0)
	VGRR AAAABBBB 2 A_Wander
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VGRR A 0 A_LookEx(0,0,2048,2048,100)
	TNT1 A 0 A_SpawnItem("RoasterStepQuiet",0,0,0,0)
	VGRR CCCCDDDD 2 A_Wander
	Loop
  Strafing:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VGRR A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	VGRR AABB 3 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VGRR C 0 A_SpawnItem("RoasterStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
    VGRR CCDD 3 A_GiveInventory("CommandoStrafing",1)
	Goto See	
  Sprint:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR AAAABBBB 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR CCCCDDDD 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR AAAABBBB 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR CCCCDDDD 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR AAAABBBB 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR CCCCDDDD 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR AAAABBBB 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR CCCCDDDD 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR AAAABBBB 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR CCCCDDDD 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR AAAABBBB 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("RoasterStep",0,0,0,0)
	VGRR CCCCDDDD 1 A_Chase
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	Goto See
	Pause:
	TNT1 A 0 A_PlaySoundEx("roaster/stop","SoundSlot6")
	VGRR G 10
	Goto See
  Missile:
    TNT1 A 0 A_Jump(10,"MegaAttack")
	TNT1 A 0 A_Jump(20,"MLGRocket3","MLGRocket4")
    TNT1 A 0 A_Jump(30,"BFG9K","MLGRocket2")
	TNT1 A 0 A_Jump(40,"Vexed10kAttack")
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","EBFG9500Ball","MLGRocket")
  Cannon:
	VGRR E 10 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisCyberHomingRocket",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	Goto See
  MLGRocket:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	VGRR G 0 A_JumpIf(ceilingz-floorz<=100,"DTBFG10K")
	VGRR E 10 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR F 4 Bright A_CustomMissile("RSTRocketJump",-10,10,0)
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 ThrustThingZ(0,35,0,0)
    TNT1 A 0 ThrustThing(angle*256/360,random(30,40))
	VGRR F 0 A_PlaySound ("Cardinal/9k")
	VGRR EEEEE 2 Bright A_FaceTarget
	VGRR FF 2 Bright A_FaceTarget
	VGRR F 2 Bright A_CustomMissile("VexedGeneralRDevastatorBall")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	Goto See
  MLGRocket2:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	VGRR G 0 A_JumpIf(ceilingz-floorz<=100,"Devastator")
	VGRR E 10 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR F 4 Bright A_CustomMissile("RSTRocketJump",-10,10,0)
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 ThrustThingZ(0,35,0,0)
    TNT1 A 0 ThrustThing(angle*256/360,random(30,40))
	VGRR F 0 A_PlaySound ("devastator/fire")
	VGRR EEEEE 2 Bright A_FaceTarget
	VGRR FF 2 Bright A_FaceTarget
	VGRR F 2 Bright A_CustomMissile("VexedGeneralRDevastatorBall")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	Goto See
  MLGRocket3:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	VGRR G 0 A_JumpIf(ceilingz-floorz<=100,"Devastator")
	VGRR E 10 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR F 4 Bright A_CustomMissile("RSTRocketJump",-10,10,0)
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 ThrustThingZ(0,35,0,0)
    TNT1 A 0 ThrustThing(angle*256/360,random(30,40))
	VGRR F 0 A_PlaySound ("devastator/fire")
	VGRR EEEEE 2 Bright A_FaceTarget
	VGRR FF 2 Bright A_FaceTarget
	VGRR F 2 Bright A_CustomMissile("VexedGeneralRDevastatorBall")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	Goto See
  MLGRocket4:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	VGRR G 0 A_JumpIf(ceilingz-floorz<=100,"Devastator")
	VGRR E 10 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR F 4 Bright A_CustomMissile("RSTRocketJump",-10,10,0)
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 ThrustThingZ(0,35,0,0)
    TNT1 A 0 ThrustThing(angle*256/360,random(30,40))
	VGRR F 0 A_PlaySound ("devastator/fire")
	VGRR EEEEE 2 Bright A_FaceTarget
	VGRR FF 2 Bright A_FaceTarget
	VGRR F 2 Bright A_CustomMissile("VexedGeneralRDevastatorBall")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	Goto See
  DTBFG10K:
    VGRR F 0 A_PlaySound ("NemesisBFG/Fire")
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR EE 2 Bright A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR EE 2 Bright A_FaceTarget
	VGRR F 2 Bright A_CustomMissile("NemesisGuruBall")
	VGRR F 0 A_PlaySound ("NemesisBFG/Fire")
	VGRR EE 2 Bright A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR EEE 2 Bright A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR E 2 Bright A_FaceTarget
	VGRR FF 2 Bright A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR FFFF 2 Bright A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 2 Bright A_CustomMissile("NemesisGuruBall")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	VGRR E 35
    goto See
  Devastator:
    VGRR E 0 A_FaceTarget
    VGRR E 0 A_PlaySound ("devastator/charge")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	TNT1 A 0 A_SetUserVar("user_missile", 0)
  DevCharge:
    TNT1 A 0 A_JumpIf(user_missile > 20,"Charged")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
    VGRR E 2 Bright A_FaceTarget
    Loop
  Charged:
	VGRR FF 2 Bright A_Facetarget
    VGRR F 0 A_PlaySound ("devastator/fire")
    VGRR F 10 Bright A_CustomMissile("VexedGeneralRDevastatorBall")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
    VGRR E 35
    goto See
  Chaingun:
    TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	VGRR E 0 A_PlaySoundEx("roaster/start","SoundSlot6")
	VGRR GGGGGGGGGG 3 A_FaceTarget
	VGRR E 0 A_PlaySoundEx("roaster/loop","SoundSlot6",true)
	Goto ChainLoop
  ChainLoop:
    VGRR G 0 A_JumpIfInventory("RoasterChainTimer",40,"ChainEnd")
	VGRR E 0 A_PlayWeaponSound("NemesisCannon/Mode2")
	TNT1 A 0 A_CustomMissile("NemesisZombieCannonLaser",Random(30,34),-10,Random(5,-5),0)
    VGRR H 1 Bright
	VGRR E 0 A_PlayWeaponSound("NemesisCannon/Mode2")
	TNT1 A 0 A_CustomMissile("NemesisZombieCannonLaser",Random(30,34),-10,Random(5,-5),0)
    VGRR H 1 Bright
	VGRR G 1 A_GiveInventory("RoasterChainTimer",1)
	TNT1 A 0 A_StopSoundEx("Roaster")
    VGRR G 0 A_MonsterRefire(10, "ChainEnd")
    Loop
  ChainEnd:
    TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	VGRR E 0 A_PlaySoundEx("roaster/stop","SoundSlot6")
	VGRR G 0 A_TakeInventory("RoasterChainTimer",40)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	VGRR G 10
	Goto See
  LegMissile:
	VGRR E 0 A_PlaySoundEx("roaster/prep","SoundSlot6")
	VGRR IIIIIIIIII 3 A_FaceTarget
	VGRR J 0 A_PlayWeaponSound("NemesisCannon/BigLaser")
    VGRR J 5 Bright A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlayWeaponSound("NemesisCannon/BigLaser")
    VGRR J 5 Bright A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlayWeaponSound("NemesisCannon/BigLaser")
    VGRR J 5 Bright A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlayWeaponSound("NemesisCannon/BigLaser")
    VGRR J 5 Bright A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlayWeaponSound("NemesisCannon/BigLaser")
    VGRR J 5 Bright A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlayWeaponSound("NemesisCannon/BigLaser")
    VGRR J 5 Bright A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlayWeaponSound("NemesisCannon/BigLaser")
    VGRR J 5 Bright A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR I 3 A_FaceTarget
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	VGRR I 14
    Goto See
  ShoulderMissile:
	VGRR E 0 A_PlaySoundEx("roaster/prep","SoundSlot6")
	VGRR IIIIIIIIII 3 A_FaceTarget
	VGRR J 0 A_PlaySound("LegCannon/Fire", CHAN_WEAPON)
    VGRR K 2 bright A_CustomMissile("NemDoomSlayerCannonBall",62,20)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlaySound("LegCannon/Fire", CHAN_WEAPON)
    VGRR K 2 bright A_CustomMissile("NemDoomSlayerCannonBall",62,20)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlaySound("LegCannon/Fire", CHAN_WEAPON)
    VGRR K 2 bright A_CustomMissile("NemDoomSlayerCannonBall",62,20)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlaySound("LegCannon/Fire", CHAN_WEAPON)
    VGRR K 2 bright A_CustomMissile("NemDoomSlayerCannonBall",62,20)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlaySound("LegCannon/Fire", CHAN_WEAPON)
    VGRR K 2 bright A_CustomMissile("NemDoomSlayerCannonBall",62,20)
	VGRR I 3 A_FaceTarget
	VGRR J 0 A_PlaySound("LegCannon/Fire", CHAN_WEAPON)
    VGRR K 2 bright A_CustomMissile("NemDoomSlayerCannonBall",62,20)
	VGRR I 3 A_FaceTarget
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	VGRR I 14
    Goto See
  MegaAttack:
	VGRR L 0 A_PlaySound("roaster/pain")
	VGRR LLLLLL 4 A_FaceTarget
	VGRR J 0 A_PlaySound("roaster/javelin", CHAN_WEAPON)
	VGRR J 0 A_PlaySoundEx("roaster/leg", "SoundSlot6")
	VGRR J 0 A_PlaySoundEx("roaster/shoulder", "SoundSlot5")
	VGRR L 0 A_CustomMissile("NemesisNobleRailLaser",62,20)
	VGRR L 0 A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR L 0 A_CustomMissile("NemesisZombieCannonIonBeam",12,-10)
	VGRR L 0 A_CustomMissile("MiniNemesisBFGBall",28,10)
	VGRR L 0 A_CustomMissile("NemesisSentientBFG9500Ball",28,-10)
	VGRR L 0 A_CustomMissile("NemesisSentientBFG9500Ball",28,10)
	VGRR F 2 Bright A_CustomMissile("NemesisGuruBall")
    VGRR M 2 bright
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	VGRR L 14
    Goto See
  FireBalls:
	VGRR E 20 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_PlaySound("monsters/darkcyberrail",CHAN_WEAPON)
	VGRR F 4 Bright A_CustomMissile("NemesisNobleRailLaser",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("monsters/darkcyberrail",CHAN_WEAPON)
	VGRR F 4 Bright A_CustomMissile("NemesisNobleRailLaser",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_PlaySound("monsters/darkcyberrail",CHAN_WEAPON)
	VGRR F 4 Bright A_CustomMissile("NemesisNobleRailLaser",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_PlaySound("monsters/darkcyberrail",CHAN_WEAPON)
	VGRR F 4 Bright A_CustomMissile("NemesisNobleRailLaser",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_PlaySound("monsters/darkcyberrail",CHAN_WEAPON)
	VGRR F 4 Bright A_CustomMissile("NemesisNobleRailLaser",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("monsters/darkcyberrail",CHAN_WEAPON)
	VGRR F 4 Bright A_CustomMissile("NemesisNobleRailLaser",28,10,Random(4, -4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_PlaySound("monsters/darkcyberrail",CHAN_WEAPON)
	VGRR F 4 Bright A_CustomMissile("NemesisNobleRailLaser",28,10,Random(4, -4))
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	Goto See
  EDTBFG10KBall:
	TNT1 A 0 A_PlaySound("MreimuBall/Cast")
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("MiniNemesisBFGBall",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR F 4 Bright A_CustomMissile("MiniNemesisBFGBall",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR F 4 Bright A_CustomMissile("MiniNemesisBFGBall",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2","MLGRocket3","MLGRocket4")
	Goto See
 Vexed10kAttack:
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	VGRR GGGG 6 A_FaceTarget
  BFG10KLoop:
    TNT1 A 0 A_JumpIf(user_missile >= 12,"BFG10KEnd")
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	VGRR H 3 A_CustomMissile("Nemesis10kProjectile",Random(30,34),-10,Random(5,-5),0)	
	VGRR E 3 A_FaceTarget
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
    Loop
  BFG10KEnd:
    TNT1 A 0 A_Jump(128,"BFG10K2","BFG10KPause")
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_SetUserVar(user_10K2,0)
	TNT1 A 0 A_SetUserVar(user_painspam,0)
    VGRR E 20 A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	Goto See
  BFG10KPause:
    TNT1 A 0 A_JumpIf(user_missile >= 117,"BFG10KEnd")
	TNT1 A 0 A_JumpIfTargetInLOS("BFG10K2")
	VGRR H 4 A_SpawnItem("NemesisHellionSmokeSpawner")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  BFG10K2:
    TNT1 A 0 A_JumpIf(user_10K2 >= 35,"BFG10KEnd")
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	VGRR H 1 A_CustomMissile("Nemesis10kProjectile",Random(30,34),-10,Random(5,-5),0)	
	VGRR E 1 A_FaceTarget
	TNT1 A 0 A_SetUserVar(user_10K2,user_10K2+1)
    Loop
   BFG9K:
    VGRR L 0 A_PlaySound("roaster/See7")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	VGRR E 5 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR E 5 A_FaceTarget 
	TNT1 A 0 A_PlaySound("weapons/bfgf")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
    VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10, -20)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10, -10)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10, 0)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10, 10)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10, 20)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10, 30)
	TNT1 A 0 A_PlaySound("weapons/dtech10ksteam")
	VGRR EEE 20 Bright A_SpawnItemEx("NemesisHellionSmokeSpawner",28,10,0)
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","MLGRocket","EBFG9500Ball","MegaAttack","BFG9K","MLGRocket2")
    Goto See
  EBFG9500Ball:
	VGRR E 10 A_FaceTarget
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	VGRR E 0 A_GiveInventory("CommandoStrafing",1)
	VGRR F 4 Bright A_CustomMissile("NemesisSentientBFG9500Ball",28,10,Random(4,-4))
	VGRR E 5 A_FaceTarget
	TNT1 A 0 A_Jump(150,"Cannon","Chaingun","LegMissile","ShoulderMissile","DTBFG10K","Devastator","FireBalls","EDTBFG10KBall","EBFG9500Ball","MLGRocket","MegaAttack","BFG9K","MLGRocket2")
	Goto See
  Dodge:
	VGRR A 1 A_FaceTarget
	VGRR E 0 ThrustThingZ(0, 20, 0, 0)
	VGRR A 0 A_Jump(256, "DodgeRight", "DodgeLeft")
  DodgeLeft:
	VGRR E 0 ThrustThing(angle*256/360+192, 15, 0, 0)
	Goto Sprint
  DodgeRight:
	VGRR E 0 ThrustThing(angle*256/360+64, 15, 0, 0)
	Goto Sprint
  Pain:
    TNT1 A 0 A_Jump(100,"PainMissile")
    VGRR N 5 A_Pain
    Goto See
  PainMissile:
    VGRR N 5 A_Pain
    Goto Missile
  Pain.PlayerDBFG10K2:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Pain.DBFG10K2:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Pain.DBFG:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Pain.PlayerDBFG:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Pain.DBFG2:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Pain.PlayerDBFG210K:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Pain.DBFG210K:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Pain.DBFG2Splash:
    TNT1 A 0 A_Jump(256,"Dodge")
	Goto See
  Death:
	VGRR A 0 A_NoBlocking
    VGRR A 0 A_Scream
	VGRR OPQRST 6 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(1,8),0,2,random(0,360),0,150)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(1,8),0,2,random(0,360),0,200)
	TNT1 A 0 A_PlaySoundEx("roaster/stop","SoundSlot6")
	TNT1 A 0 A_SpawnItem("NemesisDeathBall",0,0,0,0)
	VGRR U 100 A_SpawnItemEx("VexedNemesisRoasterockBeacon")
	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,192)
	VGRR U -1
    Stop
  }
}

Actor VexedNemesisRoasterockBeacon : ActiveFormerBeacon
{
  +NOTIMEFREEZE
  States
  {
  Spawn:
    NBEC A 105
    TNT1 A 0 A_SpawnItemEx("TeleportFog")
    TNT1 A 0 A_SpawnItemEx("VexedNemesisCommando",0,0,8,0,0,0,0,1)
    NBEC A 105
    TNT1 A 0 A_SpawnItemEx("TeleportFog")
    TNT1 A 0 A_SpawnItemEx("VexedNemesisAssaultCaptain",0,0,8,0,0,0,0,1)
    NBEC A 105
    TNT1 A 0 A_SpawnItemEx("TeleportFog")
    TNT1 A 0 A_SpawnItemEx("VexedNemesisSuperShotgunZombie",0,0,8,0,0,0,0,1)
    NBEC A 105
    TNT1 A 1 A_SpawnItemEx("TeleportFog")
    stop
  }
}

ACTOR VexedGeneralRDevastatorBall
{
Radius 18
Height 18
Damage 3000
Speed 40
Alpha 0.95
Scale 0.7
RENDERSTYLE Translucent
Species "Imps"
DamageType "Cyber10K"
Alpha 0.85
PROJECTILE
+FORCERADIUSDMG
+FORCEXYBILLBOARD
+EXTREMEDEATH
+SKYEXPLODE
+MTHRUSPECIES
+NOTIMEFREEZE
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_Jump(128,"DTBFGSFX")
    TNT1 A 0 A_AlertMonsters
    TNT1 A 0 A_PlaySoundEx("devastator/fly","Voice",1)
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
    KGS2 A 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	KGS2 AAA 0 A_CustomMissile("NemCardLiteShot",0,0,Random(0,360))
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	KGS2 B 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	KGS2 C 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	KGS2 CCC 0 A_CustomMissile("NemCardLiteShot",0,0,Random(0,360))
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_CustomMissile("NemDevastatorTrail",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
	KGS2 D 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    Loop
  DTBFGSFX:
    TNT1 A 0 A_AlertMonsters
    TNT1 A 0 A_PlaySoundEx("devastator/fly","Voice",1)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningWhite",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    KGS2 A 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	KGS2 A 1 Bright A_CustomMissile("ZamImpDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningWhite2",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    KGS2 B 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	KGS2 A 1 Bright A_CustomMissile("ZamImpDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningWhite",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    KGS2 C 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	KGS2 A 1 Bright A_CustomMissile("ZamImpDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("ZamasuImpDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningWhite2",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
	TNT1 A 0 A_CustomMissile("NemDevastatorTrail",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
    KGS2 D 1 Bright A_SpawnItemEx("ProjectileTrailParticleWhite",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	KGS2 A 1 Bright A_CustomMissile("ZamImpDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
    Goto Spawn
  Death:
    TNT1 A 0
	TNT1 A 0 A_SetTranslucent(0.75,1)
	TNT1 A 0 Radius_Quake(3,35,0,10,0)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,10,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,20,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,30,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,40,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,50,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,60,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,70,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,80,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,90,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,100,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,110,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,120,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,130,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,140,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,150,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,160,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,170,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,180,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,190,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,200,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,210,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,220,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,230,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,240,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,250,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,260,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,270,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,280,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,290,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,300,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,310,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,320,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,330,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,340,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NemCardDTBFGTracer",0,0,350,CMF_TRACKOWNER)	
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningWhiteSpawner",0,0,0,0,0,0,0,128)	
	TNT1 A 0 A_Explode(80,256)
	KGS2 A 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 B 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 C 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 D 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 A 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 B 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 C 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 D 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 A 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 B 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 C 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	KGS2 D 6 Bright A_SpawnItemEx("NemDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(128,1024,0)
	TNT1 A 0 A_Explode(460,640,0)
	TNT1 A 0 A_Explode(618,256)
	TNT1 A 0 A_StopSoundEx("Voice")
	TNT1 A 0 Radius_Quake(20,12,0,12,0)
	TNT1 A 0 A_PlaySound("weapons/dtech10kexplode")
	TNT1 A 0 A_SpawnItemEx("NemDevastatorShockWave2",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_SpawnItem("NemCardDTBFGEx",0,-10)
	NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,18,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,36,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,54,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,72,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,90,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,108,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,126,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,144,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,144,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,162,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,180,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,196,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,216,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,234,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,252,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,270,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,288,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,306,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,324,2)
    NGE1 D 0 A_CustomMissile("NemCardDevastatorBall2",0,0,342,2)
	NGE1 AAAAAABBBBBBCCCCCCDDDDDD 1 A_CustomMissile("NemKaboomDevastator22",0,0,random(0,360),2,random(0,360))
    NGE1 EF 6 Bright
    Stop    
    }
}

ACTOR ZamasuImpDevastatorBolt : DevastatorBolt
{
  +NOTIMEFREEZE
  States
  {
  Spawn:
  	NVS1 A 0 A_Seekermissile(5,5,SMF_LOOK)
    NVS1 A 1 A_SpawnItem("NemBoltTrail")
    Loop
  Death:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "ToasterDeath")
    TNT1 A 0 A_SpawnItemEx("NemesisWhiteParticleSpawner",0,0,0,0,0,0,0,128)
    TNT1 AAAA 0 A_CustomMissile("NemKaboomDevastator15",0,0,random(0,360),2,random(0,360))
  ToasterDeath:
    NVS1 LMN 2
    Stop
  }
}

ACTOR ZamImpDTBFGProjectileAttack : PlayerDTBFGProjectileAttack
{
PROJECTILE
Obituary "%o got surprisingly slaughtered by a Zamasu Imp."
MissileType "ZamImpDTBFGRailgunSlug"
+LOOKALLAROUND
+ISMONSTER
+QUICKTORETALIATE
+NOTARGET
+NOCLIP
+NOTIMEFREEZE
States
{
  Spawn:
    TNT1 A 0
	TNT1 AAAAA 1 A_Look
	Stop
  See:
    TNT1 A 0
	TNT1 A 1 A_JumpIfCloser(1250,"Attack")
	Stop
  Attack:
    TNT1 A 0
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_MissileAttack
	TNT1 A 1 A_CustomRailgun(-1,0,NONE,"White",1,1,1)
	Goto Death	
  Death:
	TNT1 A 1
	Stop
	}
}

ACTOR ZamImpDTBFGRailgunSlug : SentientDTBFGRailgunSlug { Species "Imps" DamageType "Legendary" }

ACTOR NemCardLiteShot : LiteShot
{
Damage 40
Damagetype "Cyber10K"
+NOTIMEFREEZE
States
{
  Spawn:
	NLIT AAABBBCCC 1 Bright A_SpawnItem ("NemLiteTrail",0,0,0)
	Loop
  Death:
	NLIT DEFGHIJKLMNO 1 Bright
	Stop
   }
}

ACTOR ProjectileTrailParticleWhite : ProjectileTrailParticleRed
{
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
	MPKG A 2 Bright A_FadeOut(0.015)
	Wait
	}
}

Actor NemDevastatorTrail : DevastatorTrail
{
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    NDCR A 4 bright A_FadeOut(0.1)
    Wait
  }
}

ACTOR NemDevastatorShockWave : DevastatorShockwave
{
+NOTIMEFREEZE
States
{
  Spawn:
	NHOG ABCDEFGHIJKLMNOPQR 1 Bright A_FadeOut(0.025)
	Stop
	}
}

ACTOR NemDevastatorShockWave2 : LegDevastatorShockWave
{
Speed 0
Scale 2.5
States
{
  Spawn:
	NHOG ABCDEFGHIJKLMNOPQR 2 Bright A_FadeOut(0.015)
	Stop
	}
}

ACTOR NemCardDevastatorBall2
{
Radius 8
Height 8
Speed 24
Damage 50
PROJECTILE
RENDERSTYLE ADD
ALPHA 0.90
ExplosionRadius 68
ExplosionDamage 132
Damagetype "Cyber10K"
Decal DoomImpScorch
Species "Cybers"
SeeSound "weapons/devbal"
DeathSound "weapons/devex2"
+THRUGHOST
+NOTIMEFREEZE
States
{
  Spawn:
	GBA2 AB 4 Bright
	Loop
  Death:
	//LBA2 C 1 Bright
	//LBA2 C 3 Bright A_Explode
	TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("WhiteParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128)
	TNT1 AAA 0 A_CustomMissile("Kaboom9White", 0, 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_CustomMissile("SmokeFX4", 0, 0, random(0,360), 2, random(0,360))
	GBA2 CDE 3 Bright A_Explode
	Stop
   }
}

ACTOR NemCardDTBFGEx : PlayerDTBFGEx
{
RenderStyle Add
Alpha 0.85
+CLIENTSIDEONLY
+NOGRAVITY
+NOTIMEFREEZE
States
{
  Spawn:
	NGE1 AAAAAABBBBBBCCCCCCDDDDDD 1 Bright A_CustomMissile("KaboomNard", 0, 0, random(0,360), 2, random(0,360))
	NGE1 EF 6 Bright
	Stop
	}
}

ACTOR KaboomNard : Kaboom15
{
Speed 6
Scale 1.15
+NOTIMEFREEZE
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
	NXPG AABBCDEFGHIJKLM 2 Bright A_FadeOut(0.05)
	Stop
	}
}

ACTOR NemKaboomDevastator22 : KaboomDevastator
{
Speed 1
Scale 1.5
+NOTIMEFREEZE
States
{
  Spawn:
	NVPR ABCDEFGHIJKLMNOP 1 Bright A_FadeOut(0.025)
	Stop
	}
}