[ Converted text/html to text/plain ]
Hi,

I'm working on a HL2 mod and I'm adding some new guns into the game. There is
just 1 little thing I just can't right...

When I added a new gun, I can use it ingame and I can see the firing animation
but I don't hear my custom firing sounds. However, the reloading sounds do
work..

Here's what I have at this moment:

a weapon_somegun.txt with

SoundData
{
"single_shot"   "SomeGun.Single1"
}
and a game_weapon_sounds.txt with

"SomeGun.Single1"
{
"channel"   "CHAN_WEAPON"
"volume"   "1.0"
"CompatibilityAttenuation" "0.64"
"pitch"    "PITCH_NORM"

"rndwave"
 {
 "wave" "weapons/SomeGun/SomeGun_Attack1.wav"
 "wave" "weapons/SomeGun/SomeGun_Attack2.wav"
 "wave" "weapons/SomeGun/SomeGun_Attack3.wav"
 }
}

The reloading events are binded to "Somegun.Clip_out", "Somegun.Clip_in" and
"Somegun.Pullback" in the qc file of the weapon model.

When I try to fire the weapon I get this error in my console:

"CSoundEmitterSystemBase::GetParametersForSound:  No such sound
SomeGun.Single1"

and I found this as well

PrecacheScriptSound SomeGun.Single1 failed, no such sound script entry

Googling for these errors didn't help me at all so I was hoping you guys could
help me with this problem.


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to