Dark[NSF]
Northwest Secessionalist Forces
Code:
simulated function OutOfAmmo()
{
if ( !Instigator.IsLocallyControlled() || HasAmmo() )
return;
// Auto switch bad!
//DoAutoSwitch();
}
simulated function Weapon WeaponChange( byte F, bool bSilent )
{
if ( InventoryGroup == F )
{
if ( !HasAmmo() )
{
Instigator.ClientMessage( ItemName$MessageNoAmmo );
}
else
return self;
}
else if ( Inventory == None )
return None;
else
return Inventory.WeaponChange(F,bSilent);
}
This fixed my problem, it also makes it so it doesn't auto change weapons when they run out of ammo.