Forums

Full Version: [PATCH] Gear, brake and handbrake sounds
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Worked on implementing some ear candy today. Added sounds for changing gears (you hear a discrete click when the gear is changed), brake sound (you hear the brake pedal and mechanism when you brake) and handbrake sound.

TODO: Make the sounds per car, not global, so different cars can have different versions of these sounds. I couldn't figure how to use the carpath + carname shortcuts with the way I implemented it. For now they work as global sounds though.

Sound files taken from OpenGameArt. Gear sound, brake sound, handbrake sound. Yeah, those sounds were made for completely different purposes, but I felt they work for the cars until better ones are found Tongue All seem to be GPL compatible.

Patch download locations: link 1, link 2. Hope this is good to commit and that someone can fix the car paths so they can be per-car Smile
I think it could be done with the help of .aud file for each car. It looks like:

[poweroff1]
filename=sounds/deacc-320.wav
MinimumRPM=1
MaximumRPM=9000
NaturalRPM=4800
power=Off
....

just different section there.
Patched in R2699 and data R500.
Thanks Smile Hope someone can look at the TODO too, so they can be made per-car. Like I said I don't know how to include the paths properly... that seems to work differently.