The unit tells the game when to play ANIM_Gunner_Fire_alternative, in its shot_sfx entry
That's definitely how it works for mounted engines. But I do similar file entries exist for infantry units? I've only found entries in descr_sounds_weapons.txt like this one:
PHP Code:
unit example_unit:pri
fly
event volume -20 mindist 7 priority 100 minpitch .6 maxpitch 1.1 probability .05 fadein .25 fadeout .5 probradius 3
folder data/sounds/SFX/Individual/Missiles
example_sound1
example_sound2
example_sound3
end
.
.
.
When I place the name of my unit here and some sounds and then regenerate the sound files... nothing changed at all. Is this even the right file?