actor Nothing {}

actor NewPistol : AliensWeapon
{
 weapon.selectionorder 2800
 weapon.kickback 3
 +weapon.noalert
 +weapon.noautofire
 weapon.ammouse 0
 weapon.ammotype "Ninemm"
 weapon.slotnumber 2
 inventory.pickupmessage "You shouldn't see this!"
 tag "VP70"
 states
 {
  Ready:
	VP70 A 0 A_JumpIfInventory("KickItem", 1, "PreKick")
	TNT1 A 0 A_JumpIfInventory("TrackerToggle", 1, "PreTrack")
	VP70 A 1 A_WeaponReady
	loop
  Select:
	VP70 A 0 A_Raise
	VP70 A 1 A_Raise
	loop
  Deselect:
	VP70 A 0 A_Lower
	VP70 A 1 A_Lower
	loop
  Fire:
	TNT1 A 0 A_JumpIfInventory("RadarActive", 1, "TrackerLower")
	VP70 A 0 A_JumpIfInventory("Ninemm",1,1)
	goto Ready
	VP70 A 1 A_PlaySound("weapons/pistolfire", CHAN_WEAPON)
	TNT1 A 0 A_AlertMonsters
	TNT1 A 0 Radius_Quake(3,2,0,1,0)
	TNT1 A 0 A_Recoil(0.2)
	TNT1 A 0 A_TakeInventory("Ninemm", 1)
	TNT1 A 0 A_FireCustomMissile("VP70TRacer", Frandom(-2,2), 1, 0, 0, 0, Frandom(-1,1))
    TNT1 A 0 A_FireCustomMissile("GunSpark",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
    TNT1 AA 0 A_FireCustomMissile("GunSpark2",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
	TNT1 A 0 A_FireBullets(0, 0, 1, 0, "InvisiPuff")
	VP70 B 1 BRIGHT offset(0, 36)
	TNT1 A 0 A_SetPitch (pitch-0.8)
	TNT1 A 0 A_FireCustomMissile("BulletCasingSpawner", 3, 0, 0, -1)
	VP70 C 1 offset(0, 38)
	TNT1 A 0 A_SetPitch (pitch+0.4)
	VP70 D 1 offset(0, 40) A_WeaponReady
	VP70 C 1 offset(0, 38) A_WeaponReady
	VP70 A 1 offset(0, 36) A_WeaponReady
	goto Ready
  Altfire:
	TNT1 A 0 A_JumpIfInventory("RadarActive", 1, "TrackerLower")
	VP70 A 0 A_JumpIfInventory("Ninemm",1,1)
	goto Ready
	VP70 A 1 A_PlaySound("weapons/pistolfire", CHAN_WEAPON)
	TNT1 A 0 A_AlertMonsters
	TNT1 A 0 Radius_Quake(3,2,0,1,0)
	TNT1 A 0 A_Recoil(0.2)
	TNT1 A 0 A_TakeInventory("Ninemm", 1)
	TNT1 A 0 A_FireCustomMissile("VP70TRacer", Frandom(-2,2), 1, 0, 0, 0, Frandom(-1,1))
	TNT1 A 0 A_FireCustomMissile("GunSpark",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
    TNT1 AA 0 A_FireCustomMissile("GunSpark2",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
	TNT1 A 0 A_FireBullets(0, 0, 1, 0, "InvisiPuff")
	VP70 B 1 BRIGHT offset(0, 36)
	TNT1 A 0 A_SetPitch (pitch-0.3)
	TNT1 A 0 A_FireCustomMissile("BulletCasingSpawner", 3, 0, 0, -1)
	VP70 A 1 A_PlaySound("weapons/pistolfire", CHAN_WEAPON)
	TNT1 A 0 A_AlertMonsters
	TNT1 A 0 Radius_Quake(3,2,0,1,0)
	TNT1 A 0 A_Recoil(0.2)
	TNT1 A 0 A_TakeInventory("Ninemm", 1)
	TNT1 A 0 A_FireCustomMissile("VP70TRacer", Frandom(-2,2), 1, 0, 0, 0, Frandom(-1,1))
	TNT1 A 0 A_FireCustomMissile("GunSpark",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
    TNT1 AA 0 A_FireCustomMissile("GunSpark2",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
	TNT1 A 0 A_FireBullets(0, 0, 1, 0, "InvisiPuff")
	VP70 B 1 BRIGHT offset(0, 36)
	TNT1 A 0 A_SetPitch (pitch-0.3)
	TNT1 A 0 A_FireCustomMissile("BulletCasingSpawner", 3, 0, 0, -1)
	VP70 A 1 A_PlaySound("weapons/pistolfire", CHAN_WEAPON)
	TNT1 A 0 A_AlertMonsters
	TNT1 A 0 Radius_Quake(3,2,0,1,0)
	TNT1 A 0 A_Recoil(0.2)
	TNT1 A 0 A_TakeInventory("Ninemm", 1)
	TNT1 A 0 A_FireCustomMissile("VP70TRacer", Frandom(-2,2), 1, 0, 0, 0, Frandom(-1,1))
	TNT1 A 0 A_FireCustomMissile("GunSpark",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
    TNT1 AA 0 A_FireCustomMissile("GunSpark2",1.5+random(-5.5,5.5),0,0,6,0,1.5+random(-2.8,2.8))
	TNT1 A 0 A_FireBullets(0, 0, 1, 0, "InvisiPuff")
	VP70 B 1 BRIGHT offset(0, 36)
	TNT1 A 0 A_SetPitch (pitch-0.3)
	TNT1 A 0 A_FireCustomMissile("BulletCasingSpawner", 3, 0, 0, -1)
	VP70 C 1 offset(0, 38)
	TNT1 A 0 A_SetPitch (pitch+0.1)
	VP70 D 1 offset(0, 40) A_WeaponReady
	VP70 C 1 offset(0, 38) A_WeaponReady
	VP70 A 1 offset(0, 36) A_WeaponReady
	goto ready
  PreKick:
	VP70 A 1 offset(-8, 40)
	VP70 A 1 offset(-24, 56)
	VP70 A 1 offset(-40, 72)
	VP70 A 1 offset(-50, 88)
	VP70 A 1 offset(-66, 104)
	goto Kick
  PostKick:
	VP70 A 1 offset(-66, 104)
	VP70 A 1 offset(-50, 88)
	VP70 A 1 offset(-40, 72)
	VP70 A 1 offset(-24, 56)
	VP70 A 1 offset(-8, 40)
	goto ready
  PreTrack:
	VP70 A 1 offset(-8, 40)
	VP70 A 1 offset(-24, 56)
	VP70 A 1 offset(-40, 72)
	VP70 A 1 offset(-50, 88)
	VP70 A 1 offset(-66, 104)
	goto TrackRaise
  PostTrack:
	VP70 A 1 offset(-66, 104)
    VP70 A 1 offset(-50, 88)
	VP70 A 1 offset(-40, 72)
	VP70 A 1 offset(-24, 56)
	VP70 A 1 offset(-8, 40)
	goto ready
  }
}