ACTOR "Alien Tank" : "Pig Tank" 31103
{
    //$Category DN3D Aliens //Tanks
	Obituary "%o was shredded by a Alien tank."
	AttackSound "Trooper/Attack"
    States
    {
    Spawn:
        TAE1 A 2 A_Look
        TAE1 A 0 A_StopSoundEx("SoundSlot7")
        Loop
	See:
        TAE1 A 0 
        TAE1 A 0 A_PlaySoundEx("Pig/Tank2","SoundSlot7",1)
        TAE1 ABC 4 A_Chase
        Loop
	Missile:
        TAE1 A 1 A_JumpIfCloser(725,"Grenade")
	Laser:
        TAE1 A 0 A_StopSoundEx("SoundSlot7")
		TAE1 A 0 A_PlaySound("Railgun/Up",6)
        TAE1 A 20 A_FaceTarget
		TAE1 A 0 A_FaceTarget	
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)
        TAE1 D 2 Bright A_CustomMissile("AlienBullet",60,-32,0,0)
		TAE1 A 2
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)		
        TAE1 D 2 Bright A_CustomMissile("AlienBullet",50,-32,0,0)
		TAE1 A 2
        TAE1 A 0 A_FaceTarget	
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)	
        TAE1 E 2 Bright A_CustomMissile("AlienBullet",60,29,0,0)
		TAE1 A 2
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)		
        TAE1 E 2 Bright A_CustomMissile("AlienBullet",50,29,0,0)
		TAE1 A 2
		TAE1 A 0 A_FaceTarget	
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)
        TAE1 D 2 Bright A_CustomMissile("AlienBullet",60,-32,0,0)
		TAE1 A 2
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)		
        TAE1 D 2 Bright A_CustomMissile("AlienBullet",50,-32,0,0)
		TAE1 A 2
        TAE1 A 0 A_FaceTarget	
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)	
        TAE1 E 2 Bright A_CustomMissile("AlienBullet",60,29,0,0)
		TAE1 A 2
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)		
        TAE1 E 2 Bright A_CustomMissile("AlienBullet",50,29,0,0)
		TAE1 A 2
		TAE1 A 0 A_FaceTarget	
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)
        TAE1 D 2 Bright A_CustomMissile("AlienBullet",60,-32,0,0)
		TAE1 A 2
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)		
        TAE1 D 2 Bright A_CustomMissile("AlienBullet",50,-32,0,0)
		TAE1 A 2
        TAE1 A 0 A_FaceTarget	
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)	
        TAE1 E 2 Bright A_CustomMissile("AlienBullet",60,29,0,0)
		TAE1 A 2
		TAE1 A 0 A_PlaySoundEx("Trooper/Attack","SoundSlot6",0,0)		
        TAE1 E 2 Bright A_CustomMissile("AlienBullet",50,29,0,0)
		TAE1 A 2
        TAE1 A 0 A_Jump(196,1) 
        Goto See 
        TAE1 A 0 A_CPosRefire
        Goto Laser+3
	Grenade:
	    TAE1 A 0 A_StopSoundEx("SoundSlot7")
		TAE1 A 0 A_Jump(128,"Laser")
	    TAE1 A 0 A_JumpIfCloser(512,"LowNade")
	    TAE1 A 0 A_JumpIfCloser(2056,2)
	    TAE1 A 0 A_Jump(256,"Laser")
	    TAE1 A 10 A_FaceTarget
	    TAE1 A 0 A_PlaySoundEx("AlienTank/Grenade","SoundSlot6",0,0)
	    TAE1 D 8 Bright A_CustomMissile("PigCopNade",40,-30,0,2,16)
	    TAE1 A 0 A_PlaySoundEx("AlienTank/Grenade","SoundSlot6",0,0)
	    TAE1 E 8 Bright A_CustomMissile("PigCopNade",40,30,0,2,16)
	    TAE1 A 8 A_FaceTarget
	    Goto See
    LowNade:
	    TAE1 A 10 A_FaceTarget
		TAE1 A 0 A_PlaySoundEx("AlienTank/Grenade","SoundSlot6",0,0)
	    TAE1 D 8 Bright A_CustomMissile("PigCopNade1",40,-30,0,2,16)
		TAE1 A 0 A_PlaySoundEx("AlienTank/Grenade","SoundSlot6",0,0)
	    TAE1 E 8 Bright A_CustomMissile("PigCopNade1",40,30,0,2,16)
	    TAE1 A 8 A_FaceTarget
	    Goto See
    Pain.Radial:
        TAE1 A 0
        TAE1 A 0 HealThing(2)
        Goto See
	Pain.LaserShot:
	    TAE1 A 0
		TAE1 A 0 A_SpawnItemEx("PainTripLaser",0,0,5)
		TAE1 A 0 HealThing(2)
		Goto See
	Death:
		TAE1 A 20 A_PlaySound("Hurt/Tank",5)
		TAE1 A 0 A_Jump(128,33)
        TAE1 F 0 A_StopSoundEx("SoundSlot7")
		TAE1 F 0 A_Scream
		TAE1 F 0 A_KillMaster
		TAE1 FFFFF 0 A_SpawnDebris("MetalGibs1")		
		TAE1 FFFFF 0 A_SpawnDebris("MetalGibs2")		
		TAE1 FFFFF 0 A_SpawnDebris("MetalGibs3")		
		TAE1 FFFFF 0 A_SpawnDebris("MetalGibs4")		
		TAE1 FFFFF 0 A_SpawnDebris("MetalGibs5")	
        TAE1 F 1 A_SpawnItemEx("ExpanderExplosion",0,0,32,0,0,0,0,SXF_ABSOLUTEVELOCITY,0)
        TAE1 F 1 A_NoBlocking
		TAE1 F 1 A_SpawnItemEx("Assault Trooper Hurt",0,0,0,0,0,0,0)
		TAE1 F -1
        Stop
		TAE1 G 0 A_StopSoundEx("SoundSlot7")
		TAE1 G 0 A_Scream
		TAE1 G 0 A_KillMaster
		TAE1 GGGGG 0 A_SpawnDebris("MetalGibs1")		
		TAE1 GGGGG 0 A_SpawnDebris("MetalGibs2")		
		TAE1 GGGGG 0 A_SpawnDebris("MetalGibs3")		
		TAE1 GGGGG 0 A_SpawnDebris("MetalGibs4")		
		TAE1 GGGGG 0 A_SpawnDebris("MetalGibs5")	
        TAE1 G 1 A_SpawnItemEx("ExpanderExplosion",0,0,32,0,0,0,0,SXF_ABSOLUTEVELOCITY,0)
        TAE1 G 1 A_NoBlocking
		TAE1 G 1 A_SpawnItemEx("Assault Trooper Hurt",0,0,0,0,0,0,0)
		TAE1 G -1
        Stop
    }
}