From 25b11835854c344a54f0b0a977a3f1b8887be79b Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 8 Feb 2021 23:28:54 +0300 Subject: [PATCH] feat: improved compatibility with mutators that use basic perks to get information for example, FriendlyHUD - it displays perk icons correctly now. --- ServerExt/Classes/ExtPerkManager.uc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ServerExt/Classes/ExtPerkManager.uc b/ServerExt/Classes/ExtPerkManager.uc index 2969113..8b62849 100644 --- a/ServerExt/Classes/ExtPerkManager.uc +++ b/ServerExt/Classes/ExtPerkManager.uc @@ -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;