["dr_e_arrows", "Explosive Arrows", [("arrow",0), ("flying_missile",ixmesh_flying_ammo), ("quiver", ixmesh_carry)], itp_type_arrows, itcf_carry_quiver_back, 0,weight(3)|abundance(160)|weapon_length(95)|thrust_damage(4, pierce)|max_ammo(20), imodbits_missile,
[(ti_on_missile_hit, [
(this_or_next|multiplayer_is_server),
(neg|game_in_multiplayer_mode),
(store_trigger_param_1,":grenadier"),
(try_for_agents,":target"),
(agent_get_position,pos2,":target"),
(get_distance_between_positions,":dist",pos1,pos2),
(try_begin),
(lt,":dist",250), #Distance between target and impact position needs to be less than
#this for it to deal damage (in cm's)
(store_agent_hit_points,":hp",":target",1),
(store_random_in_range,":dmg",60,100), #Deal random damage between those two values
(val_sub,":hp",":dmg"),
(agent_set_hit_points,":target",":hp",1),
(le,":hp",0),
(agent_deliver_damage_to_agent,":grenadier",":target"),
(try_end),
#Graphics and sound effects below
(particle_system_burst,"psys_pistol_smoke",pos1,50),
(particle_system_burst,"psys_village_fire_big",pos1,50),
(play_sound_at_position,"snd_pistol_shot",pos1),
(try_end)
])
]],