feat: improved compatibility with mutators that use basic perks to get information

for example, FriendlyHUD - it displays perk icons correctly now.
This commit is contained in:
GenZmeY 2021-02-08 23:28:54 +03:00
parent d542507036
commit 25b1183585

View File

@ -129,6 +129,7 @@ function ApplyPerk(Ext_PerkBase P)
{
PRIOwner.ECurrentPerk = P.Class;
PRIOwner.FCurrentPerk = P;
PRIOwner.CurrentPerkClass = P.BasePerk;
P.UpdatePRILevel();
}
@ -190,6 +191,7 @@ simulated function InitPerks()
if (CurrentPerk!=None)
{
PRIOwner.ECurrentPerk = CurrentPerk.Class;
PRIOwner.CurrentPerkClass = CurrentPerk.BasePerk;
CurrentPerk.UpdatePRILevel();
}
PRIOwner.RepKills = TotalKills;