Frictional Games Forum (read-only)

Full Version: Sound Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
PHP Code:
void HammerScare(string &in entitystring &in type)
{
  
AddPropImpulse("sledge_1"30520"world");
  
PlaySoundAtEntity("FistPump""FistPump.snt","Player"0false);


This plays the sound.

Code:
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="FistPump.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="12" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

The snt file. Its called FistPump.snt

Why isnt the sound working in the game?
Remove the ogg part from your snt file.
Nope doesnt do it. Still silent.
MinDistance="12" MaxDistance="50"

Do you know what these do? MinDistance 12 is too much.
Changing the min distance to 1 seemed to fix it! Thanks Tanshaydar!