actor TzarShot : plasmaball
{
  Damage 900
  SeeSound ""
  RenderStyle Add
  alpha 0.5
  scale 3
  Decal none
  +EXTREMEDEATH
  +FORCERADIUSDMG
  DamageType "BoomerExplosive3"
  DEATHSOUND "TZARBOOM"
  Obituary "%o got nuked by %k."
  SelfObituary "%o got nuked."
  States
  {
  Spawn: 
    TZRA G 1 bright A_SpawnItemEx("BoomerTeslaExtra1",0,0,0,random(-4,4),random(-4,4),random(-4,4),random(1,360))
	NULL A 0 A_SpawnItem("BoomerTeslaTail")
	TZRA H 1 bright A_SpawnItemEx("BoomerTeslaTail",0,0,0,random(-4,4),random(-4,4),random(-4,4),random(1,360))
	NULL A 0 A_SpawnItem("BoomerTeslaExtra1")
    Loop
	death:
	NULL AAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("BoomerTeslaExtra",0,0,0,random(-4,4),random(-4,4),random(-4,4),random(1,360))
 TNT1 AA 0 A_SpawnItemEx ("TZAREXPLO",0,0,0,2,0,random(-2,2),random(0,359))
    TNT1 AAAAA 0 A_SpawnItemEx ("TZAREXPLO2",0,0,0,2,0,random(-3,3),random(0,359))
	 TNT1 AA 0 A_SpawnItemEx ("TZAREXPLO",0,0,0,2,0,random(-2,2),random(0,359))
    TNT1 AAAAA 0 A_SpawnItemEx ("TZAREXPLO2",0,0,0,2,0,random(-3,3),random(0,359))
  TNT1 A 0 a_Quake(3,10,0,5000,0)
	Stop
  }
}

Actor BoomerTeslaExtra
{
	Projectile
	Damage 0
	+RIPPER
	+BLOODLESSIMPACT
	Speed 0
	Radius 1
	Height 1
	Scale 5
	RenderStyle Add
	States
	{
	Spawn:
		TZRA GH 1 Bright
		NULL A 0 A_Jump(160,1)
		Loop
		TZRA GH 1 Bright
		TZRA GH 1 Bright A_FadeOut
		Wait
	Death:
		NULL A 1
		Stop
	}
}
Actor BoomerTeslatail
{
	Projectile
	Damage 0
	+RIPPER
	+BLOODLESSIMPACT
	+NOGRAVITY
	Speed 0
	Radius 1
	Height 1
	Scale 4
	RenderStyle Add
	States
	{
	Spawn:
		TZRA GH 1 bright A_FadeOut
		wait
	}
}
Actor BoomerTeslaExtra1 : BoomerTeslaExtra
{
Scale 0.1
}

Actor TZAREXPLO
{
    +FORCEXYBILLBOARD
	+EXTREMEDEATH
    +BRIGHT
    +NOINTERACTION
	+FORCERADIUSDMG
    Scale 3
	DEATHSOUND "TZARBOOM"
    Alpha 0.9
	DamageType "BoomerExplosive3"
    Renderstyle "Add"
	Obituary "%o got nuked by %k."
	SelfObituary "%o got nuked."
    States
    {
    Spawn:
        FTX1 A 0
        FTX1 A 0 
		TNT1 A 0 A_Explode(900, 500, 1)
        TZRA IIJJKKLLMM 1 BRIGHT A_FadeOut(0.05,1)
        Stop
    }
}

Actor TZAREXPLO2
{
    +FORCEXYBILLBOARD
    +BRIGHT
    +NOINTERACTION
	+FORCERADIUSDMG
	+EXTREMEDEATH
    Scale 3
	DEATHSOUND "TZARBOOM"
    Alpha 0.9
	DamageType "BoomerExplosive3"
    Renderstyle "Add"
	Obituary "%o got nuked by %k."
	SelfObituary "%o got nuked."
    States
    {
    Spawn:
        FTX1 A 0
        FTX1 A 0 
		TNT1 A 0 A_Explode(900, 250, 1)
        PULS AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQRRSSTT 1 BRIGHT  A_FadeOut(0.05,1)
        Stop
    }
}

ACTOR BoomerTZARPUSHKA : Weapon
{
  Weapon.SelectionOrder 1900
  Weapon.AmmoUse 1
  Weapon.AmmoGive 1
  Weapon.AmmoType "BoomerMininukes"
  Inventory.PickupMessage "You got Tzar Pushka!Like Pyotr The 1st Intended!"
  Tag "ROS-guard EXPERIMENTAL Tzar Pushka"
  DECAL "SCORCH"
  Inventory.RestrictedTo "BoomerClass"
  Obituary "%o got nuked by %k."
  SelfObituary "%o got nuked."
  States
  {
  Ready:
    TZAR A 2 OFFSET(9,128)
	TZAR A 2 OFFSET(7,96)
	TZAR A 2 OFFSET(5,72)
	TZAR A 2 OFFSET(3,48)
	TZAR A 2 OFFSET(1,36)
    GOTO READY2
	Ready2:
    TZAR A 1 A_WeaponReady
    Loop
  Deselect:
    TZAR AA 0 A_Lower
	TZAR A 2 A_Lower
    Loop
  Select:
    TZAR AA 0 A_Raise
	TZAR A 0 A_Raise
    Loop
  Fire:
   TZAR A 2 BRIGHT
   TNT1 A 0 A_PLAYSOUND("TZARON", CHAN_AUTO)
   TZAR A 2 OFFSET(2,32) BRIGHT
   TZAR A 2 OFFSET(1,32) BRIGHT
   TZAR A 2 OFFSET(-1,32) BRIGHT
   TZAR A 2 OFFSET(-2,32) BRIGHT
     TZAR A 2 OFFSET(2,32) BRIGHT
   TZAR A 2 OFFSET(1,32) BRIGHT
   TZAR A 2 OFFSET(-1,32) BRIGHT
   TZAR A 2 OFFSET(-2,32) BRIGHT
    TNT1 A 0 A_PLAYSOUND("TZARSHOT", CHAN_AUTO)
	TZAR B 3 OFFSET(0,33) BRIGHT
	TZAR C 3 OFFSET(0,34) BRIGHT
	TZAR D 0 A_GUNFLASH
	TZAR D 3 OFFSET(0,35) BRIGHT a_firecustommissile("tzarshot")
	TZAR E 3 OFFSET(0,39) BRIGHT
	TZAR F 3 OFFSET(0,36) BRIGHT
	TZAR G 3 OFFSET(0,34) BRIGHT
	TZAR A 2 OFFSET(0,33) BRIGHT
	TZAR A 20 OFFSET(0,32) BRIGHT
    Goto Ready2
  Spawn:
    PIST A -1
    Stop
  }
}

Actor BoomerMininukes : Ammo
{
	Inventory.Amount 1
	Inventory.Maxamount 5
	Inventory.Maxamount 1
	Ammo.BackpackMaxamount 5
}