Merge pull request #40 from GenZmeY/v1137-bugsplat-fix
client-side "Access None" fixes
This commit is contained in:
commit
55567f1933
28
ServerExt/Classes/ExtHUD_ObjectiveConatiner.uc
Normal file
28
ServerExt/Classes/ExtHUD_ObjectiveConatiner.uc
Normal file
@ -0,0 +1,28 @@
|
||||
class ExtHUD_ObjectiveConatiner extends KFGFxHUD_ObjectiveConatiner;
|
||||
|
||||
simulated function SetActive(bool bActive)
|
||||
{
|
||||
if (bActive)
|
||||
{
|
||||
Super.SetActive(bActive);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetVisible(bActive);
|
||||
CurrentObjectiveInterface = none;
|
||||
|
||||
// Fix:
|
||||
// ScriptWarning: Accessed None
|
||||
// KFGFxHUD_ObjectiveConatiner Transient.ExtMoviePlayer_HUD_0:KFGFxHUD_ObjectiveConatiner_0
|
||||
// Function KFGame.KFGFxHUD_ObjectiveConatiner:SetActive:01D9
|
||||
if (GetObject("objectiveNumberMC") != None)
|
||||
{
|
||||
GetObject("objectiveNumberMC").SetVisible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DefaultProperties
|
||||
{
|
||||
|
||||
}
|
@ -93,6 +93,20 @@ final function ShowKillMessageX(PlayerReplicationInfo PRI1, PlayerReplicationInf
|
||||
}
|
||||
}
|
||||
|
||||
function UpdateObjectiveActive()
|
||||
{
|
||||
// Fix:
|
||||
// ScriptWarning: Accessed None 'KFGRI'
|
||||
// ExtMoviePlayer_HUD Transient.ExtMoviePlayer_HUD_0
|
||||
// Function KFGame.KFGFxMoviePlayer_HUD:UpdateObjectiveActive:00B7
|
||||
if (GetPC() == None || KFGameReplicationInfo(GetPC().WorldInfo.GRI) == None)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Super.UpdateObjectiveActive();
|
||||
}
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
WidgetBindings.Remove((WidgetName="SpectatorInfoWidget",WidgetClass=class'KFGFxHUD_SpectatorInfo'))
|
||||
@ -103,4 +117,6 @@ defaultproperties
|
||||
WidgetBindings.Add((WidgetName="PlayerBackpackWidget",WidgetClass=class'ExtHUD_PlayerBackpack'))
|
||||
WidgetBindings.Remove((WidgetName="WeaponSelectContainer",WidgetClass=class'KFGFxHUD_WeaponSelectWidget'))
|
||||
WidgetBindings.Add((WidgetName="WeaponSelectContainer",WidgetClass=class'ExtHUD_WeaponSelectWidget'))
|
||||
WidgetBindings.Remove((WidgetName="ObjectiveContainer",WidgetClass=class'KFGFxHUD_ObjectiveConatiner'))
|
||||
WidgetBindings.Add((WidgetName="ObjectiveContainer",WidgetClass=class'ExtHUD_ObjectiveConatiner'))
|
||||
}
|
@ -111,6 +111,22 @@ function OnMenuOpen(name WidgetPath, KFGFxObject_Menu Widget)
|
||||
PerksMenu.ActionScriptVoid("closeContainer");
|
||||
}
|
||||
|
||||
event OnClose()
|
||||
{
|
||||
// Fix:
|
||||
// ScriptWarning: Accessed None 'CurrentBackgroundMovie'
|
||||
// ExtMoviePlayer_Manager KF-BIOTICSLAB.TheWorld:PersistentLevel.ExtPlayerController_0.ExtMoviePlayer_Manager_0
|
||||
// Function KFGame.KFGFxMoviePlayer_Manager:OnClose:0039
|
||||
if (CurrentBackgroundMovie != None)
|
||||
{
|
||||
Super.OnClose();
|
||||
}
|
||||
else
|
||||
{
|
||||
CloseMenus();
|
||||
}
|
||||
}
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
InGamePartyWidgetClass=class'ExtWidget_PartyInGame'
|
||||
|
Loading…
Reference in New Issue
Block a user