• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Sound Sound issue (or maybe coding).....

DevilDog (Teufelhund)

Grizzled Veteran
Feb 25, 2006
156
0
USA
I having a bit of a problem with the horn on our truck. For some reason the driver can hear it, but no one else. I've many different things, but no luck.

Is it possible that I coudl be doing something wrong when I import the wave files? Once the sound is imported, the properties are the same as any other sound we currently use. The sound is mono as well (1, 16, 44100).

I'll dump the code below as well.

To keep it simple I used fairly straightforward coding as a last resort. Though I was trying to use the ServerPlayHorn function and have also tried custom code. So, any thoughts? Thanks in advance for any help.

var() sound VehHornSound;

simulated function Fire(optional float F)
{
//local int i;

//ServerPlayHorn(i);

PlaySound(VehHornSound, SLOT_None, 1.0,,600);

/*
if (Role == ROLE_Authority)
{
PlayOwnedSound(HornSounds, SLOT_None, 160/255.0,, 400, 1, False);
}
else
{
PlaySound(HornSounds, SLOT_None, 160/255.0,, 400, 1, False);
}
*/
}