KF2-Server-Extension/ServerExt/Classes/ExtWeap_Pistol_9mm.uc
inklesspen1scripter ac8435dc2a Some changes
9mm and MedPistol is perked for all now and used by Rack'em Up
Standart pistol has unlimited ammo without reloading
2020-06-21 22:06:43 +03:00

38 lines
712 B
Ucode

class ExtWeap_Pistol_9mm extends KFWeap_Pistol_9mm;
defaultproperties
{
SpareAmmoCapacity[0]=-1
InitialSpareMags[0]=0
bInfiniteSpareAmmo=True
DualClass=class'ExtWeap_Pistol_Dual9mm'
InstantHitDamageTypes(DEFAULT_FIREMODE)=class'ExtDT_Ballistic_9mm'
}
simulated static function bool AllowedForAllPerks()
{
return true;
}
simulated function ConsumeAmmo( byte FireModeNum )
{
}
simulated static event class<KFPerk> GetWeaponPerkClass( class<KFPerk> InstigatorPerkClass )
{
if(InstigatorPerkClass != None)
return InstigatorPerkClass;
return default.AssociatedPerkClasses[0];
}
simulated function KFPerk GetPerk()
{
if(KFPlayer != None)
return KFPlayer.GetPerk();
return super.GetPerk();
}