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

projectileDefinition = {
	
	Param = {
		--flags = particle_single_contact+particle_no_spin,
		mass = 4,
		size = 0.2,
		heading = {},
		flags = bor(particle_no_path_alignment, particle_no_roll, particle_traceable),
		initial_velocity = 15,
		k_air_resistance = 0,
		acc_thrust = 0,
		acc_lift = 0,
		surface_idx = -1,
		gravity = {x=0, y=0, z=-9.8 },
		--min_bounce_vel = 3.5,
		collider_to_ignore = nil,
	},
	
	ExplosionParams = {
		pos = {},
		damage = 420,								
		rmin = 0.1,									
		rmax = 8.2,									
		radius = 8.2,						
		DeafnessRadius = 15.0,
		DeafnessTime = 12.0,									
		impulsive_pressure = 250,					 
		shooter = nil,
		weapon = nil,
		explosion = 1,
		rmin_occlusion=0.2,
		occlusion_res=32,
		occlusion_inflate=2,
	},
	
	no_explosion=1,
	no_trail=1,
	--explode_on_contact=1,
	lifetime=3000,	
	matEffect = "am_explosion",
	mark_terrain = 1,
	force_objtype = 2,
	projectileObject = "Objects/weapons/muzzle_flash/mf_shocker_fpv.cgf",
	projectileObjectScale = 5.0,
	fDeformRadius = 0.5,	
	--explodeOnContact = 1,
	--dynamic_light = 3,															--possible but not sure what it does
	

}

--need to add to ClassRegistry.lua
AMGrenade = CreateProjectile(projectileDefinition);
