[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/bbcode.php on line 112: 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 112: 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 112: 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 - Fire Loop problem
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

Fire Loop problem
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=5132
Page 1 of 1

Author:  Coroner47 [ Tue Aug 04, 2009 4:03 am ]
Post subject:  Fire Loop problem


Author:  freddy [ Tue Aug 04, 2009 4:20 am ]
Post subject:  Re: Fire Loop problem


Author:  Coroner47 [ Tue Aug 04, 2009 5:06 am ]
Post subject:  Re: Fire Loop problem

im using my own snd files. i just tried the stereo mono idea but still i get looping snd when i pull trigger. the problem even occurs when i copy the .ssc file over for the weapon & don't change it at all!! still loops... im confused!! can changing .ssc file only work in a client side mod like dc 0.7 & not a map or ssm??

Author:  freddy [ Tue Aug 04, 2009 5:14 am ]
Post subject:  Re: Fire Loop problem

good question, i know sounds are all client but the server sends the network info from other players guns eg stop/start and such. however there is a bug with the mg´s in bf42 where the sound never stop until you change weapon.

viewtopic.php?f=3&t=4713

Author:  fo0k [ Tue Aug 04, 2009 9:50 am ]
Post subject:  Re: Fire Loop problem


Author:  Archimonde0_0 [ Tue Aug 04, 2009 1:42 pm ]
Post subject:  Re: Fire Loop problem

First thing to do is check your Sound Files, you need to make sure that all your sound files are PCM 16 bit Signed 44100khz sounds, if they are not, BF1942 will not play them. You also might want to make 22100khz and 111000khz versions for players who play on lower sound settings, all sound files are .wav in bf1942. You also need to make sure you have two versions of the same sound, one should be saved in Stereo format, and the other in Mono format. Stereo Format will be used for First Person sounds, and is enable by using the "stereo" line in the .ssc. Mono will be used for 3rd Person sounds, and is enabled by not including "stereo" to that sound patch in the .ssc.

You also need to make sure the sounds are their appropriate lengths. In Battlefield 2 you can use Loop Keys, which will tell the engine at what part of the sound to loop back to the beginning, and then on the ending of that sound trigger it'll just play the rest of the sample, However BF1942 doesnt use this system. In BF1942 you need to sink the length of your sound to the speed of your gun, so if your sound fires 600 rounds a minute, you should divide 60 by it. so:

60/600 = 0.1


so your sound should be 0.1 seconds in length to loop correctly. For faster weapons, like a MG-42 at 1200 rounds a minute, it will be better to use a sound loop, where a 1 or 2 second sound contains a looping sound over and over again, as opposed to a really short one. To get reverb on your weapons after you shoot, you will need to make another sound both for stereo and mono that plays after the weapon finishes firing.

And of course, make sure to use FinishSample for your stop type! :D

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