Page 1 of 1

Ges

Posted: Thu Jan 21, 2010 3:25 pm
by Age
This *should* fix altfire loading sound not looping with AlAudio/FMod.

GESBioRifle.uc

Code: Select all

state AltFiring
{
      function Tick( float DeltaTime )
      {
            ChargeSize += DeltaTime;
            if ( (pawn(Owner).bAltFire==0))
                  GoToState('ShootLoad');
            Count += DeltaTime;
            if (Count > 1.0)
            {
                  Count = 0.0;
                  if ( (PlayerPawn(Owner) == None) && (FRand() < 0.3) )
                        GoToState('ShootLoad');
                  else if (!AmmoType.UseAmmo(1))
                        GoToState('ShootLoad');
            }
            if(Pawn(Owner).bAltFire == 0)
                  AmbientSound = None;
      }
      function EndState()
      {
            AmbientSound = None;
      }

Begin:
      ChargeSize = 0.0;
      Count = 0.0;
      AmbientSound = Misc1Sound;
      SoundVolume = SoundVolume*SoundDampening;
      PlayAnim('Charging',0.2,0.05);
      FinishAnim();
      GotoState('ShootLoad');
}
Sound volume may be wrong I don't know.

Re: Ges

Posted: Sun Jan 31, 2010 10:37 pm
by GcSkaarj
Yes, the looping sound is missing, perhaps in the new 227g will be fixed.



Re: Ges

Posted: Mon Feb 01, 2010 4:41 am
by Spike
>.>