Getting Weapon Models to use three different fire sounds?


[DF]Panzershrek
09-28-2004, 04:45 AM
I noticed in CoD and MoH:AA, that the weapons use three different sounds to imitate different discharges from bullets.

I've been wondering, in Day of Defeat, is there any possible way of getting this to work? Say, I want my Karbiner to use three similiar sounds, and have them randomized, or get the game to call them up at the times I fire...is it possible?

EDIT: Its also in the sounds forum. This was just to see if I could'nt catch up a wide variety of ideas.

~*StaR*~
09-28-2004, 04:50 AM
this i would love! but, i doubt if this is possible on the hl engine
:( maybe it is though, then again no one has ever done this that i know of.

Trp. Jed
09-28-2004, 04:55 AM
Not unless the team codes it into DoD. Its not hard, maybe 4 lines of code plus the extra sounds.

Mortar
09-28-2004, 07:16 AM
Almost every new game have that... i was hoping to get something like that ingame for a very long time now but like jed said it's all starts and ends with the dev team


:(

Trp. Jed
09-28-2004, 07:29 AM
Well the odd thing is theres 2 or 3 ways of doing it really.

The easiest way is to pick a random number between 1 and 4 and depending on what you get, playe a different sound file. Failing that, use one sound file but tweak the pitch randomly slightly.

The smoke grenade plugin I write does something similar in that when a grenade bounces off the ground its random noise, not always the same one.

Snakeyes
09-28-2004, 11:03 AM
you could use the distant sounds models smd and just put that into the v_model's smd and it might work.

Kraut-Killer
09-29-2004, 07:04 AM
http://www.dayofdefeat.com/forums/showthread.php?s=&threadid=40910

Dwin
09-29-2004, 02:43 PM
Originally posted by [DF]Panzershrek

EDIT: Its also in the sounds forum. This was just to see if I could'nt catch up a wide variety of ideas.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.