Managing multiple weaponsounds
Posted: Fri Mar 26, 2021 11:52 am
Hello everyone
I'm trying to modify a already existing mod. I want to add differntly pitched weapon sounds to each weapon. This should make the weapons sound less monoton and in the case uf fully automatic ones, less ear piercing. So what i already pitched the weapons sounds up and down a few tones and saved them as independent files and integrated them into the sound folder of the mod.
So i tried to extend the item.lua script with the new file names but this is where i run into errors. My question is: Is there a specific command that tells the game to pick multiple weapon sound for the same weapon randomly or at least sequentualy?
I already looked into the lua file for the standard smg of factorio which has 3 different sounds to play. I tried to copy its structure of the "sound=" and also placed the files (additionally) into the weapon sound (its name escapes me right now) folder of the "base" folder of factorio, sadly with no luck...
I'm trying to modify a already existing mod. I want to add differntly pitched weapon sounds to each weapon. This should make the weapons sound less monoton and in the case uf fully automatic ones, less ear piercing. So what i already pitched the weapons sounds up and down a few tones and saved them as independent files and integrated them into the sound folder of the mod.
So i tried to extend the item.lua script with the new file names but this is where i run into errors. My question is: Is there a specific command that tells the game to pick multiple weapon sound for the same weapon randomly or at least sequentualy?
I already looked into the lua file for the standard smg of factorio which has 3 different sounds to play. I tried to copy its structure of the "sound=" and also placed the files (additionally) into the weapon sound (its name escapes me right now) folder of the "base" folder of factorio, sadly with no luck...