38 lines
719 B
Ucode
38 lines
719 B
Ucode
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()
|
|
{
|
|
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();
|
|
} |