djaa2807 Posted June 29, 2012 Share Posted June 29, 2012 Is there any Released resource that allows to replace vehicle sounds with custom ones?? By replace i mean adding custom ones using sound files and maybe if possible also to suppress the default one using the following function: https://wiki.multitheftauto.com/wiki/SetWorldSoundEnabled Like:- setWorldSoundEnabled( 40, false ) disables engine sound and stuff maybe.. 1 Link to comment
qaisjp Posted June 29, 2012 Share Posted June 29, 2012 setWorldSoundEnabled(40, false) and then: when the player holds W in a vehicle (bindKey) detect which vehicle he is in and detect the car speed. Then playSound it. 1 Link to comment
djaa2807 Posted June 30, 2012 Author Share Posted June 30, 2012 Oh Cool, thanks qaisjp! That will surely help me coding my own.. Link to comment
diegofkda Posted July 2, 2012 Share Posted July 2, 2012 That isn't, at all, the best way. I just made that car sound creating a looped and stable car sound (one that doesn't change its pitch in the wav file) using setSoundSpeed, getting the current speed of the car. The file must be wav, otherwise the loop will be very noticeable. If you didn't get what kind of wav file you need, here's the one that sounds in my video. Link to comment
qaisjp Posted July 2, 2012 Share Posted July 2, 2012 getElementSpeed How did you change the pitch? Oh setSoundSpeed Link to comment
djaa2807 Posted July 5, 2012 Author Share Posted July 5, 2012 diegofkda< Very helpful stuff.. Will Code one soon.. Link to comment
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