I added a new smg gun to lyra using their system… all perfect except for one thing… the sound is messed up… when i fire the gun full auto the sound doesnt match the fire rate… ex. i fire 10 times full auto at about 10 bullets every 2 seconds… but the audio plays the gun noise about 10 times every 5 seconds when doing this… the rate of the sound playing doesnt change corruspondingly to the fire rate changing… making it to where if i fire a fast full auto smg… it keeps playing the firing sound until it finishes… here’s a video for a more visual representation of the issue
This also happens, when changing the firerate off the default lyra rifle (“Fire Delay Time Secs” in the GA_Weapon_Fire_Rifle_Auto blueprint). In GCN_Weapon_Rifle_Fire you can see that the “Trigger Fire Audio” function gets the “MSS_Weapons_Rifle2_Fire” metasound source as sound input. Open this sound source and you’ll find a input variable called ShotInterval. Set its default value to the same as your FireDelayTimeSecs, then it should work correctly.
I guess, there is no existing code in lyra to set this input automatically from a blueprint or something, so it’s default value is used. Maybe because the metasound sources of the other weapons don’t have this input variable, it’s unique for the rifle.
Inputs like MagazineAmmo exist in all weapon sound sources, and their values are set in the “SetWeaponSoundParams” function inside the “WeaponAudioFunctions” function library blueprint.