project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
04 Oct 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2012-04-06, 22:24   #1
spirit03
Default [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
So, basicaly, I'd like it to play one sound effect for entire burst, instead playing sound effect for each single flare.

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."
spirit03 is offline Reply With Quote
Old 2012-04-07, 06:34   #2
[R-DEV]​rPoXoTauJIo
PR:BF2 Developer
Supporting Member

rPoXoTauJIo's Avatar
Default Re: [Help!] Flares burst sound

Code:
rem ---BeginComp:DefaultSoundComp ---
ObjectTemplate.createComponent DefaultSoundComp
ObjectTemplate.sound.maxSoundsPerBurst X
rem ---EndComp ---
No?
rPoXoTauJIo is offline Reply With Quote
Old 2012-04-07, 08:30   #3
spirit03
Default Re: [Help!] Flares burst sound

Yes, thank You very much rPoXoTauJIo!

Cheers!
spirit03 is offline Reply With Quote
Reply


Tags
burst, flares, sound

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 16:16.