--By Sonic1983(reusable content)
--NapalmScatter doesnt work like it shoots it in front of it
--its reusable right? 
freeslot(
	"MT_CRABMEAT"
)

addHook("MobjThinker", function(mo)
	if mo
	and mo.valid
	and mo.health
	and mo.type == MT_CRABMEAT
		if (mo.state == S_CBMT_SHOOT2)
		S_StartSound(mo, sfx_s3k4d)
		local ball = P_SPMAngle(mo, MT_JETTBULLET, mo.angle+ANGLE_90)
		local ball2 = P_SPMAngle(mo, MT_JETTBULLET, mo.angle-ANGLE_90)
		ball.flags = $1 & ~MF_NOGRAVITY
		ball2.flags = $1 & ~MF_NOGRAVITY
		P_SetObjectMomZ(ball, 8*FRACUNIT)
		P_SetObjectMomZ(ball2, 8*FRACUNIT)
		P_InstaThrust(ball, ball.angle, 6*FRACUNIT)
		P_InstaThrust(ball2, ball2.angle, 6*FRACUNIT)
		end
	end
end, MT_CRABMEAT)