Jump to content
Sign in to follow this  
spirit

Custom sounds

Recommended Posts

Since i cant find a thread that covers my desire complete i started a new one.

I am busy with making all environment changes to Watkins island. I fixed all environment sounds like wind/snow storms etc fine. Now the next step is the sound for walking in snow. Since snow is not a defined sound in the character.pbo i been searching.

So what i want? In the config file you can attach sounds to texture right. So say files='SNOW' sound='SNOW'. That stuff. Now i copied some code

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class SoundEnvironExt {

snow = {{"\ca\characters\data\sound\rock\run1", 0.000562, 1}, {"\ca\characters\data\sound\rock\run2", 0.000562, 1}, {"\ca\characters\data\sound\rock\run3", 0.000562, 1}, {"\ca\characters\data\sound\rock\run4", 0.000562, 1}, {"\ca\characters\data\sound\rock\run5", 0.000562, 1}, {"\ca\characters\data\sound\rock\run6", 0.000562, 1}, {"\ca\characters\data\sound\rock\run7", 0.000562, 1}, {"\ca\characters\data\sound\rock\run8", 0.000562, 1}, {"run", {"\ca\characters\data\sound\rock\run1", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run2", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run3", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run4", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run5", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run6", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run7", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run8", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk1", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk2", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk3", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk4", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk5", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk6", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk7", 0.000562, 1}}, {"walk", {"\ca\characters\data\sound\rock\walk8", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint1", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint2", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint3", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint4", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint5", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint6", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint7", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint8", 0.000562, 1}}, {"crawl", {"\ca\characters\data\sound\rock\crawl1", 0.000562, 1}}, {"crawl", {"\ca\characters\data\sound\rock\crawl2", 0.000562, 1}}, {"crawl", {"\ca\characters\data\sound\rock\crawl3", 0.000562, 1}}, {"crawl", {"\ca\characters\data\sound\rock\crawl4", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up1", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up2", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up3", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up4", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down1", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down2", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down3", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down4", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground1", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground2", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground3", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground4", 0.000562, 1}}, {"swim", {"\ca\characters\data\sound\swim\swim5", 0.017783, 1}}, {"swim", {"\ca\characters\data\sound\swim\swim6", 0.017783, 1}}, {"swim", {"\ca\characters\data\sound\swim\swim7", 0.017783, 1}}, {"slide", {"\ca\characters\data\sound\sliding\sliding1", 0.000562, 1}}, {"slide", {"\ca\characters\data\sound\sliding\sliding2", 0.000562, 1}}, {"slide", {"\ca\characters\data\sound\sliding\sliding3", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder11", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder12", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder13", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder14", 0.000562, 1}}};

};

};

I expected this code to be able to enable sound when choosing SNOW as sound to mask. However nothing happens. Anybody knows a way of defining a custom sound for characters for walk, crawl etc in the right way without overwriting the default ones ofcourse. There is no error or something, it just doesnt work. All i try do here is take the standard rock code and renamed it to SNOW. When that works i can simple change sounds for my own desire....

Anybody? Tx in advance for reading/answering!

Share this post


Link to post
Share on other sites

Just saw something odd. In the code of characters.pbo the sound of snow is already defined and it also points to the ca\ sound shit to a place called snow. Now the odd thing is, there is no snow sounds in that dir. I might be in some luck by just making a pbo that puts all that stuff in the "standard" location since there is nothing to overwride smile_o.gif

Share this post


Link to post
Share on other sites

!SOLVED!

Took me a while as a non config wizard tounge2.gif but i now got it working. I can define any sort of sound and attach it to the configsurfaces. Means i am finaly free of the default sounds. Created a new sound wtkn_snow and i works fine. Needed to create a shitload of wss files but its worth it:)

And i dont overwrite anything:)

Only odd thing is that the sound seems to travel endless:( Amazin how how hard they can make it to make a footstep sound. If anybody knows how that can happen then pls.

And yes the sound SNOX is just an example going here. Now only thing i need find out where ya define the travel of sound. Maybe just the volume of walk 3-4 or what ever... Now you can hear a squad moving in the snow from the other side of the watkins:)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgVehicles {

/*extern*/ class Man;

class CAManBase: Man {

soundEnviron[] = {};

class SoundEnvironExt {

snox[] = {{"\ca\characters\data\sound\rock\run1", 0.000562, 1}, {"\ca\characters\data\sound\rock\run2", 0.000562, 1}, {"\ca\characters\data\sound\rock\run3", 0.000562, 1}, {"\ca\characters\data\sound\rock\run4", 0.000562, 1}, {"\ca\characters\data\sound\rock\run5", 0.000562, 1}, {"\ca\characters\data\sound\rock\run6", 0.000562, 1}, {"\ca\characters\data\sound\rock\run7", 0.000562, 1}, {"\ca\characters\data\sound\rock\run8", 0.000562, 1}, {"run", {"\ca\characters\data\sound\rock\run1", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run2", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run3", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run4", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run5", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run6", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run7", 0.000562, 1}}, {"run", {"\ca\characters\data\sound\rock\run8", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk1", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk2", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk3", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk4", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk5", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk6", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk7", 0.000562, 1}}, {"walk", {"\watkins\sounds\walk8", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint1", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint2", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint3", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint4", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint5", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint6", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint7", 0.000562, 1}}, {"sprint", {"\ca\characters\data\sound\rock\sprint8", 0.000562, 1}}, {"crawl", {"\watkins\sounds\crawl1", 0.000562, 1}}, {"crawl", {"\watkins\sounds\crawl2", 0.000562, 1}}, {"crawl", {"\watkins\sounds\crawl3", 0.000562, 1}}, {"crawl", {"\watkins\sounds\crawl4", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up1", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up2", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up3", 0.000562, 1}}, {"standup", {"\ca\characters\data\sound\rock\up4", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down1", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down2", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down3", 0.000562, 1}}, {"laydown", {"\ca\characters\data\sound\rock\down4", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground1", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground2", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground3", 0.000562, 1}}, {"bodyfall", {"\ca\characters\data\sound\rock\fall_to_ground4", 0.000562, 1}}, {"swim", {"\ca\characters\data\sound\swim\swim5", 0.017783, 1}}, {"swim", {"\ca\characters\data\sound\swim\swim6", 0.017783, 1}}, {"swim", {"\ca\characters\data\sound\swim\swim7", 0.017783, 1}}, {"slide", {"\ca\characters\data\sound\sliding\sliding1", 0.000562, 1}}, {"slide", {"\ca\characters\data\sound\sliding\sliding2", 0.000562, 1}}, {"slide", {"\ca\characters\data\sound\sliding\sliding3", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder11", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder12", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder13", 0.000562, 1}}, {"ladder", {"\ca\characters\data\sound\ladder\ladder14", 0.000562, 1}}};

};

};

};

Share this post


Link to post
Share on other sites

try using the default bis volume for walking & running, off the top of my head its minus db...hmmm

db-65

I think thats right, this should stop you being heard from miles away..

Good luck mate, hope that works for ya

Regards

Mark XIII

hihibanner14a.png

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×