Jump to content

Recommended Posts

Posted (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 by TarLink
  • TarLink changed the title to [B42] Help ! Scream volume is not dependent on zoom ?
Posted

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 ...

 

Posted

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,}
    }
}

 

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...