[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
https://battlefieldmodding.com/ssm/phpBB3/

Finally!
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=5&t=4560
Page 1 of 2

Author:  Archimonde0_0 [ Sat Dec 27, 2008 10:31 pm ]
Post subject:  Finally!

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!

Author:  [TKO]Twist [ Sat Dec 27, 2008 11:13 pm ]
Post subject:  Re: Finally!

cool, you should/could make an example video...

Author:  Archimonde0_0 [ Sat Dec 27, 2008 11:30 pm ]
Post subject:  Re: Finally!

I would but Fraps lags this old laptop like hell, and it wont even record sound because of Dells horrible software.

Author:  Archimonde0_0 [ Sun Dec 28, 2008 2:15 am ]
Post subject:  Re: Finally!

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

Author:  Archimonde0_0 [ Sun Dec 28, 2008 4:32 am ]
Post subject:  Re: Finally!

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!

Author:  Sheppard [ Tue Dec 30, 2008 6:04 pm ]
Post subject:  Re: Finally!

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

Author:  Archimonde0_0 [ Tue Dec 30, 2008 6:52 pm ]
Post subject:  Re: Finally!

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.

Author:  freddy [ Tue Dec 30, 2008 8:19 pm ]
Post subject:  Re: Finally!

ty. downloaded but havent tested it yet, bf sounds are tricky lol

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/