ACTOR Yellowboy : IDMWeapon
{
	Weapon.SelectionOrder 800
	//Weapon.PreferredSkin "CarbineMarine"
	Weapon.AmmoUse 1
	Weapon.AmmoGive 4
	Weapon.AmmoType "IDMShell"
	Weapon.Kickback 200
	Inventory.PickupMessage "Yellowboy! (Slot 2)"
	Obituary "%o was sniped by %k's Yellowboy."
	AttackSound "silent"
	Tag "Yellowboy"
	Decal Bulletchip
	Damagetype "Bullet"
	+WEAPON.NOAUTOAIM
	+WEAPON.ALLOW_WITH_RESPAWN_INVUL
	+WEAPON.NOLMS
	States
	{
	Ready:
      WINC A 1 A_WeaponReady
      Loop
	Deselect:
      TNT1 A 0 A_Lower
      TNT1 A 0 A_Lower
      WINC A 1 A_Lower
      Loop
	Select:
	  TNT1 A 0 A_PlaySound("weapons/wswitch",CHAN_WEAPON)
	Sloop:
      TNT1 A 0 A_Raise
      TNT1 A 0 A_Raise
      WINC A 1 A_Raise
      Loop
	Fire:
	  TNT1 A 0 A_Playsound("weapons/wchfire",CHAN_WEAPON)
	  TNT1 A 0 A_JumpIfInventory("PowerIDMWeaponLevel2",1,"Level2")
	  TNT1 A 0 A_JumpIfInventory("PowerQuadDamage",1,"Quad")
      TNT1 A 0 A_RailAttack(random(100,150),0,1,none,"Orange",0,0,"IDMBulletPuff",0,0,8192,20,1.5,0.0,none)
	  TNT1 A 0 A_FireBullets(0,0,1,0,"IDMBulletPuff",FBF_NORANDOMPUFFZ)
	  Goto FireEnd
	Level2:
	  TNT1 A 0 A_JumpIfInventory("PowerQuadDamage",1,"QuadLevel2")
      TNT1 A 0 A_RailAttack(random(150,200),0,1,"DarkOrange","Gold",0,0,"PiercePuff",0,0,8192,20,1.5,0.0,none)
	  TNT1 A 0 A_FireBullets(0,0,1,0,"RailPuff",FBF_NORANDOMPUFFZ)
	  Goto FireEnd
	QuadLevel2:
	  TNT1 A 0 A_Playsound("misc/qdmg",CHAN_AUTO,1)
	  Goto Level2+1
	Quad:
	  TNT1 A 0 A_Playsound("misc/qdmg",CHAN_AUTO,1)
	  Goto Fire+3
	FireEnd:
	  WINC B 5 A_GunFlash
      WINC C 5
      WINC D 5 A_Playsound ("weapons/wchlevr")
      WINC E 5
      WINC DC 4
      WINC A 4
      Goto Ready
	Flash:
      LAMZ B 3 Bright A_Light1
      LAMZ A 2 Bright A_Light2
	  Goto LightDone
	Spawn:
      WHCE A -1 Bright
      Stop
	}
}