remove useles code

This commit is contained in:
GenZmeY 2022-07-05 16:14:50 +03:00
parent 73b4522d2c
commit 279c246fc5
4 changed files with 7 additions and 61 deletions

View File

@ -1,8 +0,0 @@
class MskGsGFxMenu_Trader extends KFGFxMenu_Trader
dependsOn(MskGsGFxTraderContainer_Store);
defaultproperties
{
SubWidgetBindings.Remove((WidgetName="shopContainer",WidgetClass=class'KFGFxTraderContainer_Store'))
SubWidgetBindings.Add((WidgetName="shopContainer",WidgetClass=class'MskGsGFxTraderContainer_Store'))
}

View File

@ -1,8 +0,0 @@
class MskGsGFxMoviePlayer_Manager extends KFGFxMoviePlayer_Manager
dependsOn(MskGsGFxMenu_Trader);
defaultproperties
{
WidgetBindings.Remove((WidgetName="traderMenu",WidgetClass=class'KFGFxMenu_Trader'))
WidgetBindings.Add((WidgetName="traderMenu",WidgetClass=class'MskGsGFxMenu_Trader'))
}

View File

@ -1,37 +0,0 @@
class MskGsGFxTraderContainer_Store extends KFGFxTraderContainer_Store;
/*
var bool GroupMember;
function Initialize(KFGFxObject_Menu NewParentMenu)
{
local OnlineSubsystemSteamworks OnlineSub;
local UniqueNetId GroupID;
super.Initialize(NewParentMenu);
OnlineSub = OnlineSubsystemSteamworks(class'GameEngine'.static.GetOnlineSubsystem());
class'OnlineSubsystem'.Static.StringToUniqueNetId("0x017000000223386E", GroupID);
GroupMember = OnlineSub.CheckPlayerGroup(GroupID);
}
*/
function bool IsItemFiltered(STraderItem Item, optional bool bDebug)
{
if (KFPC.GetPurchaseHelper().IsInOwnedItemList(Item.ClassName))
return true;
if (KFPC.GetPurchaseHelper().IsInOwnedItemList(Item.DualClassName))
return true;
if (!KFPC.GetPurchaseHelper().IsSellable(Item))
return true;
//if (!GroupMember && Item.WeaponDef.default.SharedUnlockId != SCU_None && !class'KFUnlockManager'.static.IsSharedContentUnlocked(Item.WeaponDef.default.SharedUnlockId))
// return true;
if (Item.WeaponDef.default.PlatformRestriction != PR_All && class'KFUnlockManager'.static.IsPlatformRestricted(Item.WeaponDef.default.PlatformRestriction))
return true;
return false;
}
defaultproperties
{
}

View File

@ -30,7 +30,7 @@ function InitMutator(string Options, out string ErrorMessage)
return; return;
} }
MaxPlayers = Clamp(MyKFGI.GetIntOption(Options, "MaxPlayers", MaxPlayers), 6, 128); MaxPlayers = Clamp(MyKFGI.GetIntOption(Options, "MaxPlayers", MaxPlayers), 6, 256);
MaxPlayersAllowed = MaxPlayers; MaxPlayersAllowed = MaxPlayers;
MyKFGI.MaxPlayers = MaxPlayers; MyKFGI.MaxPlayers = MaxPlayers;
MyKFGI.MaxPlayersAllowed = MaxPlayersAllowed; MyKFGI.MaxPlayersAllowed = MaxPlayersAllowed;
@ -118,7 +118,6 @@ function Initialize()
InitConfig(); InitConfig();
MyKFGI.KFGFxManagerClass = class'MskGsGFxMoviePlayer_Manager';
MyKFGI.MyKFGRI.VoteCollectorClass = class'MskGsVoteCollector'; MyKFGI.MyKFGRI.VoteCollectorClass = class'MskGsVoteCollector';
MyKFGI.MyKFGRI.VoteCollector = new(MyKFGI.MyKFGRI) MyKFGI.MyKFGRI.VoteCollectorClass; MyKFGI.MyKFGRI.VoteCollector = new(MyKFGI.MyKFGRI) MyKFGI.MyKFGRI.VoteCollectorClass;
@ -308,7 +307,7 @@ function NotifyLogin(Controller C)
function NotifyLogout(Controller C) function NotifyLogout(Controller C)
{ {
local MskGsVoteCollector VoteCollector; local MskGsVoteCollector VoteCollector;
local int i; local MskGsRepInfo RepInfo;
if (C == None) return; if (C == None) return;
@ -347,16 +346,16 @@ function NotifyLogout(Controller C)
MyKFGI.UpdateGameSettings(); MyKFGI.UpdateGameSettings();
} }
for (i = RepClients.Length - 1; i >= 0; i--) foreach RepClients(RepInfo)
{ {
if (RepClients[i].C == C) if (RepInfo.C == C)
{ {
RepClients[i].Destroy(); RepClients.RemoveItem(RepInfo);
RepClients.Remove(i, 1); RepInfo.Destroy();
} }
} }
super.NotifyLogout(C); super.NotifyLogout(C);
} }
defaultproperties defaultproperties