[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Finally!

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Thu May 02, 2024 7:23 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Finally!
PostPosted: Sat Dec 27, 2008 10:31 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
Well Im extremely happy, I finally achieved what ive always wanted in bf1942, dynamic Distant sounds so that I could create battle ambience that actually had some meaning.

Using this code in every weapon, with different sounds, and modified slightly for vehicles, I was able to create the distant sounds for the weapons. Increase the explosion distance and I had all the right cards

###########################################################################################################
### Fire Loop ###
#################
newPatch

load @ROOT/Sound/@RTD/barmlp.wav
minDistance 6
stereo
loop
stop FinishSample
dopplerOff
priority 10
*** Distance Volume ***
beginEffect
controlDestination Volume
controlSource Distance
envelope Ramp
param 1
param 1
param 1
param -1
endEffect

load @ROOT/Sound/@RTD/barmlp.wav
minDistance 200
loop
stop FinishSample
dopplerOff
priority 8
randomStartPitch 0.02 / 0.01
*** Distance Volume ***
beginEffect
controlDestination Volume
controlSource Distance
envelope Ramp
param 1
param 1
param 0
param 1
endEffect

*** Distance Volume ***
beginEffect
controlDestination Volume
controlSource Distance
envelope Ramp
param 1
param 170
param 1
param -1
endEffect

load @ROOT/Sound/@RTD/browndist.wav <---- One of the sounds I made
minDistance 1600
loop
stop FinishSample
dopplerOff
priority 2

*** Distance Volume *** <---- Tells it to be silent until 170 meters
beginEffect
controlDestination Volume
controlSource Distance
envelope Ramp
param 170
param 171
param 0
param 1
endEffect


*** Distance Volume *** <-- At 171 meters it goes to full volume, and at 1600 meters slightly under 1 mile, it goes silent, and creates a ramp for that so it gets quieter the farther away you are.
beginEffect
controlDestination Volume
controlSource Distance
envelope Ramp
param 171
param 1600
param 1
param -1
endEffect

so happy!


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Finally!
PostPosted: Sat Dec 27, 2008 11:13 pm 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226
cool, you should/could make an example video...


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Finally!
PostPosted: Sat Dec 27, 2008 11:30 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
I would but Fraps lags this old laptop like hell, and it wont even record sound because of Dells horrible software.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Finally!
PostPosted: Sun Dec 28, 2008 2:15 am 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
Here I compiled a list of everything I did.

1.) Raised the distance of the normal sounds from 150, to 170 meters.
2.) Edited the MGDist sounds made by dice to play silently
3.) Edited the sound files for those MGDist sounds to make singular versions
4.) Used the code above in every weapon, modifying it accordingly, and every vehicle I wanted
5.) Join a server and have fun :D


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Finally!
PostPosted: Sun Dec 28, 2008 4:32 am 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
Here I packed it up if you wanna give it a try, it only works on servers that dont use content check though.

Extract the zipped folder into the Mods Folder, then go to the bf1942 mod folder, and edit the init.con there using notepad.

At the top of the con you'll see the line: game.addModPath Mods/bf1942

right above it add this line: Game.addModPath Mods/Bf19422/

Erase that line to turn the mod off, or type it to turn it on. Stay tuned for better, newer versions!


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Finally!
PostPosted: Tue Dec 30, 2008 6:04 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
I tried this out, it is completely awesome. Only a couple problems, the sounds sometimes cut out for the Tank cannons and bolt action rifles, from first person mode you only hear sound for your first shot unless you get out of the tank and get back in or switch to another weapon then they work for one more shot... I don't know why it does this, do you have the same problem? Also the browning and MG42's new sounds are really cool :D

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Finally!
PostPosted: Tue Dec 30, 2008 6:52 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
All the sounds work, whats happening with the weapons sometimes cutting out is that the Tank and artillery pieces have higher priorities, and with all the other sounds going on around bf1942 compensates by removing some of the sounds, you should hear most of the time though, im working on a new version, hopefully ill fix things.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Finally!
PostPosted: Tue Dec 30, 2008 8:19 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253
ty. downloaded but havent tested it yet, bf sounds are tricky lol


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 296 guests


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

Search for:
Powered by phpBB® Forum Software © phpBB Group