
ACTOR FDFlashLight_Inventory : Inventory
{
	Inventory.Amount 1
	Inventory.MaxAmount 1
}

ACTOR FDFlashLight_UsageBattery : Inventory
{
	Inventory.Amount 1
	Inventory.MaxAmount 100
}

ACTOR FDFlashLight_EmitBeam : CustomInventory
{
	+CLIENTSIDEONLY
	States
	{
	Pickup:
	TNT1 A 1
	TNT1 A 1 A_FireCustomMissile ("FDFlashLight_Beam",0,0)
	Stop
	}
}

ACTOR FDFlashLight_Beam : FastProjectile
{
  Radius 2
  Height 1
  Speed 500
  Damage 0
  Projectile
  MissileType "FDFlashLight_Light"
  +THRUACTORS
  +NOCLIP
  +NOBLOCKMAP
  +CLIENTSIDEONLY
  +NOTIMEFREEZE
  States
  {
  Spawn:
    TNT1 A 1
    Stop
  }
}

ACTOR FDFlashLight_Light
{
    +NOBLOOD
	+NOBLOODDECALS
	+FORCEXYBILLBOARD
	+CLIENTSIDEONLY
	+NOTIMEFREEZE
	RenderStyle Add 
	Alpha 0.05
	States
	{
	Spawn:
	FLSH AA 1 BRIGHT A_FadeIn(0.02)
	FLSH AA 1 BRIGHT A_FadeOut(0.02)
	Stop
	}
}