Merge branch 'v1103'
This commit is contained in:
commit
18d8768c00
7
ServerExt/Classes/DLCWeapDef_Mine_Reconstructor.uc
Normal file
7
ServerExt/Classes/DLCWeapDef_Mine_Reconstructor.uc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class DLCWeapDef_Mine_Reconstructor extends KFWeapDef_Mine_Reconstructor
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
DefaultProperties
|
||||||
|
{
|
||||||
|
SharedUnlockId=SCU_None
|
||||||
|
}
|
7
ServerExt/Classes/DLCWeapDef_Minigun.uc
Normal file
7
ServerExt/Classes/DLCWeapDef_Minigun.uc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class DLCWeapDef_Minigun extends KFWeapDef_Minigun
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
DefaultProperties
|
||||||
|
{
|
||||||
|
SharedUnlockId=SCU_None
|
||||||
|
}
|
@ -563,7 +563,7 @@ function bool CanNotBeGrabbed()
|
|||||||
{
|
{
|
||||||
return (CurrentPerk!=None ? !CurrentPerk.bCanBeGrabbed : false);
|
return (CurrentPerk!=None ? !CurrentPerk.bCanBeGrabbed : false);
|
||||||
}
|
}
|
||||||
simulated function ModifyMagSizeAndNumber( KFWeapon KFW, out byte MagazineCapacity, optional array< Class<KFPerk> > WeaponPerkClass, optional bool bSecondary=false, optional name WeaponClassname )
|
simulated function ModifyMagSizeAndNumber( KFWeapon KFW, out int MagazineCapacity, optional array< Class<KFPerk> > WeaponPerkClass, optional bool bSecondary=false, optional name WeaponClassname )
|
||||||
{
|
{
|
||||||
if( CurrentPerk!=None )
|
if( CurrentPerk!=None )
|
||||||
CurrentPerk.ModifyMagSizeAndNumber(KFW,MagazineCapacity,WeaponPerkClass,bSecondary,WeaponClassname);
|
CurrentPerk.ModifyMagSizeAndNumber(KFW,MagazineCapacity,WeaponPerkClass,bSecondary,WeaponClassname);
|
||||||
|
@ -1321,7 +1321,7 @@ function bool ModifyHealAmount( out float HealAmount )
|
|||||||
HealAmount*=Modifiers[9];
|
HealAmount*=Modifiers[9];
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
simulated function ModifyMagSizeAndNumber( KFWeapon KFW, out byte MagazineCapacity, optional array< Class<KFPerk> > WeaponPerkClass, optional bool bSecondary=false, optional name WeaponClassname )
|
simulated function ModifyMagSizeAndNumber( KFWeapon KFW, out int MagazineCapacity, optional array< Class<KFPerk> > WeaponPerkClass, optional bool bSecondary=false, optional name WeaponClassname )
|
||||||
{
|
{
|
||||||
if( MagazineCapacity>2 && (KFW==None ? WeaponPerkClass.Find(BasePerk)>=0 : IsWeaponOnPerk(KFW)) ) // Skip boomstick for this.
|
if( MagazineCapacity>2 && (KFW==None ? WeaponPerkClass.Find(BasePerk)>=0 : IsWeaponOnPerk(KFW)) ) // Skip boomstick for this.
|
||||||
MagazineCapacity = Min(MagazineCapacity*Modifiers[10],255);
|
MagazineCapacity = Min(MagazineCapacity*Modifiers[10],255);
|
||||||
|
@ -26,7 +26,7 @@ simulated function ModifyDamageGiven( out int InDamage, optional Actor DamageCau
|
|||||||
Super.ModifyDamageGiven(InDamage, DamageCauser, MyKFPM, DamageInstigator, DamageType, HitZoneIdx);
|
Super.ModifyDamageGiven(InDamage, DamageCauser, MyKFPM, DamageInstigator, DamageType, HitZoneIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
simulated function ModifyMagSizeAndNumber( KFWeapon KFW, out byte MagazineCapacity, optional array< Class<KFPerk> > WeaponPerkClass, optional bool bSecondary=false, optional name WeaponClassname )
|
simulated function ModifyMagSizeAndNumber( KFWeapon KFW, out int MagazineCapacity, optional array< Class<KFPerk> > WeaponPerkClass, optional bool bSecondary=false, optional name WeaponClassname )
|
||||||
{
|
{
|
||||||
if( MagazineCapacity>2 && (KFW==None ? WeaponPerkClass.Find(BasePerk)>=0 : IsWeaponOnPerk(KFW)) ) // Skip boomstick for this.
|
if( MagazineCapacity>2 && (KFW==None ? WeaponPerkClass.Find(BasePerk)>=0 : IsWeaponOnPerk(KFW)) ) // Skip boomstick for this.
|
||||||
MagazineCapacity = Min(MagazineCapacity*Modifiers[10], bSecondary ? 150 : 255);
|
MagazineCapacity = Min(MagazineCapacity*Modifiers[10], bSecondary ? 150 : 255);
|
||||||
|
@ -341,7 +341,9 @@ function EditTraiderItems()
|
|||||||
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_Rifle_MosinNagant"
|
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_Rifle_MosinNagant"
|
||||||
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_AssaultRifle_LazerCutter"
|
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_AssaultRifle_LazerCutter"
|
||||||
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_SMG_G18"
|
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_SMG_G18"
|
||||||
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_Pistol_DualG18")
|
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_Pistol_DualG18"
|
||||||
|
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_Mine_Reconstructor"
|
||||||
|
|| string(Trad.SaleItems[i].ClassName) ~= "KFWeap_Minigun")
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -380,6 +382,8 @@ function EditTraiderItems()
|
|||||||
AddCIToTrader("ServerExt.DLCWeapDef_LazerCutter");
|
AddCIToTrader("ServerExt.DLCWeapDef_LazerCutter");
|
||||||
AddCIToTrader("ServerExt.DLCWeapDef_Pistol_DualG18");
|
AddCIToTrader("ServerExt.DLCWeapDef_Pistol_DualG18");
|
||||||
AddCIToTrader("ServerExt.DLCWeapDef_Pistol_G18C");
|
AddCIToTrader("ServerExt.DLCWeapDef_Pistol_G18C");
|
||||||
|
AddCIToTrader("ServerExt.DLCWeapDef_Mine_Reconstructor");
|
||||||
|
AddCIToTrader("ServerExt.DLCWeapDef_Minigun");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add custom items from WebAdmin
|
// Add custom items from WebAdmin
|
||||||
|
Loading…
Reference in New Issue
Block a user