Jump to content

(Build 40)Some lag with AUTO load a custom sound


Snakeman

Recommended Posts

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

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

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 by Snakeman
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...