data:extend( { { type = "gun", name = "laser_pistol", icon = "__laser_weapon__/graphics/icons/laser_pistol.png", icon_size = 64, icon_mipmaps = 4, flags = {}, subgroup = "gun", order = "e", stack_size = 5, attack_parameters = { type = "projectile", ammo_category = "laser-battery", cooldown = 20, movement_slow_down_factor = 0.2, projectile_creation_distance = 0.5, --damage_modifier = 1.0, range = 15, sound = { { filename = "__laser_weapon__/sound/las_single.wav", volume = 0.8 } } } }, { type = "gun", name = "laser_rifle", icon = "__laser_weapon__/graphics/icons/laser_rifle.png", icon_size = 64, icon_mipmaps = 4, flags = {}, subgroup = "gun", order = "e", stack_size = 5, attack_parameters = { type = "projectile", ammo_category = "laser-battery", cooldown = 6, movement_slow_down_factor = 0.5, projectile_creation_distance = 0.5, --damage_modifier = 1.0, range = 25, sound = { { filename = "__laser_weapon__/sound/las_auto.wav", volume = 0.8 } } } }, { type = "ammo", name = "laser_ammo", icon = "__laser_weapon__/graphics/icons/laser_ammo.png", icon_size = 64, icon_mipmaps = 4, flags = {}, ammo_type = { category = "laser-battery", action = { type = "direct", action_delivery = { type = "beam", beam = "laser-beam", max_length = 15, duration = 40, source_offset = {0, -1.31439 } target_effects = { { type = "damage", damage = { amount = 10 , type = "laser"} } }, }, } }, magazine_size = 20, subgroup = "ammo", order = "a[basic-clips]-b[laser_ammo]", stack_size = 100 }, { type = "ammo", name = "laser_ammo_over", icon = "__laser_weapon__/graphics/icons/laser_ammo_over.png", icon_size = 64, icon_mipmaps = 4, flags = {}, ammo_type = { category = "laser-battery", action = { type = "direct", action_delivery = { type = "beam", beam = "laser-beam", max_length = 15, duration = 40, source_offset = {0, -1.31439 } target_effects = { { type = "damage", damage = { amount = 20 , type = "laser"} } }, }, } }, magazine_size = 20, subgroup = "ammo", order = "a[laser_ammo]-b[laser_ammo_over]", stack_size = 100 }, } )