Snakeman Posted August 30, 2018 Share Posted August 30, 2018 Have a some lag when a custom sound is autoloaded when shoot custom firearm weapons for first time added with mods. The new sound system load custom sounds (to change volume in sound options) only when the game reproduce it for first time. There is a way to load custom sounds when the game start and not when reproduce for first time? This lag sometimes affect the player and can be scratched or bitten. Link to comment Share on other sites More sharing options...
Fenris_Wolf Posted August 30, 2018 Share Posted August 30, 2018 There was some changes to the sound banks system, sounds are now defined in the media/scripts .txt files, in specific 'sound' files. Without these entries the sound engine will attempt to automatically add the sound to the engine the first time its used which would be the cause of your 'first-use lag' module Base { sound FirearmVarmintShot { category = Item, clip { event = Weapons/Firearm/varmintShot, } } } Link to comment Share on other sites More sharing options...
Snakeman Posted August 30, 2018 Author Share Posted August 30, 2018 (edited) 39 minutes ago, Fenris_Wolf said: There was some changes to the sound banks system, sounds are now defined in the media/scripts .txt files, in specific 'sound' files. Without these entries the sound engine will attempt to automatically add the sound to the engine the first time its used which would be the cause of your 'first-use lag' module Base { sound FirearmVarmintShot { category = Item, clip { event = Weapons/Firearm/varmintShot, } } } Tried that but not working with ogg and wav soundfiles locate in sound folder inside of a mod. Script works good, Appear to sound added but if you want to reproduce it the sound not working. I think maybe sound_scripts only work with sounds in .bank files Edited August 30, 2018 by Snakeman Link to comment Share on other sites More sharing options...
Fenris_Wolf Posted August 30, 2018 Share Posted August 30, 2018 I haven't tested the new scripts yet, but haven't experienced the lag auto loading them either. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now