KF2-MSK-GS/MskGs/Classes/MskGsGFxTraderContainer_Store.uc

38 lines
1.2 KiB
Ucode
Raw Normal View History

2021-02-20 10:30:45 +00:00
class MskGsGFxTraderContainer_Store extends KFGFxTraderContainer_Store;
2021-12-07 01:26:58 +00:00
/*
2021-02-20 10:30:45 +00:00
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);
}
2021-12-07 01:26:58 +00:00
*/
2021-02-20 10:30:45 +00:00
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;
2021-04-14 01:28:23 +00:00
//if (!GroupMember && Item.WeaponDef.default.SharedUnlockId != SCU_None && !class'KFUnlockManager'.static.IsSharedContentUnlocked(Item.WeaponDef.default.SharedUnlockId))
// return true;
2021-02-20 10:30:45 +00:00
if (Item.WeaponDef.default.PlatformRestriction != PR_All && class'KFUnlockManager'.static.IsPlatformRestricted(Item.WeaponDef.default.PlatformRestriction))
return true;
return false;
}
defaultproperties
{
2021-12-07 01:26:58 +00:00
2021-02-20 10:30:45 +00:00
}