--Script:LoadScript("scripts/default/entities/weapons/BasePhotonProjectile.lua");   --modded to remove water explosions
Script:LoadScript("scripts/default/entities/weapons/BaseProjectile.lua");

projectileDefinition = {
	Param = {
		mass = 0.05,
		size = 0.05,
		heading = {},
		flags=particle_single_contact+particle_no_spin,
		initial_velocity = 60, 					  
		k_air_resistance = 0.3,
		acc_thrust = 0,
		acc_lift = 0,
		surface_idx = -1,
		gravity = {x=0, y=0, z=-0.4 },
		collider_to_ignore = nil,
	},
	
	ExplosionParams = {
		pos = {},
		damage = 30,--200,								--quite powerful overall
		rmin = 0.1,--0.1,									--mod 
		rmax = 0.5,--3.5,									--mod heat radius
		radius = 0.5,--3.5,								--mod 
		DeafnessRadius = 0,
		DeafnessTime = 0,									--mod
		impulsive_pressure = 0,						--mod
		shake_factor = 0.1,								--mod added to reduce shake on impact to near zero default is 1
		shooter = nil,
		weapon = nil,
		explosion = 1,
		rmin_occlusion=0.2,
		occlusion_res=32,
		occlusion_inflate=2,
	},
	
	SmokeEffect = "fire.FlameGun.flame",
	
	matEffect = "no_explosion",										--mod no explosion on impact but damages
	--mark_terrain = 1,
	force_objtype = 2,
	projectileObject = "Objects/weapons/muzzleflash/muzzleflash.cgf",
	projectileObjectScale = 0.01,
	fDeformRadius = 0.5,	
	explodeOnContact = 1,
	lifetime=800,
	--dynamic_light = 3,															--possible but not sure what it does

}



Flame = CreateProjectile(projectileDefinition);