PDA

View Full Version : SP weapon sounds



the_law
22nd April 2015, 18:08
Hey guys,
I mostly mod MP so I have no idea how weapon sounds work in SP. I've made a new weapon with a new firesound and a new soundaliases file. The sound is perfectly fine in MP but there is no firing sound in SP. Anyone got a solution to this?

the_law
23rd April 2015, 03:04
Nevermind, it was just a careless mistake that I should have found before posting here.

kung foo man
23rd April 2015, 17:46
Just explain what was wrong nonetheless ;D

the_law
23rd April 2015, 19:57
I only put the weapon's sound file in the "sound" folder. It should have been in "sound\weapons\fal"

the_law
29th April 2015, 01:20
Just discovered another reason why sounds may not work properly in SP.
In the soundaliases files, each sound has a line of its own, which looks something like this:


weap_shotgun_fire_pump_plr,,weapons/shotgun/wpnfire_shotgun1.wav,0.91,0.97,wpnplyr,0.95,1.05,5 00000,,local,,,,0.85,all_mp,,,,weapon2,,,,0.2

OR


weap_kar98k_sniper_fire_plr,,weapons/kar98k/kar98_sniper.wav,0.78,0.86,wpnplyr,0.95,1.05,50000 0,,local,,,,0.85,!toujane !elalamein !eldaba,,,,,,,,0.2


In the first example, you can see "all_mp" near the end. This makes it work only in Multiplayer. All you have to do is remove that and it should play in Singleplayer as well (as I learned the hard way).
The second example contains a section near the end that looks like this: "!toujane !elalamein !eldaba" This excludes the sound from certain SP maps. Once again, just remove that section and you'll be fine.