ACTOR Lamia : GenericBoss
{
floatspeed 8
Speed 8
Health 3500
Painsound "Lamia/pain"
Seesound "Lamia/Laugh"
Painchance 15
DamageFactor 0.75
DamageFactor "Legendary", 0.5
DropItem "BossLifeEssence" 255 25
DropItem "BossArmorBonusMax" 255 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "TearofEternity" 128
DropItem "DivinePowerSphere" 110
DropItem "OccultSpellbook" 200
DropItem "LegTimeFreezeSphere" 128 1
DropItem "SuperChargedWeaponEnhancerModuleGiver" 100
Obituary "%o experienced a world of torment from Lamia."
Tag "\c[q3]Lamia\c-"
+NORADIUSDMG
+NOTIMEFREEZE
var int user_music;
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "Remove")
  Idle:
    LAMI AAAABBBBCCCCDDDDEEEEFFFF 1 A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cacodemon~",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,710)
	TNT1 A 0 A_SetUserVar("user_music",1)
    LAMI GHIJKLMNOP 5
    Goto See2
  See2:
	TNT1 A 0 A_JumpIfHealthLower(500,"FinalSpell")
    LAMI AAAABBBBCCCCDDDDEEEEFFFF 1 A_Chase
    Loop
  Pain:
    LAMI I 0 A_pain
    LAMI Q 10
    Goto Missile
  Melee:
	Goto Missile
  Missile:
    LAMI A 0 A_facetarget
	//LAMI A 0 A_JumpIfCloser(250, "Pusher")
	LAMI A 0 A_Jump(80,"StatusEffect")
    LAMI A 0 A_Jump(256,"TrailKnife","MoreKnives","KnifeLoop","KnifeIntensifies")
    Goto See2
  StatusEffect:
    LAMI A 0 A_Jump(256,"YellowCard","RedCard")
    Goto See2
/*  Pusher:
	TNT1 A 0 A_Playsound("Lamia/Pusher")
    LAA1 QRS 6
	TNT1 A 0 A_Playsound("PusherOrb/Thrown", 0)
	TNT1 A 0 A_RadiusThrust(8000, 500)
	LAA1 TUVWX 5
	Goto Missile */
  YellowCard:
	TNT1 A 0 A_Playsound("Lamia/YellowCard")
    LAA5 ABCDEFGHIJ 4
	TNT1 A 0 A_CustomMissile("TFreezeEffect",30,0,0)
    TNT1 A 0 A_PlaySound("Lamia/TimeFreeze",7,1,0,ATTN_NONE)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	Goto Missile
  RedCard:
	TNT1 A 0 A_Playsound("Lamia/RedCard")
    LAA1 AFG 5
	LAA1 H 4 A_CustomMissile("LamiaWeakener")
	LAA1 I 6
	LAA1 HGFA 4
	Goto TrailKnife
  TrailKnife:
	TNT1 A 0 A_Playsound("Lamia/TrailKnife")
	LAA2 IJKLM 6
	LAA2 N 0 A_CustomMissile("LamiaTrailKnife",30,0,20)
	LAA2 N 0 A_CustomMissile("LamiaTrailKnife",30,0,-20)
	LAA2 N 0 A_CustomMissile("LamiaTrailKnife",30,0,0)
	LAA2 N 0 A_CustomMissile("LamiaTrailKnife",30,0,10,CMF_OFFSETPITCH,2)
	LAA2 N 0 A_CustomMissile("LamiaTrailKnife",30,0,-10,CMF_OFFSETPITCH,2)
	LAA2 N 5 A_CustomMissile("LamiaTrailKnife",30,0,0,CMF_OFFSETPITCH,2)
	LAA2 OPQR 5
	Goto See2
  MoreKnives:
	TNT1 A 0 A_Playsound("Lamia/MKoKI")
    LAA3 KLMN 7
	LAA3 O 5
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 P 3 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 P 3 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 Q 3 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-18)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-21)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-24)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-27)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-30)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-12,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,9,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-3,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-6,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,-9,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-3)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 P 0 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 Q 3 A_CustomMissile("LamiaBlueKnifeWeak",30,0,0)
	Goto See2
  KnifeLoop:
	TNT1 A 0 Thing_Stop(0)
	TNT1 A 0 A_Playsound("Lamia/DKoKL")
	LAA3 ABCDE 5 A_Facetarget
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+64, 31, 1, 0)
	LAA3 GH 3
	TNT1 A 0 Thing_Stop(0)
	LAA3 ABE 4
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+192, 60, 1, 0)
	LAA3 GH 3
	TNT1 A 0 Thing_Stop(0)
	LAA3 ABE 4
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	LAA3 GHI 6
	Goto See2
  KnifeIntensifies:
	TNT1 A 0 A_Playsound("Lamia/MKoKI")
	LAA3 ABCDE 5 A_Facetarget
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+64, 31, 1, 0)
	LAA3 GH 3
	TNT1 A 0 Thing_Stop(0)
	LAA3 ABE 4
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	LAA3 GH 3
	LAA3 ABE 4
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+192, 60, 1, 0)
	LAA3 GH 3
	TNT1 A 0 Thing_Stop(0)
	LAA3 ABE 4
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	LAA3 GH 3
	LAA3 ABE 4
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+64, 31, 1, 0)
	LAA3 GH 3
	TNT1 A 0 Thing_Stop(0)
	LAA3 ABE 4
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	LAA3 F 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	LAA3 F 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	LAA3 GHI 6
	Goto See2
  FinalSpell:
	TNT1 A 0 A_ChangeFlag("NOPAIN",true)
	TNT1 A 0 A_SetMass(100000000)
	TNT1 A 0 A_Playsound("Lamia/YellowCard")
    LAA5 ABCDEFGHIJ 4
	TNT1 A 0 A_CustomMissile("TFreezeEffect",30,0,0)
    TNT1 A 0 A_PlaySound("Lamia/TimeFreeze",7,1,0,ATTN_NONE)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LAA2 A 2 A_CustomMissile("LamiaTrailKnife",30,0,random(-10,10))
	LAA1 DCBA 4
	LAA4 ABCDABCDABCDABCD 6
	LAA4 EFGHIJ 6
	LAA4 KLMNO 4
	LAA4 P 0 A_Playsound("Lamia/Laugh", 0, 1, 0, ATTN_NONE)
  FinalSpellLoop:
	LAA4 PPPP 0 A_CustomMissile("LamiaRedKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 P 4 A_CustomMissile("LamiaTrailKnife",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaRedKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 Q 4 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaRedKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 R 4 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaRedKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 S 4 A_CustomMissile("LamiaTrailKnife",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaRedKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 T 4 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaRedKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 PPPP 0 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	LAA4 U 4 A_CustomMissile("LamiaBlueKnifeWeak",random(20,40),0,random(-45, 45),CMF_OFFSETPITCH,frandom(-2,10))
	Loop
  Death:
	TNT1 A 0 A_ChangeFlag("LOWGRAVITY",1)
	TNT1 A 0 A_ChangeFlag("NOGRAVITY",0)
	TNT1 A 0 A_ChangeFlag("FLOAT",0)
    LAMI QRS 15
	TNT1 A 0 A_NoBlocking
    TNT1 A 0 A_Scream
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedBossDeathExplode",0,0,32)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	TNT1 A 1
    Stop
  }
}

Actor LamiaBlueKnifeWeak : FastProjectile
{
Projectile
Radius 2
Height 3
Speed 35
damage 6
Scale 1
Decal BulletChip
SeeSound "Lamia/Throw"
//Missiletype "BlueKnifeTrail"
MissileHeight 8
Damagetype "Touhou"
+STRIFEDAMAGE
+BLOODSPLATTER
States
{
  Spawn:
    BKNI A 1
    Loop
  Crash:
  Death:
    BKNI A 0 A_PlaySound("Knife/WallImpact")
    BKNI A 1 A_SetTranslucent(0.90)
    BKNI A 1 A_SetTranslucent(0.80)
    BKNI A 1 A_SetTranslucent(0.70)
    BKNI A 1 A_SetTranslucent(0.60)
    BKNI A 1 A_SetTranslucent(0.50)
    BKNI A 1 A_SetTranslucent(0.40)
    BKNI A 1 A_SetTranslucent(0.30)
    BKNI A 1 A_SetTranslucent(0.20)
    BKNI A 1 A_SetTranslucent(0.10)
    Stop
  XDeath:
    BKNI A 0 A_PlaySound("Knife/BodyImpact")
    BKNI A 1 A_SetTranslucent(0.90)
    BKNI A 1 A_SetTranslucent(0.80)
    BKNI A 1 A_SetTranslucent(0.70)
    BKNI A 1 A_SetTranslucent(0.60)
    BKNI A 1 A_SetTranslucent(0.50)
    BKNI A 1 A_SetTranslucent(0.40)
    BKNI A 1 A_SetTranslucent(0.30)
    BKNI A 1 A_SetTranslucent(0.20)
    BKNI A 1 A_SetTranslucent(0.10)
    Stop
  }
}

Actor LamiaBlueKnifeWeak2 : LamiaBlueKnifeWeak { Speed 33 }

Actor LamiaBlueKnifeWeak3 : LamiaBlueKnifeWeak { Speed 31 }

Actor LamiaBlueKnifeWeak4 : LamiaBlueKnifeWeak { Speed 29 }

Actor LamiaBlueKnifeStrong : LamiaBlueKnifeWeak
{
  Radius 3
  Height 4
  Speed 30
  damage 12
  Scale 1.5
}

ACTOR BlueKnifeTrail
{
  +NOINTERACTION
  +FORCEXYBILLBOARD
  +CLIENTSIDEONLY
  RenderStyle Add
  Alpha 0.6
  Scale 0.1
  States
  {
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    BTRC A 1 Bright A_FadeOut(0.15)
    Wait
  }
}

Actor LamiaRedKnifeWeak : FastProjectile
{
Projectile
Radius 2
Height 3
Speed 40
damage 8
Scale 1
Decal BulletChip
SeeSound "Lamia/Throw"
//Missiletype "RedKnifeTrail"
MissileHeight 8
Damagetype "Touhou"
+STRIFEDAMAGE
+BLOODSPLATTER
States
{
  Spawn:
    RKNI A 1
    Loop
  Crash:
  Death:
    RKNI A 0 A_PlaySound("Knife/WallImpact")
    RKNI A 1 A_SetTranslucent(0.90)
    RKNI A 1 A_SetTranslucent(0.80)
    RKNI A 1 A_SetTranslucent(0.70)
    RKNI A 1 A_SetTranslucent(0.60)
    RKNI A 1 A_SetTranslucent(0.50)
    RKNI A 1 A_SetTranslucent(0.40)
    RKNI A 1 A_SetTranslucent(0.30)
    RKNI A 1 A_SetTranslucent(0.20)
    RKNI A 1 A_SetTranslucent(0.10)
    Stop
  XDeath:
    RKNI A 0 A_PlaySound("Knife/BodyImpact")
    RKNI A 1 A_SetTranslucent(0.90)
    RKNI A 1 A_SetTranslucent(0.80)
    RKNI A 1 A_SetTranslucent(0.70)
    RKNI A 1 A_SetTranslucent(0.60)
    RKNI A 1 A_SetTranslucent(0.50)
    RKNI A 1 A_SetTranslucent(0.40)
    RKNI A 1 A_SetTranslucent(0.30)
    RKNI A 1 A_SetTranslucent(0.20)
    RKNI A 1 A_SetTranslucent(0.10)
    Stop
  }
}

Actor LamiaRedKnifeWeak2 : LamiaRedKnifeWeak { Speed 38 }

Actor LamiaRedKnifeWeak3 : LamiaRedKnifeWeak { Speed 35 }

Actor LamiaRedKnifeWeak4 : LamiaRedKnifeWeak { SeeSound "" Speed 32 }

Actor LamiaRedKnifeStrong : LamiaRedKnifeWeak
{
  Radius 5
  Height 6
  Speed 35
  damage 15
  Scale 1.5
}

ACTOR RedKnifeTrail : BlueKnifeTrail
{
  States
  {
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    RTRC A 1 Bright A_FadeOut(0.15)
    Wait
  }
}

Actor LamiaTrailKnife : FastProjectile
{
Projectile
Radius 2
Height 3
Speed 50
damage (random(1,1)*10)
Scale 1.4
BounceCount 3
Decal BulletChip
SeeSound "Lamia/Throw"
//MissileType "PurpleKnifeTrail"
Missileheight 8
Damagetype "Touhou"
+STRIFEDAMAGE
+BLOODSPLATTER
+HEXENBOUNCE
States
{
  Spawn:
    PKNI A 2 A_CustomMissile("LamiaRedKnifeWeak4",0,0,90)
    PKNI A 0 A_CustomMissile("LamiaRedKnifeWeak4",0,0,-90)
    Loop
  Crash:
  Death:
    PKNI A 0 A_PlaySound("Knife/WallImpact")
    PKNI A 1 A_SetTranslucent(0.90)
    PKNI A 1 A_SetTranslucent(0.80)
    PKNI A 1 A_SetTranslucent(0.70)
    PKNI A 1 A_SetTranslucent(0.60)
    PKNI A 1 A_SetTranslucent(0.50)
    PKNI A 1 A_SetTranslucent(0.40)
    PKNI A 1 A_SetTranslucent(0.30)
    PKNI A 1 A_SetTranslucent(0.20)
    PKNI A 1 A_SetTranslucent(0.10)
    Stop
  XDeath:
    PKNI A 0 A_PlaySound("Knife/BodyImpact")
    PKNI A 1 A_SetTranslucent(0.90)
    PKNI A 1 A_SetTranslucent(0.80)
    PKNI A 1 A_SetTranslucent(0.70)
    PKNI A 1 A_SetTranslucent(0.60)
    PKNI A 1 A_SetTranslucent(0.50)
    PKNI A 1 A_SetTranslucent(0.40)
    PKNI A 1 A_SetTranslucent(0.30)
    PKNI A 1 A_SetTranslucent(0.20)
    PKNI A 1 A_SetTranslucent(0.10)
    Stop
  }
}

ACTOR PurpleKnifeTrail : BlueKnifeTrail
{
  States
  {
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    PTRC A 1 Bright A_FadeOut(0.15)
    Wait
  }
}

// ----------------------------

ACTOR TFreezeEffect
{   
   Radius 0
   Height 0
   Speed 0
   Scale 1.8
   +NOCLIP
   +NOTIMEFREEZE
   +CLIENTSIDEONLY
   PROJECTILE
   RENDERSTYLE Add
   states
   {
   Spawn:
      TNT1 A 4
      HBRY ABCDEFGHIJKLMNOPQR 2 BRIGHT A_FadeOut(0.0625)
      Stop
   }
}

Actor LamiaTimeFreezer
{
  Projectile
  Radius 3
  Height 3
  Speed 300
  damage 0
  +NOTIMEFREEZE
  +SEEKERMISSILE
  States
  {
  Spawn:
    TNT1 A 1 A_SeekerMissile(90,90)
    Loop
  Crash:
  Death:
    TNT1 A 0
    TNT1 A 0 A_PlaySound("Lamia/TimeFreeze", 4, 1, 0, ATTN_NONE)
	TNT1 A 0 A_RadiusGive("TimeFreezeIllusion", 5000, RGF_PLAYERS|RGF_CUBE, 1)
	Stop
  }
}

actor TimeFreezeLamia : PowerupGiver
{
inventory.pickupmessage " "
inventory.maxamount 0
powerup.type "TimeFreezer"
powerup.duration -2
+AUTOACTIVATE
+INVENTORY.FANCYPICKUPSOUND
states
{
 Spawn:
   TNT1 A 0
   stop
 }
}

Actor TimeFreezeIllusion : PowerupGiver
{
inventory.pickupmessage " "
inventory.maxamount 1
powerup.duration -2
powerup.color GoldMap
powerup.type "PowerDamage"
+AUTOACTIVATE
+INVENTORY.FANCYPICKUPSOUND
states
{
 Spawn:
   TNT1 A 0
   stop
 }
}

Actor LamiaWeakener : LamiaTimeFreezer
{
  States
  {
  Death:
    TNT1 A 0
    TNT1 A 0 A_PlaySound("Lamia/Magic", 4, 1, 0, ATTN_NONE)
	TNT1 A 0 A_RadiusGive("LamiaWeaken", 5000, RGF_PLAYERS|RGF_CUBE, 1)
	Stop
  }
}

ACTOR PowerWeaken : PowerProtection { DamageFactor "Normal", 2.0 }

ACTOR LamiaWeaken : PowerupGiver
{
  Inventory.MaxAmount 0
  Powerup.Color GreenYellow 0.25
  Powerup.Type "PowerWeaken"
  Powerup.Duration -5
  +INVENTORY.ADDITIVETIME
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
}