task CucumberGun(x, y, ang){
	Cucumber(x, y, ang);
	
	task Cucumber(x, y, ang){
		let obj=Obj_Create(OBJ_SHOT);
		let pos=[x, y];
		Obj_SetPosition(obj, x, y);
		Obj_SetSpeed(obj, 7);
		Obj_SetAngle(obj, ang);
		ObjShot_SetGraphic(obj, 1);
		ObjShot_SetDamage(obj, 3);
		ObjShot_SetPenetration(obj, 1);
		while(Obj_BeDeleted(obj)==false){
			pos=[Obj_GetX(obj), Obj_GetY(obj)];
			yield;
		}
		loop(10){CucumberSlice(pos[0], pos[1], rand(0, 359));}
	}
	task CucumberSlice(xb, yb, angc){
		let objb=Obj_Create(OBJ_SHOT);
		let angb=rand(0, 359);
		let rot=rand(-3, 3);
		let v=rand(2, 3);
		let count=0;
		Obj_SetPosition(objb, xb, yb);
		Obj_SetSpeed(objb, 0);
		Obj_SetAngle(objb, angb);
		ObjShot_SetGraphic(objb, 2);
		ObjShot_SetDamage(objb, 1);
		ObjShot_SetPenetration(objb, 1);
		while(Obj_BeDeleted(objb)==false){
			yield;
			angb+=rot;
			Obj_SetAngle(objb, angb);
			Obj_SetPosition(objb, Obj_GetX(objb)+v*cos(angc), Obj_GetY(objb)+v*sin(angc));
			count++;
			if(count>=15){ObjShot_FadeDelete(objb);}
		}
	}
}
task CattailGun(x, y, ang){
	CreatePlayerShot01(x, y, 7, ang, 0.3, 99999, 3);
}