Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Wed May 22, 2013 8:19 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Mon Jan 24, 2005 3:33 pm 
Offline
In trouble with the feds
User avatar

Joined: Sun Jan 18, 2004 10:41 pm
Posts: 2749
Here's a quick tutorial on how to make the player have different footstep sounds per surface.

Skim down a few posts if you want to know how to add surface-specific weapon sounds and surface-specific weapon visual effects.

===

First, you'll need to create your own sounds. Searching around on the web will save you some time if you're not sure how to go about creating your own effects because a lot of sites offer free/royalty free sounds that you can use. Just make sure to read all of the disclaimers and usage agreements to make sure you don't use something illegally.

Next, create a directory structure like so:

At the same level as the "base" directory, create a directory called "nps."

This will be our mod directory and will make sure that we don't overwrite any of the vanilla game's content. In other words, ALL files we're about to create and/or alter will be placed into a subdirectory of "nps" and not "base".

In the "nps" directory, create the following subdirectories, so you have this structure:

Code:
your-doom3-dir/nps/def
your-doom3-dir/nps/materials
your-doom3-dir/nps/sound
your-doom3-dir/nps/textures


If you don't want to use your own textures, you can use vanilla ones... to change the player sounds as they walk over a surface, all that's required is that you change the material definition, not the texture/image files themselves. However, in the case of this example, I'm using the content from the third test-build of the D3CDIT project, so I happen to have custom textures.

Okay, so let's say I have several new sounds I want to use. First, I make sure all of the sounds are in a valid format:

iddevnet wrote:
Valid sound files are 1 or 2 channel, 16 bit OGG or WAV files at 11025, 22050 or 44100 Hz


Next, I place the following new footstep sounds into the mod directory using this structure:

Code:
   sound/player/footsteps/concrete_footstep1.wav
   sound/player/footsteps/concrete_footstep2.wav
   sound/player/footsteps/concrete_footstep3.wav
   sound/player/footsteps/concrete_footstep4.wav
   sound/player/footsteps/concrete_footstep5.wav
   sound/player/footsteps/concrete_footstep6.wav
   sound/player/footsteps/concrete_footstep7.wav
   sound/player/footsteps/concrete_footstep8.wav
   sound/player/footsteps/concrete_footstep9.wav
   sound/player/footsteps/gravel_footstep1.wav
   sound/player/footsteps/gravel_footstep2.wav
   sound/player/footsteps/gravel_footstep3.wav
   sound/player/footsteps/gravel_footstep4.wav
   sound/player/footsteps/gravel_footstep5.wav
   sound/player/footsteps/gravel_footstep6.wav
   sound/player/footsteps/rug_footstep1.wav
   sound/player/footsteps/rug_footstep2.wav
   sound/player/footsteps/rug_footstep3.wav
   sound/player/footsteps/rug_footstep4.wav
   sound/player/footsteps/water_footstep1.wav
   sound/player/footsteps/water_footstep2.wav
   sound/player/footsteps/water_footstep3.wav
   sound/player/footsteps/water_footstep4.wav
   sound/player/footsteps/water_footstep5.wav
   sound/player/footsteps/water_footstep6.wav
   sound/player/footsteps/wood_footstep1.wav
   sound/player/footsteps/wood_footstep2.wav
   sound/player/footsteps/wood_footstep3.wav
   sound/player/footsteps/wood_footstep4.wav
   sound/player/footsteps/wood_footstep5.wav
   sound/player/footsteps/wood_footstep6.wav
   sound/player/footsteps/wood_footstep7.wav


With the sound files in place, I can then create a sound shader file to handle the changes:

Copy the vanilla player.sndshd file into the nps/sound directory. This makes sure that the changes we make won't affect the vanilla game, but will only show up when we run our mod.

Open the new player.sndshd file and add the following code at the top of the file:

Code:
//
// New player sounds
//
// Wood footsteps
// Gravel/dirt footsteps
// Concrete/road footsteps
// Water/liquid footsteps

// water/liquid
player_footstep_liquid {
   minDistance   1
   maxDistance   15
   volume      0
   no_dups

   sound/player/footsteps/water_footstep1.wav
   sound/player/footsteps/water_footstep2.wav
   sound/player/footsteps/water_footstep3.wav
   sound/player/footsteps/water_footstep4.wav
   sound/player/footsteps/water_footstep5.wav
   sound/player/footsteps/water_footstep6.wav
}

player_footstep_wood {
   minDistance   1
   maxDistance   15
   volume      0
   no_dups
   
   sound/player/footsteps/wood_footstep1.wav
   sound/player/footsteps/wood_footstep2.wav
   sound/player/footsteps/wood_footstep3.wav
   sound/player/footsteps/wood_footstep4.wav
   sound/player/footsteps/wood_footstep5.wav
   sound/player/footsteps/wood_footstep6.wav
   sound/player/footsteps/wood_footstep7.wav
}

// rug sounds
player_footstep_surftype10 {
   minDistance   1
   maxDistance   15
   volume      0
   no_dups
   
   sound/player/footsteps/rug_footstep1.wav
   sound/player/footsteps/rug_footstep2.wav
   sound/player/footsteps/rug_footstep3.wav
   sound/player/footsteps/rug_footstep4.wav
}

// dirt/gravel sounds
player_footstep_surftype11 {
   minDistance   1
   maxDistance   15
   volume      -10
   no_dups
   
   sound/player/footsteps/gravel_footstep1.wav
   sound/player/footsteps/gravel_footstep2.wav
   sound/player/footsteps/gravel_footstep3.wav
   sound/player/footsteps/gravel_footstep4.wav
   sound/player/footsteps/gravel_footstep5.wav
   sound/player/footsteps/gravel_footstep6.wav
}

// concrete/road
player_footstep_surftype12 {
   minDistance   1
   maxDistance   15
   volume      0
   no_dups

   sound/player/footsteps/concrete_footstep1.wav
   sound/player/footsteps/concrete_footstep2.wav
   sound/player/footsteps/concrete_footstep3.wav
   sound/player/footsteps/concrete_footstep4.wav
   sound/player/footsteps/concrete_footstep5.wav
   sound/player/footsteps/concrete_footstep6.wav
   sound/player/footsteps/concrete_footstep7.wav
   sound/player/footsteps/concrete_footstep8.wav
   sound/player/footsteps/concrete_footstep9.wav
}


A quick explanation of the sound shader file:

Whenever you have multiple source files listed in one sound shader, Doom3 will randomly choose a file from the list and play it. So, the more source files you have listed in a shader, the greater the variation of sounds. I prefer to have about 6 footstep sounds per surface... it gives enough variation that you don't notice any sort of annoying repitition. Of course, you can increase and decrease the number of sources according to your own needs.

volume

Volume values are in decibles, so 0 is still pretty loud. Think of a home stereo with a reciever... most of the time, you listen to music at a negative dB volume... unless you want to fry your speakers. The same concept applies to Doom3. So, if you want sounds to be softer, use negative volume values, as was done with the gravel sounds shown above.

min/maxDistance

This is the range to and from which the sound should be audible. For example, you can take a loud rumble and turn it into a low hum by reducing the volume... but if you don't change the min/maxDistance values, you'll only hear the sound if you're in the vicinity of the sound's origin (usually a speaker). You can increase the maxDistance value so that the hum will be audible at larger distances from the speaker. In the case of changing the player sounds, though, there's no need to alter the defaults of 1 and 15, because we'll always be in the vicinity of the sound's origin because... well... we are the origin.

Here's the quote from iddevnet:

Quote:
minDistance / maxDistance sets the radius where the sound fades out. The sound is at maximum volume inside 'minDistance' radius, and it completely silent after 'maxDistance' radius.


no_dups

no_dups is especially handy for footsteps and it means just what it says: the same source sound won't be played two times in a row.

Okay, with those sound shader options out of the way, let's talk about the shader names themselves:

player_footstep_liquid
player_footstep_wood
player_footstep_surftype10
player_footstep_surftype11
player_footstep_surftype12

Out of the box, there are a few other named surface types not listed here, as well as a few more custom/empty ones... so here's the full list:

Code:
metal   
stone
flesh
wood
cardboard
liquid
glass
plastic
ricochet
surftype10
surftype11
surftype12
surftype13
surftype14
surftype15


That means that you have the ability to create custom sounds for up to 15 surfaces without needing to touch the game code... not too shabby.

Since concrete, gravel and rug sounds weren't listed as "named" types, I used custom surftypes10-12.

So now that you have your player.sndshd defined, it's time to edit the player.def file and add the new sounds to the player so Doom3 knows how to link the sounds with your movement:

Copy the vanilla player.def file into your nps/def directory and open it.

Scroll through the file until you see this line:

Code:
   "snd_footstep"                  "player_sounds_footstep"


Leave that line alone, but add these just below it:

Code:
   // added custom footstep sounds
   "snd_footstep_wood"               "player_footstep_wood"
   "snd_footstep_liquid"               "player_footstep_liquid"
   "snd_footstep_surftype10"            "player_footstep_surftype10"
   "snd_footstep_surftype11"            "player_footstep_surftype11"
   "snd_footstep_surftype12"            "player_footstep_surftype12"
   // end add


Note how the "snd_footstep_*" matches with the appropriate shader name from the player.sndshd file we just created.

With that complete, we only have one more thing to do... edit some materials so that they reference the surface types.

Here are examples of a materials that use the wood, rug and dirt/gravel surface sounds. You can create the others yourself if you like. Also, I'm assuming you know how to create or use custom textures and their material files. If not, you can just add the top line (the surftype) to any vanilla shader material and it will work. Copy and paste these examples into a nps.mtr file and place the file in your npc/materials directory:

Code:
textures/euro/block3/embassy/in/rug1
{
   surftype10  // rug
   qer_editorimage   textures/euro/block3/embassy/in/decoration/object006_d.tga

   diffusemap   textures/euro/block3/embassy/in/decoration/object006_d.tga
   specularmap   textures/euro/block3/danteuk/gray/gray_s.tga
   bumpmap   textures/euro/block3/danteuk/gray/gray_local.tga

}

textures/euro/id_stock/textures/hell/boards1
{
   wood // wood
   qer_editorimage      textures/hell/boards1.tga

   {
      blend      bumpmap
      map      addnormals (textures/hell/boards1_local.tga, heightmap (textures/hell/boards1_bmp.tga,4) )
   }
      diffusemap   textures/hell/boards1.tga
      specularmap   textures/hell/boards1_s.tga
}

textures/euro/id_stock/textures/rock/dirt03
{
   surftype11 // dirt/gravel // dirt/gravel

   qer_editorimage      textures/rock/dirt03.tga
   diffusemap      textures/rock/dirt03.tga
   bumpmap         addnormals( textures/hell/dirt02_local.tga, heightmap( textures/hell/dirt02_h.tga, 8 ) )
   specularmap      textures/rock/dirt03_s.tga

}


Note that the last two examples are the vanilla game's materials with the only change being the addition of the surftype value. The first example uses a custom material with custom textures.

All that's left now is to "reloadSounds", "reloadDecls" and/or "reloadEngine" in the console (or just restart Doom3) and you're ready to go with custom player footstep sounds.

Enjoy!

Goliath

_________________
D3W Staff
Brink TV - Live Shoutcasts, Video On Demand, Podcasts of the Brink Comp Scene
Quake Live TV - Live Shoutcasts, Video On Demand, Podcasts of the NA QLive Comp Scene
Games Cast TV - E-sports central...


Last edited by goliathvt on Mon Jan 24, 2005 9:58 pm, edited 4 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 6:40 pm 
Offline
picked up the chaingun

Joined: Mon Oct 04, 2004 6:11 am
Posts: 151
Location: Somewhere Far Far away.....
I've been working with this sort of stuff for a while in my mod (Doom Chronicles), and the only thing that I have not been able to figure out is how to give different impact particles to different surfaces... I have tried using (example) "model_smokespark_metal", and use a different particle for it, but the game still uses the default "smokespark" for that weapon :(

I don't know if you have looked into this, but if you have and can give me any usefull tips, I'd be greatfull :)


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 8:45 pm 
Offline
In trouble with the feds
User avatar

Joined: Sun Jan 18, 2004 10:41 pm
Posts: 2749
Okay, I'm going to run through adding surface-specific sounds and surface-specific "splats" (impact particles) for weapons.

Sounds

Let's make pistol give off a wood "knock" sound whenever wood is shot and a gravel "shuffle" sound whenever you shoot a gravel surface. Open up the weapon_pistol.def file.

First, note that everything in:

Code:
entityDef   damage_bullet_pistol { ... }


ONLY applies to things that can get hurt... like enemies and breakable crap. So that's why the only sound reference is "snd_flesh".... You can add more if, say, you wanted to use S@tanic's "breakble wood" stuff and have a specific sound fire whenever you "hurt" some wood.

Here's how:

Code:
// from weapon_pistol.def
... SNIP ...

   "smoke_wound_flesh"   "burstysquirt.prt"
   "mtr_wound_flesh"   "textures/decals/hurt02"
   "mtr_wound_metal"   "textures/decals/hurtmetal"
   "mtr_wound_ricochet"   "textures/decals/hurtmetal"
   "mtr_splat_flesh"   "textures/decals/dsplat2"
   "mtr_splat_flesh2"   "textures/decals/dsplat5"
   "mtr_splat_flesh3"   "textures/decals/dsplat7"
   "mtr_splat_flesh4"   "textures/decals/dsplat11"
   // the flesh impact is used in the damage so players hear it on their body
   // the other impacts are played on detonation
   "snd_flesh"         "bullet_impact_flesh"
... SNIP ...


Note again, that the ONLY thing defined here is the "flesh" sound. Therefore, you have to add the new stuff, like so:

Code:
// from weapon_pistol.def
... SNIP ...

   "smoke_wound_flesh"   "burstysquirt.prt"
   "mtr_wound_flesh"   "textures/decals/hurt02"
   "mtr_wound_metal"   "textures/decals/hurtmetal"
   "mtr_wound_ricochet"   "textures/decals/hurtmetal"
   "mtr_splat_flesh"   "textures/decals/dsplat2"
   "mtr_splat_flesh2"   "textures/decals/dsplat5"
   "mtr_splat_flesh3"   "textures/decals/dsplat7"
   "mtr_splat_flesh4"   "textures/decals/dsplat11"
   // the flesh impact is used in the damage so players hear it on their body
   // the other impacts are played on detonation
   "snd_flesh"         "bullet_impact_flesh"
   "snd_wood"         "bullet_impact_wood"
   "snd_surftype12"      "bullet_impact_surftype12"
... SNIP ...


surftype12 is a gravel surface. Now, if, for some reason you made "hurtable" wood and/or gravel/concrete, those sounds would be played on impact.

Now, for things that can't be hurt... like most surfaces in a map:

Scroll down the file further and look for:

Code:
   // played on collision with non-damagable entities
   "snd_plastic"            "bullet_impact_plastic"
   "snd_cardboard"            "bullet_impact_cardboard"
   "snd_flesh"               "bullet_impact_flesh"
   "snd_metal"               "bullet_impact_metal"
   "snd_stone"               "bullet_impact_stone"
   "snd_glass"               "bullet_impact_glass"
   "snd_liquid"            "bullet_impact_liquid"
   "snd_ricochet"            "bullet_ricochet"
   //"snd_impact"            "bullet_impact_metal"


And add:

Code:
   "snd_wood"               "bullet_impact_wood"
   "snd_surftype12"            "bullet_impact_surftype12"


This means that if you shoot a character OR a non-damageable surface that has a surftype of wood or surftype12, doom3 will play those sounds on impact.

Next, you need to make a sound shader to handle those references:

Here's part of my "projectile_impacts.sndshd" that I'm using for the D3CDIT project (this wasn't included in the build, by the way):

Code:
bullet_impact_wood {
   minDistance   1
   maxDistance   15
   volume      -10
   
   sound/euro/shared/goliathvt/projectile_impacts/wood/wood_impact1.wav
   sound/euro/shared/goliathvt/projectile_impacts/wood/wood_impact2.wav
   sound/euro/shared/goliathvt/projectile_impacts/wood/wood_impact3.wav
}

bullet_impact_surftype12 {
   minDistance   1
   maxDistance   15
   volume      0

   sound/euro/shared/goliathvt/projectile_impacts/gravel/gravel_impact1.wav
   sound/euro/shared/goliathvt/projectile_impacts/gravel/gravel_impact2.wav

}


I assume that you already have the surftype listed in the various materials you're trying to use (it's the same surftype reference for player footsteps...), so follow my tutorial for info on adding that to your .mtr files.

Note that when you test this, you may need to tone down the sound of the gun if you're having trouble hearing the effect... but it does work.

Visuals

Okay, with the sound effects for specific surfaces covered, let's move on to now to change the visual impact of the pistol:

Again, open up the weapon_pistol.def file. I'm going to skip the "hurtable" stuff and just focus on things that can't get killed (most game surfaces). For that, we need to edit this section:

Code:
entityDef projectile_bullet_pistol { ... }


Scroll down until you see these lines:

Code:
   "mtr_detonate"            "textures/decals/bulleth02"
   "mtr_detonate_glass"      "textures/decals/testbulletglass1"


Right now, the ONLY detonation effects for the pistol are the default "mtr_detonate" and a glass detonation effect.

So, let's add:

Code:
   "mtr_detonate_surftype12"   "textures/decals/duffysplat"
   "mtr_detonate_wood"   "textures/decals/duffysplat"


For now, just use the blood splat as the material effect for testing... you can create your own decal later on.

This will replace the black bullet mark that fades away over time with a blood splat that will fade away....

I think that should do it... so basically, you have full control over the sound and visual effects that get used for each surface you define.

Here's a screenshot. The wall uses the default detonation...

Code:
"mtr_detonate"            "textures/decals/bulleth02"


And the floor (wood) uses the blood splat.

Code:
"mtr_detonate_wood"      "textures/decals/duffysplat"


Image

Oh, and one last thing... you can load a particle effect (in addition to a decal "splat") when the projectile detonates by modifying the entityDef projectile_bullet_pistol section:

Code:
   //"model_smokespark"         "bulletsmokeandspark.prt"
   // comment the above out so the following line works:
   "model_detonate"         "plasmatrail"
   "model_ricochet"         "bulletricochet.prt"


Note that these don't seem to be surface-specific...

Image

The possible values are model_detonate, model__ricochet, model_smokespark, model_burn, model_tracer, and model__dissolve.
Let me know if you have any problems or further questions.

Goliath

_________________
D3W Staff
Brink TV - Live Shoutcasts, Video On Demand, Podcasts of the Brink Comp Scene
Quake Live TV - Live Shoutcasts, Video On Demand, Podcasts of the NA QLive Comp Scene
Games Cast TV - E-sports central...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 2:26 am 
Offline
picked up the chaingun

Joined: Mon Oct 04, 2004 6:11 am
Posts: 151
Location: Somewhere Far Far away.....
Well, its different particles for different surfaces that I am trying to do :( I have tried "model_detonate_metal" but it still just plays the default particle :( It would be odd if there is no way of achieving that without modifying the sdk :? I'm still looking into it, and have been trying a number of different things. If I find a way to do it, I will post it :)

BTW, Thanks for the help :)


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 6:55 am 
Offline
picked up 75 health

Joined: Wed Oct 20, 2004 3:45 am
Posts: 97
There are no specific detonate fx. You can only use "model_detonate".

The way it works is to look for a "model_detonate" in the projectile def. If it fails to find that fx, or if the string is empty, it then searches the following:

If the surface is metal, stone, or none, it uses "model_smokespark". If the surface is a richochet, it uses "model_ricochet". Otherwise it uses "model_smoke".

So if that doesn't suit your needs, the only way I can see of doing what you want without modifying the SDK is if you can somehow set the console variable "g_testParticle" to "1" and "g_testParticleName" to the name of the fx you want to use, since that will override everything above. I don't know if scripting will handle that, though. It's probably easier in the end to modify the SDK source code.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 8:10 pm 
Offline
picked up the chaingun

Joined: Mon Oct 04, 2004 6:11 am
Posts: 151
Location: Somewhere Far Far away.....
hmmm...... Thanks for the usefull info..... I'll see what I can do. But because of many other things I am working on, I might have to wait for the second chapter of my mod b4 I put in the type of particle system that I want :(


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sat Jan 29, 2005 11:51 pm 
Offline
has joined the game

Joined: Fri Nov 19, 2004 5:04 am
Posts: 31
Location: Arlington, Texas, USA
How can you add more (named) sound surfaces? What in the SDK would you need to mess with?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 30, 2005 8:59 am 
Offline
picked up 75 health

Joined: Wed Oct 20, 2004 3:45 am
Posts: 97
As far as I know the material parser is part of the engine rather than the SDK. Therefore, it doesn't seem possible to reference a new surface type by name in a material file and have the parser recognise it.

The only solution I know about is to add your own text processor that generates the mtr files, then you can translate your own named surface into the D3 generic ones.


Top
 Profile  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Fri Mar 21, 2008 5:48 am 
Offline
picked up the chaingun

Joined: Wed Sep 26, 2007 3:57 am
Posts: 160
Sorry to resurect this old thread but I was wondering, does the new nps folder need to stay outside of the base folder? If I put it in my base will it affect anything?

_________________
!


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Fri Mar 21, 2008 3:27 pm 
Offline
missed 400 shots

Joined: Fri Nov 04, 2005 7:48 pm
Posts: 409
Location: Scotland, UK
Antispam measure: What is larger? The Sun or the Galaxy?: Sun
If I'm reading the tutorial correctly, I think doing that will overwrite the game's original sounds. Putting it on the same level as base will make it a mod folder so that any modified/new definitions, GUIs, etc. won't affect the original game's.

_________________
My Doom 3 Blog -- Latest update: Discontinued

Download the DOOM 3 Clean Paks for a cleaner editing experience.


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Fri Mar 21, 2008 7:20 pm 
Offline
isn't as evil anymore

Joined: Sat Feb 10, 2007 3:33 pm
Posts: 667
Location: England
Skul wrote:
If I'm reading the tutorial correctly, I think doing that will overwrite the game's original sounds. Putting it on the same level as base will make it a mod folder so that any modified/new definitions, GUIs, etc. won't affect the original game's.

Exactly, and if you turn your mod folders into a pk4 and name it either alphabetically sooner or a higher number pak then any duplicate files in the mod folder will take priority, so it's much easier and better to leave base alone. You can mimic the file structure in base to keep things simple.

_________________
Very cool videos:
http://www.youtube.com/watch?v=C2vgICfQawE
http://www.youtube.com/watch?v=UnURElCzGc0
http://www.youtube.com/watch?v=9D05ej8u-gU
http://www.youtube.com/watch?v=WibmcsEGLKo
http://www.youtube.com/watch?v=y-Gk_Ddhr0M


Top
 Profile  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Mon Nov 22, 2010 7:47 pm 
Offline
The first 10 posts have been the best...
User avatar

Joined: Mon Nov 22, 2010 3:24 pm
Posts: 20
Thats an old thread here...but its about footsteps.
I really hate the footstep sound in Doom 3.
Is there a way to completly remove the footstep sound?
Or at least a good footstep sound mod someone know?

I,m glad if someone could help. Thank you

_________________
http://tomyum72.deviantart.com/gallery/


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Mon Mar 07, 2011 11:15 pm 
Offline
The first 10 posts have been the best...

Joined: Sat Mar 27, 2010 4:25 pm
Posts: 24
Tom Yum 72 wrote:
Thats an old thread here...but its about footsteps.
I really hate the footstep sound in Doom 3.
Is there a way to completly remove the footstep sound?
Or at least a good footstep sound mod someone know?

I,m glad if someone could help. Thank you


Same. Would love that there was just no footstep sound. I've deleted the footsteps from pak003.pk4\sound\xian\player\footsteps\concrete_klinks but I still hear the damn footsteps in game. What files do I have to delete?


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Tue Mar 08, 2011 12:42 am 
Offline
fired 300 rounds

Joined: Sat Jun 12, 2010 11:36 pm
Posts: 318
Play the game with Denton Mod ;)


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Tue Mar 08, 2011 1:21 am 
Offline
is sad because his cool title went away
User avatar

Joined: Tue Aug 12, 2003 11:38 am
Posts: 707
Location: Underneath it all, waiting to get to the surface.
i want to share my pistol concrete particle puff effect inspired by the ones in max payne

Code:
particle concrete_impact {
   {
      count            32
      material         textures/particles/debries
      time            1.550
      cycles            1.000
      deadTime         1.000
      bunching         1.000
      distribution      sphere 2.000 2.000 2.000
      direction         cone "90.000"
      orientation         view
      speed             "0.000"  to "-1.000"
      size             "0.000"  to "0.500"
      aspect             "1.000"
      randomDistribution            1
      boundsExpansion            0.000
      fadeIn            1.000
      fadeOut            1.000
      fadeIndex            0.000
      color             0.580 0.580 0.580 1.000
      fadeColor          0.000 0.000 0.000 1.000
      offset             0.000 0.000 0.000
      gravity          world 20.000
   }
   {
      count            16
      material         textures/particles/debries
      time            0.700
      cycles            1.000
      bunching         0.150
      distribution      rect 8.000 8.000 8.000
      direction         cone "90.000"
      orientation         view
      speed             "300.000"
      size             "1.500"  to "1.000"
      aspect             "1.000"
      randomDistribution            1
      boundsExpansion            0.000
      fadeIn            0.450
      fadeOut            1.000
      fadeIndex            1.000
      color             0.580 0.580 0.580 1.000
      fadeColor          0.000 0.000 0.000 0.000
      offset             0.000 0.000 0.000
      gravity          world 300.000
   }
   {
      count            12
      material         textures/particles/smoke_debries
      time            1.700
      cycles            3.000
      deadTime         3.000
      bunching         1.000
      distribution      rect 0.000 0.000 0.000
      direction         cone "90.000"
      orientation         view
      speed             "0.000"
      size             "1.000"  to "8.000"
      aspect             "1.000"
      rotation             "15.000"  to "28.000"
      randomDistribution            1
      boundsExpansion            0.000
      fadeIn            0.000
      fadeOut            1.000
      fadeIndex            1.000
      color             0.300 0.300 0.300 1.000
      fadeColor          0.000 0.000 0.000 1.000
      offset             0.000 0.000 0.000
      gravity          world 8.000
   }
   {
      count            3
      material         textures/particles/barrelpoof
      time            1.100
      cycles            0.000
      deadTime         4.000
      bunching         0.100
      distribution      rect 0.000 0.000 0.000
      direction         outward "0.000"
      orientation         view
      speed             "5.000"  to "0.000"
      size             "2.000"  to "5.000"
      aspect             "1.000"
      rotation             "15.000"  to "0.000"
      randomDistribution            1
      boundsExpansion            0.000
      fadeIn            0.100
      fadeOut            0.700
      fadeIndex            0.000
      color             0.180 0.160 0.140 1.000
      fadeColor          0.000 0.000 0.000 0.000
      offset             0.000 0.000 0.000
      gravity          world -1.000
   }
   {
      count            2
      material         textures/particles/boomboom3
      time            0.150
      cycles            1.000
      deadTime         4.000
      bunching         0.000
      distribution      rect 0.200 0.200 0.200
      direction         outward "0.000"
      orientation         view
      speed             "5.000"  to "0.000"
      size             "0.000"  to "6.500"
      aspect             "1.000"  to "1.500"
      randomDistribution            1
      boundsExpansion            0.000
      fadeIn            0.000
      fadeOut            0.600
      fadeIndex            0.000
      color             0.870 0.910 0.450 1.000
      fadeColor          0.000 0.000 0.000 0.000
      offset             0.000 0.000 0.000
      gravity          world -1.000
   }

}


i don't remember now if textures/particles/debries is a meterial done by me or it's already in the game, i guess it's the latter, i hope you guys like it

_________________
-->7318<--


Top
 Profile  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Tue Mar 08, 2011 2:00 am 
Offline
The first 10 posts have been the best...

Joined: Sat Mar 27, 2010 4:25 pm
Posts: 24
reko wrote:
Play the game with Denton Mod ;)


Sikkmod is better, I want just to get rid of the annoying footstep sounds. What files do I delete guys?


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Tue Mar 08, 2011 8:14 am 
Offline
did just hit his 750th monster
User avatar

Joined: Mon Sep 06, 2004 4:44 pm
Posts: 768
Location: Berlin, Germany
You don't have to delete files. Create a small sound mod that replaces the original footstep sounds with mute sounds. Open the pak003.pk4 with a zip program and search for the sound files, then place new sounds with the same path and name in a new pk4 file.

Or, maybe a better solution, find the sound shader file which controls the footstep sounds and comment them out there.


Top
 Profile  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Wed Mar 09, 2011 3:00 am 
Offline
did just hit his 750th monster
User avatar

Joined: Sun Jan 01, 2006 11:27 pm
Posts: 865
Location: St. Catherines, Ontario Canada
morrowind wrote:
I want just to get rid of the annoying footstep sounds. What files do I delete guys?



the footstep sounds are located at :

pak003.pk4

sound/ed/player/steps/ ("step sounds are here" 1,2,3,5,7,9,10,11,13) in either .wav or .ogg format.

myself I've just rerecorded them at a lower volume and made them more subtle for my mod.

you can use a program like audacity or goldwave to rerecord them as empty.wavs with no sound and save them in a folder in your base folder in the same directory structure that will nullify or change your footstep sounds in game without changing or damaging the originals.

new folders with new files created in the base folder with a proper directory will override the .pk4 files without damage.

example:

make a new folder directory as in.....doom3/ base/sound/ed/player/steps/ "replaced sounds go here"

there are 9 of them. then test your results :)

or if you want to have fun use the hell knights step sounds and stomp your way through the game..or...maybe not...

but that should help somewhat.... rock on!

J


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Thu Apr 28, 2011 8:49 am 
Offline
has joined the game

Joined: Sat Apr 02, 2011 9:15 pm
Posts: 33
Their's an easier way to reduce the volume. What I did was go into the base directory, pak003.pk4, sound, then scrolled down towards the bottom of the list. You'll find a file called player.sndshd. Right click on that and click on Copy To. Now copy it to your desktop. Now go to the mod you wish to edit your footsteps sounds in and create a .pk4. Name it whatever you want. Mine is SoundMods.pk4. Then open it, create a folder called sound. Now paste your player.sndshd file into it. If your mod already has sound changes of it's own, open the player.sndshd file you've just pasted into the mod's directory and delete everything except for the player_sounds_footsteps values. Edit it's volume to a negative value (you can go as far as you want). The further into the negatives you go, the lower the sound is. Set the value to -30 and you won't hear footsteps.

Has anyone been able to find where footstep sound frequency can be adjusted? I've been trying to find where I can edit that value but haven't had any success. I'd like to reduce footstep sound frequency so footsteps are about every second rather than about 5 a second in addition to the lowered volume I already have set.


Top
 Profile E-mail  
 
 Post subject: Re: Tut: Different Player Sounds, Wep Snds & Visuals per Sur
PostPosted: Thu Apr 28, 2011 11:24 am 
Offline
picked up 200 ammo

Joined: Tue Jan 12, 2010 1:01 pm
Posts: 261
Location: The Ylside Bunker
Hi

A way to do this may be to edit player.def

Code:
anim run_forward               models/md5/characters/npcs/playermoves/run.md5anim {
   frame 8                  leftfoot
   frame 17                  rightfoot
}


You can fudge in some extra leftfoot and right foot at in-between frames. These however would likely bear no relation at all to what the player model is doing and may play a foot step sound when the player actually has a foot in the air.

You could load the player md5 mesh and anim for the move that you are interested in using der-ton's model viewer (http://www.iddevnet.com/doom3/downloads.php) and see what is happening on each frame of animation to see if there are some more realistic frames where you can add extra footstep sounds.

BTW, leftfoot & rightfoot call the same footstep event in the SDK:

Code:
/*
===============
idActor::Event_Footstep
===============
*/
void idActor::Event_Footstep( void ) {
   PlayFootStepSound();
}


Hope that helps.

EDIT: Oh! - you wanted less footstep sounds NOT more! - well just comment some out then with // e.g. :

Code:
anim walk                  models/md5/characters/npcs/playermoves/jog.md5anim {
   frame 2                  leftfoot
   //frame 11                  rightfoot
}

_________________
Arx - End Of Sun TC.
Arx - End Of Sun TC. (ModDB)
Hexen:Edge of Chaos TC.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group