|
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here |
|
Thread Tools | Display Modes |
2012-04-06, 22:24 | #1 |
Join Date: Apr 2012
Posts: 77
Croatia
|
[Help] Flares burst sound
Hello!
I'm new to this forum and I would like to greet you all with one big: Hi! Now, I need help regarding flares burst sound. As you know, in BF2 as well as in PR, each flare has its own sound, so if you pop 3 flares it will play flare sound effect 3 times and so on. Now, I'm editing DCON AC130 into AIX2 mod (which I use strictly for my own use) and have multiple flare launchers on it (3 from each side). I found flare burst sound effect somewhere on the net and I would like to play that single file once when X is pressed. This is the part from my flare launcher code: Code:
ObjectTemplate.activeSafe Sound S_dcon_ac130_FlareLauncher_Fire1P ObjectTemplate.modifiedByUser spirit03 ObjectTemplate.lowSamples 2147483647 ObjectTemplate.mediumSamples 2147483647 ObjectTemplate.soundFilename "objects/weapons/armament/decoy_flare_launcher/sounds/flares_burst.wav" ObjectTemplate.loopCount 0 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.65 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 0 Well, I hope its not too complicated! Thanks! P.S. PR is probably one of the best mods for any game that has come out, and to me its main idea is: (I've been playing COD b4) "In COD you may call in your killstreaks, but in PR, YOU are the killstreak." |
2012-04-07, 06:34 | #2 |
PR:BF2 Developer
Join Date: Jul 2011
Posts: 1,966
Belarus
Location: Minsk
|
Re: [Help!] Flares burst sound
Code:
rem ---BeginComp:DefaultSoundComp --- ObjectTemplate.createComponent DefaultSoundComp ObjectTemplate.sound.maxSoundsPerBurst X rem ---EndComp --- |
2012-04-07, 08:30 | #3 |
Join Date: Apr 2012
Posts: 77
Croatia
|
Re: [Help!] Flares burst sound
Yes, thank You very much rPoXoTauJIo!
Cheers! |
Tags |
burst, flares, sound |
|
|