//=============================================================================
// Assault Rifle
//=============================================================================
class DefenceAssaultRifle extends AssaultRifle;

var int InvasionWave;

simulated function BringUp(optional Weapon PrevWeapon){
  local Invasion InvasionObject;
  InvasionObject=Invasion(Level.Game);
  if(InvasionObject!=None)
    if(InvasionObject.WaveNum!=InvasionWave){
      InvasionWave=InvasionObject.WaveNum;
      if(AmmoCharge[1]<6)
        AmmoCharge[1]=6;
    }
  super.BringUp(PrevWeapon);
}

defaultproperties
{
     FireModeClass(0)=Class'GSSAL.DefenceAssaultFire'
     FireModeClass(1)=Class'GSSAL.DefenceGrenadeFire'
     Description="The defence rifle."
     Priority=30
     ItemName="Defence Rifle"
}
