ACTOR DualSabreClaw : TSIMinionBase
{
//Creator: Fluffy
//Origin: Nexus Infinity
//Sprite: DUC3
//Title: "Dual Sabre Claw"
Health 280
Radius 20
Height 64
Mass 75
Speed 8
PainChance 32
MeleeRange 64
MaxTargetRange 320
Minmissilechance 20
SeeSound "DUALCLI4"
AttackSound "DUALCLI2"
PainSound "DUALCLI5"
DeathSound "DUALCLI3"
ActiveSound "DUALCLI1"
HitObituary "%o was sliced by a Dual Sabreclaw."
Obituary "%o was sliced by a Dual Sabreclaw."
DropItem "BossLifeEssence", 180
DropItem "HEMArmorBonusMax5", 180
Tag "\c[j4]Dual Sabreclaw\c-"
+NOBLOOD
+FLOORCLIP
+MissileMore
+MissileEvenMore
States
{
  Spawn:
    DUC3 A 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 A 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 A 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 B 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 B 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 B 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 C 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 C 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 C 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 D 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 D 1 A_Wander
	TNT1 A 0 A_Look
    DUC3 D 1 A_Wander
	TNT1 A 0 A_Look
    Loop
  See:
    DUC3 AAABBBCCCDDD 1 A_Chase
    Loop
  Melee:
    DUC3 E 4 A_FaceTarget
    DUC3 F 3 A_FaceTarget
    DUC3 G 5 A_CustomMeleeAttack(random(5,12), "DUALCLI2", "DUALCLI2")
    DUC3 H 4 A_FaceTarget
    DUC3 I 3 A_FaceTarget
    DUC3 J 5 A_CustomMeleeAttack(random(5,12), "DUALCLI2", "DUALCLI2")
    DUC3 J 0 a_jumpifcloser(80,"see")
    DUC3 J 0 a_jumpifcloser(320,"LeapAttack")
    Goto See
  Missile:
  LeapAttack:
    DUC3 M 1 a_facetarget
    DUC3 M 0 ThrustThing(angle*256/360, 25, 0, 0)
    DUC3 M 1 ThrustThingZ (0, 25, 0, 0)
    DUC3 M 0 a_facetarget
    DUC3 M 0 a_playsound("DUALCLI2")
    DUC3 MN 3 A_CustomMeleeAttack(random(5,12), "DUALCLI2", "DUALCLI2")
    DUC3 N 1 A_CheckFloor("OnGround")
    Goto LeapAttack+3
  OnGround:
    DUC3 K 4 a_facetarget
    Goto See
  Pain:
    DUC3 K 0 a_jump(128,"Pain2")
    DUC3 K 3
    DUC3 K 3 A_Pain
    Goto See
  Pain2:
    DUC3 L 3
    DUC3 L 3 A_Pain
    Goto See
  Death:
    DUC3 K 4 A_Scream
    DUC3 OP 4
	TNT1 A 0 A_CustomMissile("SuicideBomb",24,0,0,CMF_AIMDIRECTION)
    TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,24,0,0,0,0,128) 
    TNT1 AAA 0 A_CustomMissile("Kaboom3",24,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("SmokeFX2",24,0,random(0,360),2,random(0,360))
    TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,24,Random(4,-4),Random(4,-4),Random(4,8),0,128)
    TNT1 A 0 A_SpawnItem("RocketEx",0,24)
	TNT1 A 0 A_PlaySound("weapons/rocklx",CHAN_BODY)
    DUC3 Q 5
    DUC3 R 5 A_NoBlocking
    DUC3 ST 5
    DUC3 T -1
    Stop
    }
}

Actor DualSabreClaw2 : DualSabreClaw { Tag "\c[m9]Beholder\c-" Species "Fiends" +COUNTKILL }