KF2-Server-Extension/ServerExt/Classes/ExtWeap_Pistol_9mm.uc

38 lines
719 B
Ucode
Raw Normal View History

class ExtWeap_Pistol_9mm extends KFWeap_Pistol_9mm;
defaultproperties
{
SpareAmmoCapacity[0]=-1
InitialSpareMags[0]=0
bInfiniteSpareAmmo=True
// DualClass=class'ServerExt.ExtWeap_Pistol_MedicS'
InstantHitDamageTypes(DEFAULT_FIREMODE)=class'ExtDT_Ballistic_9mm'
}
simulated static function bool AllowedForAllPerks()
{
2020-11-28 19:53:57 +00:00
return true;
}
2020-11-28 20:04:55 +00:00
simulated function ConsumeAmmo(byte FireModeNum)
{
}
2020-11-28 20:04:55 +00:00
simulated static event class<KFPerk> GetWeaponPerkClass(class<KFPerk> InstigatorPerkClass)
{
2020-11-28 20:12:58 +00:00
if (InstigatorPerkClass != None)
return InstigatorPerkClass;
return default.AssociatedPerkClasses[0];
}
simulated function KFPerk GetPerk()
{
2020-11-28 20:12:58 +00:00
if (KFPlayer != None)
return KFPlayer.GetPerk();
return super.GetPerk();
}