Two Firesounds?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Two Firesounds?

Post by KnightsFan »

My dilemma is I have two sounds I want to play when I fire my gun, one after the other. One is the rifle firing, the other is the bolt being pulled. I tried simply adding another sample in the .snd file, but, of course, then it just alternated which one to play.

Is there a way to either play the two sounds in a row, or combine the two .wavs into one?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Two Firesounds?

Post by kinetosimpetus »

Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Two Firesounds?

Post by Deviss »

KnightsFan wrote:My dilemma is I have two sounds I want to play when I fire my gun, one after the other. One is the rifle firing, the other is the bolt being pulled. I tried simply adding another sample in the .snd file, but, of course, then it just alternated which one to play.

Is there a way to either play the two sounds in a row, or combine the two .wavs into one?
you can use custom sounds for make 2 files for one fire 0,5 each one so when you fire 50% of one sound and 50% of the other :wink: for example

my dc17 pistol fire have 2 sounds

SoundProperties()
{
Name("dc17pistol_fire");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("firedc17pistol_1", 0.5);
Sample("firedc17pistol_2", 0.5);
}
}
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Two Firesounds?

Post by KnightsFan »

kinetosimpetus wrote:
KnightsFan wrote:combine the two .wavs into one
http://URL Shorteners are disallowed on Gametoast. Use direct links only./ykkn8qx
:funny2: You make me feel dumb. I'll try one.

Deviss: But then half the time it plays one and half the time it plays the other...
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Two Firesounds?

Post by Deviss »

KnightsFan wrote:Deviss: But then half the time it plays one and half the time it plays the other...
no first shoot 1 sound second shoot 2 sound third shoot 1 sound etc XD
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Two Firesounds?

Post by KnightsFan »

I have

Code: Select all

SoundProperties()
{
    Name("m24fire");
    Group("weapons");
    Inherit("weapon_template");
    SampleList()
    {
        Sample("m24", 0.5);
        Sample("m24bolt", 0.5);
    }
}
And it randomly plays one sound OR the other. What's wrong?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Two Firesounds?

Post by Deviss »

KnightsFan wrote:I have

Code: Select all

SoundProperties()
{
    Name("m24fire");
    Group("weapons");
    Inherit("weapon_template");
    SampleList()
    {
        Sample("m24", 0.5);
        Sample("m24bolt", 0.5);
    }
}
And it randomly plays one sound OR the other. What's wrong?
ouch i don't know :S for me work fine and for rifle i have 7 sounds XD
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Two Firesounds?

Post by AQT »

Yeah, that's how it works with that setup, randomly. What if, though, you change the 0.5s to 1.0s? If this doesn't work, a wav editor would be your best bet as kinetosimpetus suggested.
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Two Firesounds?

Post by KnightsFan »

I already tried with 1.0's a few days ago, same thing as 0.5's. Yeah, I'll just have to go spend the rest of my weekend finding out how to use wav editors.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Two Firesounds?

Post by Maveritchell »

It doesn't matter whether you put 1.0, 0.5, or 10.0 (although it really only makes sense if you make them total up to 1.0) - those represent the frequency of the sound, and if you're listing more than one, it will choose one or the other but not both at the same time. Like kinetosimpetus said, you need to combine your custom .wav sounds together.
Post Reply