# EPIC FUCKING ROCKET LAUNCHER!!!!!

ITEM rl
{
	Name = "Rocket Launcher"
	Desc = "Holy shit a rocket Launcher"
	Width = 1	Height = 1
	BaseDamage = 90 BaseSpeed = 70
	MaxUses = 70
	OnUse = @rl_fire
	MinFloor = 0
	MaxFloor = 0
}

SCRIPT rl_fire
{
	shoot(@missile, 0, 8)
}

ENTITY missile
{
	Health = 10
	Team = 2
	StateInit = @missile_fly
	StateHitWall = @explode
	OnTouch = @missile_hit
	HitboxSize = 0.15
}

STATE missile_fly [ fireball	0	0	ticker+flying	missile_fly	6 ]
SCRIPT missile_hit
{
	if stateis(@missile_fly) and not otheris(@missile) then
		setstate(@explode)
	endif
}