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

  • 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/

DevilDog (Teufelhund)

FNG / Fresh Meat
Feb 25, 2006
156
0
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);
}
*/
}
 

DevilDog (Teufelhund)

FNG / Fresh Meat
Feb 25, 2006
156
0
0
USA
lol, good one!

That's what I thought at first, but you could be right. I could have overlooked something. I didn't see any of the existing sounds in a replication block though.