This commit is contained in:
2022-09-13 05:10:25 +03:00
parent ed92306bd4
commit 62be0d356c
4 changed files with 9 additions and 5 deletions

View File

@ -242,13 +242,17 @@ public reliable client function WriteToChat(String Message, String HexColor)
if (GetKFPC() == None) return;
if (KFPC.MyGFxManager.PartyWidget != None && KFPC.MyGFxManager.PartyWidget.PartyChatWidget != None)
if (KFPC.MyGFxManager != None &&
KFPC.MyGFxManager.PartyWidget != None &&
KFPC.MyGFxManager.PartyWidget.PartyChatWidget != None)
{
KFPC.MyGFxManager.PartyWidget.PartyChatWidget.AddChatMessage(Message, HexColor);
}
HUD = KFGFxHudWrapper(KFPC.myHUD);
if (HUD != None && HUD.HUDMovie != None && HUD.HUDMovie.HudChatBox != None)
if (HUD != None &&
HUD.HUDMovie != None &&
HUD.HUDMovie.HudChatBox != None)
{
HUD.HUDMovie.HudChatBox.AddChatMessage(Message, HexColor);
}

View File

@ -23,7 +23,7 @@ public function UpdateGameSettings()
}
}
protected function DistributeMoneyAndXP(class<KFPawn_Monster> MonsterClass, const out array<DamageInfo> DamageHistory, Controller Killer)
protected function DistributeMoneyAndXP(class<KFPawn_Monster> MonsterClass, const out Array<DamageInfo> DamageHistory, Controller Killer)
{
`Log_Trace();