-
-
Save RafaelFuchs/a5f6672b0a73282059136a239ca21b6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if not mods["Krastorio2"] then | |
return | |
end | |
local anti_material_rifle_shot_sound = { | |
variations = { | |
{ | |
filename = "__Krastorio2__/sounds/weapons/advanced-tank-anti-material-rifle-1.ogg", | |
volume = 0.35, | |
}, | |
{ | |
filename = "__Krastorio2__/sounds/weapons/advanced-tank-anti-material-rifle-2.ogg", | |
volume = 0.35, | |
}, | |
}, | |
aggregation = { | |
max_count = 2, | |
remove = false, | |
count_already_playing = true, | |
}, | |
} | |
data:extend({ | |
{ | |
type = "gun", | |
name = "heli-k2-anti-material-gun", | |
icon = "__HelicopterRevival__/graphics/icons/anti-material-rifle.png", | |
icon_size = 32, | |
flags = {}, | |
subgroup = "gun", | |
order = "d[rocket-launcher]", | |
attack_parameters = | |
{ | |
type = "projectile", | |
ammo_category = "anti-material-rifle-ammo", | |
movement_slow_down_factor = 1.2, | |
cooldown = 20, | |
damage_modifier = settings.startup["heli-k2-anti-material-gun-damage-modifier"].value, | |
projectile_creation_distance = 0.6, | |
range = settings.startup["heli-k2-anti-material-gun-range"].value, | |
projectile_center = {-0.17, 0}, | |
sound = anti_material_rifle_shot_sound, | |
}, | |
stack_size = 1 | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment