Skip to content

Commit

Permalink
fix 9mm/HRG93R filter
Browse files Browse the repository at this point in the history
  • Loading branch information
GenZmeY committed Oct 21, 2023
1 parent 561545d commit ac6e0a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CTI/Classes/CTI_GFxTraderContainer_Store.uc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ function bool IsItemFiltered(STraderItem Item, optional bool bDebug)
if (Item.WeaponDef.default.PlatformRestriction != PR_All && class'KFUnlockManager'.static.IsPlatformRestricted(Item.WeaponDef.default.PlatformRestriction))
return true;

if (Has9mmGun())
{
if ((Item.ClassName == 'KFWeap_HRG_93r' || Item.ClassName == 'KFWeap_HRG_93r_Dual'))
return true;
}
else
{
if ((Item.ClassName == 'KFWeap_Pistol_9mm' || Item.ClassName == 'KFWeap_Pistol_Dual9mm'))
return true;
}

return false;
}

Expand Down

0 comments on commit ac6e0a8

Please sign in to comment.