Audio clip sample "__AK47__/3ound/03138.mp3" not loaded idk what to do bc path correct

Place to post guides, observations, things related to modding that are not mods themselves.
HIF
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Dec 29, 2024 5:47 pm
Contact:

Audio clip sample "__AK47__/3ound/03138.mp3" not loaded idk what to do bc path correct

Post by HIF »

code:data:extend({
{
type = "gun",
name = "AK47",
icon = "__AK47__/graphics/ak47.png",
icon_size = 255,
subgroup = "gun",
order = "a[weapon]-a[AK47]",
stack_size = 1,
attack_parameters = {
type = "projectile",
ammo_category = "bullet",
cooldown = 60 / 600, -- скорострельность 600 выстрелов в минуту
projectile_creation_distance = 25,
range = 35,
damage_modifier = 5, -- множитель урона
projectile = {
name = "bullet",
speed = 1.5,
direction_only = false
},
sound = {
filename = "__AK47__/3ound/03138.mp3", -- Замените на подходящий звук выстрела
volume = 1
},
},
}
})

-- Добавляем рецепт для АК-600
data:extend({
{
type = "recipe",
name = "AK47",
enabled = false,
ingredients = {
{"iron-gear-wheel", 20},
{"steel-plate", 10},
{"electronic-circuit", 5},
{"advanced-circuit", 3},
{"wood", 2}
},
result = "AK47"
}
})
Post Reply

Return to “Modding discussion”