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

local param={
model="objects/weapons/health_pack/healthpack_bind.cgf",
model_nooffset = 1,


hit_effect = "healthrow",			--modded mat_default.lua to use health.wav and waterfall particle effect
explode_effect = "no_explosion",


damage_on_player_contact = 1,
--dynamic_light = 0,
explode_on_contact = 1,
no_trail = 1,
explode_on_hold=1,
explode_underwater = 1,
--deform_terrain=0,

PhysParams = {
flags = particle_traceable,
mass = 0.15,
size = 0.2,
heading = {},
initial_velocity = 4,
k_air_resistance = 0.5,
w = {x=1, y=3, z=5},
acc_thrust = 0,
acc_lift = 0,
surface_idx = -1,
gravity = {x=0, y=0, z=-13 },
collider_to_ignore = nil,
water_gravity={x=0, y=0, z=-2 },
k_water_resistance = 4.0,
pierceability = 15,
min_bounce_vel = 0.1,
},

ExplosionParams = {
pos = {},
damage = -5,										--heals but gives red on screen like damage how to remove???									
rmin = 1,
rmax = 8,
radius = 8,
DeafnessRadius = 0.0,
DeafnessTime = 0.0,
--impulsive_pressure = 0,
shake_factor = 0.01,
shooter = nil,
weapon = nil,
rmin_occlusion=0.2,
occlusion_res=32,
occlusion_inflate=2,
iImpactForceMulFinalTorso=0,
},
};

Rock=CreateHandGrenade(param);
