So i have recently exported Battlefeild 3 death yells, but if any of you reading this have battlefield experience you will realize that sound travels far in that game, id like someone to tell me what part of the sound code to edit to increase sound range: heres the code wtf do i need to do?
datablock AudioProfile(Scream1)
{
fileName = "./Death-01.wav";
description = AudioClosest3d;
preload = false;
};
This is from the "sound.cs" file.
package DeathYells
{
function gameConnection::onDeath(%this)
{
serverplay3d("scream" @ getRandom(1, 29), %this.player.getHackPosition() SPC "0 0 1 0");
return parent::onDeath(%this);
}
};
activatepackage (DeathYells);
package customDeathSound
{
function player::playDeathCry(%this)
{
serverPlay3D(DeathSound, %this.getHackPosition());
}
};
activatePackage("customDeathSound");
This is from the "script.cs" file. Which one do i need to edit and what part?