1
0
This commit is contained in:
2023-03-18 01:57:42 +03:00
parent 2942d046da
commit 688183c1f1
9 changed files with 102 additions and 8 deletions

View File

@ -1646,6 +1646,7 @@ function PerkRoulette_InventoryCustomDelegate()
local KFPerk Perk;
local int i;
local byte NewPerk;
local KFInventoryManager InventoryManager;
for (i = PerkRoulette_PlayersDelegateInventory.Length - 1 ; i >= 0 ; --i)
{
@ -1680,6 +1681,16 @@ function PerkRoulette_InventoryCustomDelegate()
AddDefaultInventory(KFPC_WS.Pawn);
PerkRoulette_PlayersDelegateInventory.Remove(i, 1);
// Force fill syringe
InventoryManager = KFInventoryManager(KFPC_WS.Pawn.InvManager);
if (InventoryManager.HealerWeapon != none)
{
InventoryManager.HealerWeapon.AmmoCount[0] = InventoryManager.HealerWeapon.MagazineCapacity[0];
}
KFPC_WS.ResetSyringe();
}
}

View File

@ -77,6 +77,8 @@ simulated protected function PrepareExplosionTemplate()
super(KFProjectile).PrepareExplosionTemplate();
ExplosionTemplate.bIgnoreInstigator = true;
OwnerWeapon = Weapon(Owner);
if (OwnerWeapon != none)
{