10-06-2011, 06:32 AM
PHP Code:
void HammerScare(string &in entity, string &in type)
{
AddPropImpulse("sledge_1", 30, 5, 20, "world");
PlaySoundAtEntity("FistPump", "FistPump.snt","Player", 0, false);
}
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?