TarLink Posted January 8 Posted January 8 (edited) Hi everyone, I am a complete beginner in the game, and even more so in mods, for myself and my friends I wanted to change the sound of the character's scream in the game, I found on the network some old mod similar to mine and on his example I made my own ! As a result, everything is played by pressing the Q button, but it seems to me that the volume of the sound should become quieter when I move the camera away from the character and vice versa, but I do not have this ! My mod has no Lua files but a normal txt with paths to my .ogg ! Can you please tell me if it is possible to make the volume change smoothly depending on the distance of the camera ? And yes, I apologise as I am writing with the help of a translator ) module Base { sound VoiceMaleShoutHey { category=Player,clip{file=media/sounds/shout/shout1.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} category=Player,clip{file=media/sounds/shout/shout2.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} category=Player,clip{file=media/sounds/shout/shout3.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} category=Player,clip{file=media/sounds/shout/shout4.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} } } Edited January 8 by TarLink
TarLink Posted January 11 Author Posted January 11 I'm now using two txt with settings, for male and female, but still still can't figure out how to add sound positioning and if it's even possible ...
TarLink Posted January 11 Author Posted January 11 Found instructions on the wiki - https://pzwiki.net/wiki/Sound_scripts , but it is still not the same, I understand that you need processing with Lua, but I can not find information !
TarLink Posted January 11 Author Posted January 11 The settings should look something like this: Quote module Base { sound VoiceMaleShoutHey { category = Player, loop = false, is3D = true, clip{file=media/sounds/shout_male/shout1.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout2.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout3.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout4.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout5.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout6.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout7.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout8.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout9.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_male/shout9.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} } sound VoiceFemaleShoutHey { category = Player, loop = false, is3D = true, clip{file=media/sounds/shout_female/whistle1.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_female/whistle2.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_female/whistle3.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} clip{file=media/sounds/shout_female/whistle4.ogg,reverbFactor=0.1,reverbMaxRange=20.0,} } }
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