def itm_gun_effect(sound="snd_pistol_shot", offset_x=23, offset_z=35, particles="psys_pistol_smoke", burst_strength=10):
return (ti_on_weapon_attack,
[(multiplayer_is_server),
(store_trigger_param_1, ":agent_id"),
(agent_play_sound, ":agent_id", sound),
(position_move_x, pos1, offset_x),
(position_move_z, pos1, offset_z),
(particle_system_burst, particles, pos1, burst_strength),
])