Jump to content

Disable mapmusic while winsound is running


~Air

Recommended Posts

Posted

No if someone wins a winsound is playing, but the problem is you can't hear the winsound that good because the mapmusic is so loud, thats why I want to disable the map music and when the winsound is finished to start the mapmusic again.

Posted

Open race_client.lua in race resource and add this line in top.

  
_playSound = playSound  
function playSound ( ... ) 
 local sound = _playSound(...)  
if not sound then return false end 
        setSoundVolume(sound, 0.5)  
return sound 
end  
  

Posted
There are many winsounds.

And the winsounds are inplented in my userpanel, GUI etc.

I gave you a piece of code which will set volume of map music to 50%.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...