remove useles code
This commit is contained in:
parent
73b4522d2c
commit
279c246fc5
@ -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'))
|
||||
}
|
@ -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'))
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
}
|
@ -30,7 +30,7 @@ function InitMutator(string Options, out string ErrorMessage)
|
||||
return;
|
||||
}
|
||||
|
||||
MaxPlayers = Clamp(MyKFGI.GetIntOption(Options, "MaxPlayers", MaxPlayers), 6, 128);
|
||||
MaxPlayers = Clamp(MyKFGI.GetIntOption(Options, "MaxPlayers", MaxPlayers), 6, 256);
|
||||
MaxPlayersAllowed = MaxPlayers;
|
||||
MyKFGI.MaxPlayers = MaxPlayers;
|
||||
MyKFGI.MaxPlayersAllowed = MaxPlayersAllowed;
|
||||
@ -118,7 +118,6 @@ function Initialize()
|
||||
|
||||
InitConfig();
|
||||
|
||||
MyKFGI.KFGFxManagerClass = class'MskGsGFxMoviePlayer_Manager';
|
||||
MyKFGI.MyKFGRI.VoteCollectorClass = class'MskGsVoteCollector';
|
||||
MyKFGI.MyKFGRI.VoteCollector = new(MyKFGI.MyKFGRI) MyKFGI.MyKFGRI.VoteCollectorClass;
|
||||
|
||||
@ -308,7 +307,7 @@ function NotifyLogin(Controller C)
|
||||
function NotifyLogout(Controller C)
|
||||
{
|
||||
local MskGsVoteCollector VoteCollector;
|
||||
local int i;
|
||||
local MskGsRepInfo RepInfo;
|
||||
|
||||
if (C == None) return;
|
||||
|
||||
@ -347,12 +346,12 @@ function NotifyLogout(Controller C)
|
||||
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.Remove(i, 1);
|
||||
RepClients.RemoveItem(RepInfo);
|
||||
RepInfo.Destroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user