parent
5a8b04c913
commit
60ba914cef
@ -146,6 +146,7 @@ function ApplyPerk(Ext_PerkBase P)
|
|||||||
|
|
||||||
ModifyHealth(HP.HealthMax);
|
ModifyHealth(HP.HealthMax);
|
||||||
ModifyArmor(HP.MaxArmor);
|
ModifyArmor(HP.MaxArmor);
|
||||||
|
CurrentPerk.UpdateAmmoStatus(HP.InvManager);
|
||||||
|
|
||||||
if (HP.Health > HP.HealthMax) HP.Health = HP.HealthMax;
|
if (HP.Health > HP.HealthMax) HP.Health = HP.HealthMax;
|
||||||
if (HP.Armor > HP.MaxArmor) HP.Armor = HP.MaxArmor;
|
if (HP.Armor > HP.MaxArmor) HP.Armor = HP.MaxArmor;
|
||||||
|
@ -1372,7 +1372,7 @@ final function UpdateAmmoStatus(InventoryManager Inv)
|
|||||||
|
|
||||||
foreach Inv.InventoryActors(class'KFWeapon',W)
|
foreach Inv.InventoryActors(class'KFWeapon',W)
|
||||||
{
|
{
|
||||||
if (IsWeaponOnPerk(W))
|
// if (IsWeaponOnPerk(W))
|
||||||
W.ReInitializeAmmoCounts(PerkManager);
|
W.ReInitializeAmmoCounts(PerkManager);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -606,17 +606,12 @@ function CustomXP(Controller Killer, Controller Killed)
|
|||||||
KFPC = KFPlayerController(DamagerKFPRI.Owner);
|
KFPC = KFPlayerController(DamagerKFPRI.Owner);
|
||||||
if (KFPC != none)
|
if (KFPC != none)
|
||||||
{
|
{
|
||||||
XP = 0;
|
j = CustomZedXPArray.Find('zedclass', KFM.Class);
|
||||||
for (j = 0; j < CustomZedXPArray.Length; j++)
|
if(j != -1)
|
||||||
{
|
|
||||||
if (KFM.Class == CustomZedXPArray[j].zedclass)
|
|
||||||
{
|
{
|
||||||
XP = CustomZedXPArray[j].XPValues[MyKFGI.GameDifficulty];
|
XP = CustomZedXPArray[j].XPValues[MyKFGI.GameDifficulty];
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
|
|
||||||
if (XP == 0)
|
|
||||||
{
|
{
|
||||||
XP = KFM.static.GetXPValue(MyKFGI.GameDifficulty);
|
XP = KFM.static.GetXPValue(MyKFGI.GameDifficulty);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user