Announcement

Collapse
No announcement yet.

weapon sounds

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    weapon sounds

    how do i play other weapon's sounds in other weapons.

    i'm trying to play the shock rifle's sound in the minigun but the minigun fire uses:

    firingsound=sound'whatevertheheckthe.soundfileis';

    and the shockrifle fire uses

    firesound=soundgroup'whatevertheheckit.is'

    how do i interchange these i've tried just using the other directory and it doesn't work.?

    #2
    Re: weapon sounds

    For all I know, the part after the '=' is interchangeable.

    Comment


      #3
      than why don't they work when i use the other sound file? I mean it's pretty cool that it's a silent weapon but that's not what i want. :P

      Comment


        #4
        Have you tried:

        Code:
        FiringSound=SoundGroup'WeaponSounds.ShockRifle.ShockRifleFire'
        From what I can see, the shockrifle fire uses a procedural sound within a soundgroup whilst the minigun uses a regular sound file (not in a group).

        Comment


          #5
          tried it have i, worked it has not.

          Comment


            #6
            Try:
            Code:
                firingsound=WeaponSounds.ShockRifle.WhateverItsNamed
            None of that 'Sound' or 'SoundGroup' typecasting.

            Comment


              #7
              It sounds weird, but maybe the sound effect is called natively for the minigun. It works ok for a weapon based off of the Assault Rifle.

              There are a set of functions in minigunfire which I'm not sure what they are for.

              function PlayPreFire() {}
              function PlayStartHold() {}
              function PlayFiring() {}
              function PlayFireEnd() {}
              function StartFiring();
              function StopFiring();

              Comment


                #8
                Originally posted by Xyx
                Try:
                Code:
                    firingsound=WeaponSounds.ShockRifle.WhateverItsNamed
                None of that 'Sound' or 'SoundGroup' typecasting.
                no worky

                should i be playing the winding sound? i wouldn't think that would matter tho.

                Comment


                  #9
                  i just found this line in some code, went back and found it in the shock rifle.

                  Code:
                  Instigator.MakeNoise(1.0);
                  maybe that has something to do with it, the minigun as far as i know doesn't use that. any thoughts?

                  Comment


                    #10
                    I think MakeNoise just alerts nearby bots. They don't actually "hear" the sounds players hear, so they need to be "told" when something goes boom.

                    Comment

                    Working...
                    X