Script:LoadScript("scripts/default/entities/weapons/BaseProjectile.lua");

projectileDefinition = {
	Param = {
		mass = 0.5,
		size = 0.05,
		heading = {},
		flags=particle_single_contact+particle_no_spin,
		initial_velocity = 80, --  default 23
		k_air_resistance = 0,
		acc_thrust = 0,
		acc_lift = 0,
		surface_idx = -1,
		gravity = {x=0, y=0, z=-9.8 },
		collider_to_ignore = nil,
	},
	
	ExplosionParams = {
		pos = {},
		damage = 190,--200,
		rmin = 5,--0.1,
		rmax = 5,--3.5, 
		radius = 10,--3.5,
		DeafnessRadius = 4,
		DeafnessTime = 10,
		impulsive_pressure = 1800, 
		shooter = nil,
		weapon = nil,
		explosion = 1,
		rmin_occlusion=0.2,
		occlusion_res=32,
		occlusion_inflate=2,
	},
	
	old_Smoke = {
		focus = 0,
		gravity = {x = -5, y = 0.0, z = 2.50},
		rotation = {x = 0.0, y = 0.0, z = 2.0},
		speed = 0.2,
		count = 1,
		size = 0.05, 
		size_speed=0.2,
		lifetime=1.50,
		frames=1,
		color_based_blending = 3,
		tid = System:LoadTexture("textures/guncloud.dds"),
		turbulence_size = 2,
		turbulence_speed = 2.5,
	},
	SmokeEffectEmitter = "Smoke.OICW.Trail",
	
	matEffect = "small_explosion",
	mark_terrain = 1,
	fDeformRadius = 0.5,	
	explodeOnContact = 1,
}

OICWGrenade = CreateProjectile(projectileDefinition);