{
    menuDef
    {
        name                        "cac_weapon_proficiency_secondary_sniper"
        fullscreen                  1
        rect                        0 0 640 480 0 0
        focuscolor                  1 1 1 1
        soundLoop                   "music_mainmenu_mp"
        onOpen
        {
            setLocalVarString ui_selected_ref ("specialty_null");
            setLocalVarInt ui_buttonNavGroupOffset 0;
            setLocalVarInt ui_buttonNavGroupCurrent 0;
            setLocalVarString ui_buttonNavGroupName "invalid";
            setLocalVarBool ui_swfSelectionButtonVis 0;
            setLocalVarBool ui_swfSelectionBarVis 0;
            setLocalVarBool ui_swfSelectionDisabled 0;
            setLocalVarBool ui_swfPopupSelectionButtonVis 0;
            setLocalVarBool ui_swfPopupSelectionBarVis 0;
            setLocalVarBool ui_swfPopupSelectionDisabled 0;
            setLocalVarString ui_swfPopupContext "invalid";
            focusfirst;
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_null")
            {
                setFocus WEAPON_PROFICIENCY_LIST_0;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_marksman")
            {
                setFocus WEAPON_PROFICIENCY_LIST_1;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bulletpenetration")
            {
                setFocus WEAPON_PROFICIENCY_LIST_2;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling")
            {
                setFocus WEAPON_PROFICIENCY_LIST_3;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_sharp_focus")
            {
                setFocus WEAPON_PROFICIENCY_LIST_4;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_lightweight")
            {
                setFocus WEAPON_PROFICIENCY_LIST_5;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_reducedsway")
            {
                setFocus WEAPON_PROFICIENCY_LIST_6;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setFocus WEAPON_PROFICIENCY_LIST_7;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setFocus WEAPON_PROFICIENCY_LIST_8;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setFocus WEAPON_PROFICIENCY_LIST_9;
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setFocus WEAPON_PROFICIENCY_LIST_10;
            }
        }
        onESC
        {
            close self;
        }
        onFocusDueToClose
        {
            setLocalVarString ui_hint_text "";
            focusfirst;
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_null")
            {
                setLocalVarString ui_selected_ref ("specialty_null");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_marksman")
            {
                setLocalVarString ui_selected_ref ("specialty_marksman");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bulletpenetration")
            {
                setLocalVarString ui_selected_ref ("specialty_bulletpenetration");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling")
            {
                setLocalVarString ui_selected_ref ("specialty_bling");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_sharp_focus")
            {
                setLocalVarString ui_selected_ref ("specialty_sharp_focus");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_lightweight")
            {
                setLocalVarString ui_selected_ref ("specialty_lightweight");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_reducedsway")
            {
                setLocalVarString ui_selected_ref ("specialty_reducedsway");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "")
            {
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
        }
        itemDef
        {
            rect                        -426.667 -240 853.333 480 2 2
            style                       3
            decoration                  
            visible                     when((dvarbool(ui_multiplayer) || (dvarstring(gameMode) == "so" && !menuistopmost("main_specops"))));
            textscale                   0.55
            background                  "background_image_blur_less"
        }
        itemDef
        {
            rect                        -426.667 -240 853.333 480 2 2
            style                       3
            decoration                  
            visible                     when(!(dvarbool(ui_multiplayer) || (dvarstring(gameMode) == "so" && !menuistopmost("main_specops"))));
            textscale                   0.55
            background                  "background_image"
        }
        itemDef
        {
            rect                        0 0 1708 480 0 0
            style                       3
            decoration                  
            visible                     1
            textscale                   0.55
            forecolor                   0.35 0.35 0.35 1
            background                  "mw2_main_cloud_overlay"
            exp rect x                  (0 - 107) - ((float(milliseconds() % 60000) / 60000) * (854));
        }
        itemDef
        {
            rect                        0 0 -1708 -480 0 0
            style                       3
            decoration                  
            visible                     1
            textscale                   0.55
            forecolor                   0.35 0.35 0.35 1
            background                  "mw2_main_cloud_overlay"
            exp rect x                  (- 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854));
        }
        itemDef
        {
            rect                        237.5 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   0 0 0 0.4
            background                  "white"
            exp rect w                  localvarbool("ui_shelfEnabled") * select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 219.5, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5));
        }
        itemDef
        {
            rect                        237.5 -236 13 680 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   1 1 1 0.75
            background                  "navbar_edge"
            exp rect x                  ((0 - 64) + 301.5) + (localvarbool("ui_shelfEnabled") * (select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 219.5, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5))));
            exp forecolor r             0.596078;
            exp forecolor g             0.654902;
            exp forecolor b             0.603922;
        }
        itemDef
        {
            rect                        237.5 -236 13 680 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   1 1 1 0.75
            background                  "navbar_edge"
            exp rect x                  (0 - 64) + 301.5;
            exp forecolor r             0.596078;
            exp forecolor g             0.654902;
            exp forecolor b             0.603922;
            exp forecolor a             localvarbool("ui_shelfEnabled") * (select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 0.75), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0.75, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 0.75)));
        }
        itemDef
        {
            rect                        -64 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "dest_alpha_one"
        }
        itemDef
        {
            rect                        237.5 -36 640 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "dest_alpha_zero"
        }
        itemDef
        {
            rect                        -426.667 -240 853.333 480 2 2
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "background_image_blur_less_dest_alpha_masked"
        }
        itemDef
        {
            rect                        0 0 1708 480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "mw2_main_cloud_overlay_write_dest_alpha"
            exp rect x                  (0 - 107) - ((float(milliseconds() % 60000) / 60000) * (854));
        }
        itemDef
        {
            rect                        0 0 1708 480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   0.35 0.35 0.35 1
            background                  "mw2_main_cloud_overlay_dest_alpha_masked"
            exp rect x                  (0 - 107) - ((float(milliseconds() % 60000) / 60000) * (854));
        }
        itemDef
        {
            rect                        -64 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "dest_alpha_one"
        }
        itemDef
        {
            rect                        0 0 -1708 -480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "mw2_main_cloud_overlay_write_dest_alpha"
            exp rect x                  (- 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854));
        }
        itemDef
        {
            rect                        0 0 -1708 -480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   0.35 0.35 0.35 1
            background                  "mw2_main_cloud_overlay_dest_alpha_masked"
            exp rect x                  (- 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854));
        }
        itemDef
        {
            rect                        -64 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0 0 0 0.4
            background                  "white"
        }
        itemDef
        {
            rect                        -64 30 301.5 5.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "navbar_tick"
        }
        itemDef
        {
            rect                        -64 3 276.667 24.233 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   14
            textscale                   0.5
            textstyle                   9
            textfont                    9
            exp text                    locstring("@MENU_PROFICIENCY_CAPS");
            exp forecolor a             select((getTextWidth(locstring("@MENU_PROFICIENCY_CAPS"), 9, 0.5) <= 200), 1, 0);
        }
        itemDef
        {
            rect                        -64 3 276.667 24.233 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   14
            textscale                   0.4
            textstyle                   9
            textfont                    9
            exp text                    locstring("@MENU_PROFICIENCY_CAPS");
            exp forecolor a             select(((getTextWidth(locstring("@MENU_PROFICIENCY_CAPS"), 9, 0.5) > 200) && (getTextWidth(locstring("@MENU_PROFICIENCY_CAPS"), 9, 0.4) <= 200)), 1, 0);
        }
        itemDef
        {
            rect                        -64 1 276.667 24.233 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   14
            textscale                   0.3
            textstyle                   9
            textfont                    9
            exp text                    locstring("@MENU_PROFICIENCY_CAPS");
            exp forecolor a             select((getTextWidth(locstring("@MENU_PROFICIENCY_CAPS"), 9, 0.4) > 200), 1, 0);
        }
        itemDef
        {
            text                        "@MPUI_ACCURACY"
            rect                        381 237.166 108.667 18.033 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            text                        "@MPUI_DAMAGE"
            rect                        381 257.166 108.667 18.2 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            text                        "@MPUI_RANGE"
            rect                        381 277.166 108.667 18.2 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            text                        "@MPUI_FIRE_RATE"
            rect                        381 297.166 108.667 18.2 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            rect                        334 241.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 14)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 14)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)))));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 14)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 14))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 14)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 14))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)))));
        }
        itemDef
        {
            rect                        261 252.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 252.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 252.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            text                        "@MPUI_MOBILITY"
            rect                        381 317.166 108.667 18.033 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            rect                        334 261.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 15)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 15)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)))));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 15)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 15))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 15)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 15))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)))));
        }
        itemDef
        {
            rect                        261 272.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 272.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 272.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        334 281.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 16)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 16)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)))));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 16)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 16))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 16)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 16))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)))));
        }
        itemDef
        {
            rect                        261 292.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 292.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 292.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        334 301.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 17)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 17)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)))));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 17)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 17))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 17)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 17))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)))));
        }
        itemDef
        {
            rect                        261 312.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 312.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 312.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        334 321.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 18)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 18)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)))));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 18)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 18))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 18)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 18))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)))));
        }
        itemDef
        {
            rect                        261 332.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 332.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 332.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        255.9 207.2 186.667 44.4 1 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   5
            textscale                   0.383333
            textstyle                   9
            textfont                    9
            exp text                    "@MENU_STATS";
            exp rect x                  (0) + (((261) + (0 - 5.1))) + (0);
        }
        itemDef
        {
            text                        "@MPUI_NEXT_UNLOCK"
            rect                        223.667 341.633 214.733 18.2 1 1
            style                       1
            decoration                  
            visible                     when(((0 && 1)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            forecolor                   0.839 0.839 0.839 1
            exp rect x                  (0) + ((261 + (0 - 37.333))) + (0);
        }
        itemDef
        {
            rect                        272.667 341.633 377.1 18.2 1 1
            style                       1
            decoration                  
            visible                     when(((0 && 1)));
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_CURRENTLY_EQUIPPED_WEAPON";
            exp rect x                  (0) + ((261)) + (11.667);
        }
        itemDef
        {
            rect                        261 346.133 9.667 9.667 1 1
            style                       3
            decoration                  
            visible                     when(((0 && 1)));
            textscale                   0.55
            background                  "white"
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        329.5 361.733 36.267 36.267 1 1
            style                       3
            decoration                  
            visible                     when(((0 && 1)));
            textscale                   0.55
            exp material                "";
            exp rect x                  (0) + ((261 + 68.5)) + (0);
        }
        itemDef
        {
            rect                        261 317.366 173.333 48 1 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((("CAC_POPOUT_DESC2_VIS" && 0)));
            textalign                   5
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_DESC2";
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        267.667 242.166 144 72 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_IMG2_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_IMG2";
            exp rect x                  (0) + ((261 + 6.667)) + (1 * 36) + 8;
            exp rect w                  144 - (1 * 72);
            exp forecolor r             "CAC_POPOUT_IMG2_A_EXP";
            exp forecolor g             "CAC_POPOUT_IMG2_A_EXP";
            exp forecolor b             "CAC_POPOUT_IMG2_A_EXP";
        }
        itemDef
        {
            rect                        254.333 207 186.667 44.4 1 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when((("CAC_POPOUT_TITLE2_VIS" && (0 || 0))));
            textalign                   5
            textscale                   0.383333
            textstyle                   9
            textfont                    9
            exp text                    "CAC_POPOUT_TITLE2";
            exp rect x                  (0) + ((261 + (0 - 6.667))) + (0);
        }
        itemDef
        {
            rect                        266.033 236 42.667 42.667 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG1_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_IMG1";
            exp rect x                  (0) + ((261 + 5.033)) + (0);
        }
        itemDef
        {
            rect                        255.367 280.666 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG1_DESC_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_IMG1_DESC_TEXT";
            exp rect x                  (0) + ((261 + (0 - 5.633))) + (0);
        }
        itemDef
        {
            rect                        326.033 236 42.667 42.667 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG2_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_IMG2";
            exp rect x                  (0) + ((261 + 65.033)) + (0);
        }
        itemDef
        {
            rect                        315.367 280.666 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG2_DESC_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_IMG2_DESC_TEXT";
            exp rect x                  (0) + ((261 + 54.367)) + (0);
        }
        itemDef
        {
            rect                        386.033 236 42.667 42.667 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG3_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_IMG3";
            exp rect x                  (0) + ((261 + 125.033)) + (0);
        }
        itemDef
        {
            rect                        375.367 280.666 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG3_DESC_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_IMG3_DESC_TEXT";
            exp rect x                  (0) + ((261 + 114.367)) + (0);
        }
        itemDef
        {
            rect                        245.667 246.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((0 && "CAC_POPOUT_T_ARROW1_VIS")));
            textscale                   0.55
            background                  "chain_arrow"
            exp rect x                  (0) + ((261 + (0 - 15.333))) + (0);
        }
        itemDef
        {
            rect                        305.667 246.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((0 && "CAC_POPOUT_T_ARROW2_VIS")));
            textscale                   0.55
            background                  "chain_arrow"
            exp rect x                  (0) + ((261 + 44.667)) + (0);
        }
        itemDef
        {
            rect                        365.667 246.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((0 && "CAC_POPOUT_T_ARROW3_VIS")));
            textscale                   0.55
            background                  "chain_arrow"
            exp rect x                  (0) + ((261 + 104.667)) + (0);
        }
        itemDef
        {
            rect                        315.667 364 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_UNLOCKS_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_UNLOCKS_TEXT";
            exp rect x                  (0) + ((261 + 54.667)) + (0);
        }
        itemDef
        {
            rect                        335 342.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_UNLOCKS_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_UNLOCKS_IMG";
            exp rect x                  (0) + ((261 + 74)) + (0);
        }
        itemDef
        {
            rect                        261 145.033 173.333 48 1 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when(1);
            textalign                   5
            textscale                   0.340278
            textfont                    3
            exp text                    localvarstring("ui_selected_buff_desc");
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        267.667 69.833 144 72 1 1
            style                       3
            decoration                  
            visible                     when((localvarstring("ui_selected_ref") != "specialty_null" || !isitemunlocked(localvarstring("ui_selected_ref"))));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_ref"), 3);
            exp rect x                  (0) + ((261 + 6.667)) + (1 * 36) + 8;
            exp rect w                  144 - (1 * 72);
            exp forecolor r             1;
            exp forecolor g             1;
            exp forecolor b             1;
        }
        itemDef
        {
            rect                        254.333 34.667 186.667 44.4 1 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   5
            textscale                   0.383333
            textstyle                   9
            textfont                    9
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_ref"), 2);
            exp rect x                  (0) + ((261 + (0 - 6.667))) + (0);
        }
        itemDef
        {
            rect                        261 76.366 173.333 48 1 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when(("CAC_POPOUT_DESC3_VIS"));
            textalign                   5
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_DESC3";
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        247.667 203.166 200 1.333 1 1
            style                       3
            decoration                  
            visible                     when(((1 || 0 || 0)));
            textscale                   0.55
            forecolor                   1 1 1 0.211
            background                  "linedoublesided"
            exp rect x                  (0) + ((261 + (0 - 13.333))) + (0);
        }
        itemDef
        {
            rect                        -253.667 191.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutEquipment"), 3);
            exp rect x                  (0) + ((((0 - 264) + 10.333))) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "equipment") || (localvarstring("ui_cac_details_selection") == "special_equipment") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -134 191.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutOffhandSecondary"), 3);
            exp rect x                  (0) + ((((0 - 264) + 10.333) + 119.667)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "equipment") || (localvarstring("ui_cac_details_selection") == "special_equipment") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -226.334 190.367 292.667 18.633 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutEquipment"), 2);
            exp rect x                  (0) + (((0 - 264) + 10.333)) + (27.333);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "equipment") || (localvarstring("ui_cac_details_selection") == "special_equipment") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -111.334 190.367 319.967 18.633 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutOffhandSecondary"), 2);
            exp rect x                  (0) + (((0 - 264) + 10.333)) + (142.333);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "equipment") || (localvarstring("ui_cac_details_selection") == "special_equipment") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -200 50.033 200 53.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutPrimaryCamo"), 4);
            exp rect x                  (0) + ((((0 - 264)) + 64)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -60 36.367 60 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + ((((0 - 264)) + 6)) + (198);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -258 36.367 133.333 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient_2"
            exp rect x                  (0) + ((((0 - 264)) + 6)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -258.667 35.7 259.333 11.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + ((((0 - 264)) + 6)) + ((0 - 0.667));
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -258 36.367 258 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((((0 - 264)) + 6))) + (0);
            exp rect w                  258 * ((0.01 + 0.99 * ((getplayerdata("weaponXP", localvarstring("loadoutPrimary")) - tablelookup("mp/weaponRankTable.csv", 4, getplayerdata("weaponRank", localvarstring("loadoutPrimary")), 1)) / tablelookup("mp/weaponRankTable.csv", 4, getplayerdata("weaponRank", localvarstring("loadoutPrimary")), 2))));
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -258 36.367 258 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_custom"
            exp rect x                  (0) + (((((0 - 264)) + 6))) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -139.333 35.7 140 70 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                select(localvarstring("loadoutPrimary") != "none", tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 6), tablelookup("mp/statsTable.csv", 4, "throwingKnife", 6));
            exp rect x                  (0) + ((((0 - 264)) + 124.667)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -257 36.567 130 11.067 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.2
            textfont                    9
            exp text                    locstring("@MPUI_WEAPON_LVL") + " " + tablelookup("mp/weaponRankTable.csv", 4, getplayerdata("weaponRank", localvarstring("loadoutPrimary")), 5);
            exp rect x                  (0) + (((0 - 264))) + (7);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -131 36.567 130 11.067 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   10
            textscale                   0.2
            textfont                    9
            forecolor                   0.706 0.706 0.706 1
            exp text                    "";
            exp rect x                  (0) + (((0 - 264))) + (133);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -260 50.033 26.667 26.667 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 6);
            exp rect x                  (0) + ((((0 - 264)) + 4)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -230 50.033 26.667 26.667 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 6);
            exp rect x                  (0) + ((((0 - 264)) + 34)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -260 76.7 26.667 26.667 3 1
            style                       3
            decoration                  
            visible                     when((localvarstring("loadoutPrimaryBuff") != "specialty_null" || !isitemunlocked(localvarstring("loadoutPrimaryBuff"))));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPrimaryBuff"), 3);
            exp rect x                  (0) + ((((0 - 264)) + 4)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -238 69.033 42.667 42.667 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/reticleTable.csv", 1, localvarstring("loadoutPrimaryReticle"), 4);
            exp rect x                  (0) + ((((0 - 264)) + 26)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -315 84.733 310.667 18.633 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   10
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 3);
            exp rect x                  (0) + (((0 - 264))) + ((0 - 51));
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutPrimary") != "throwingknife") * (localvarstring("loadoutPrimary") != "none"));
        }
        itemDef
        {
            rect                        -200 126.366 200 53.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutSecondaryCamo"), 4);
            exp rect x                  (0) + ((((0 - 264)) + 64)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -60 112.7 60 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + ((((0 - 264)) + 6)) + (198);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -258 112.7 133.333 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient_2"
            exp rect x                  (0) + ((((0 - 264)) + 6)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -258.667 112.033 259.333 11.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + ((((0 - 264)) + 6)) + ((0 - 0.667));
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -258 112.7 258 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((((0 - 264)) + 6))) + (0);
            exp rect w                  258 * ((0.01 + 0.99 * ((getplayerdata("weaponXP", localvarstring("loadoutSecondary")) - tablelookup("mp/weaponRankTable.csv", 4, getplayerdata("weaponRank", localvarstring("loadoutSecondary")), 1)) / tablelookup("mp/weaponRankTable.csv", 4, getplayerdata("weaponRank", localvarstring("loadoutSecondary")), 2))));
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -258 112.7 258 10 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_custom"
            exp rect x                  (0) + (((((0 - 264)) + 6))) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -139.333 112.366 140 70 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                select(localvarstring("loadoutSecondary") != "none", tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 6), "white");
            exp rect x                  (0) + ((((0 - 264)) + 124.667)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -257 112.366 130 11.067 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.2
            textfont                    9
            exp text                    locstring("@MPUI_WEAPON_LVL") + " " + tablelookup("mp/weaponRankTable.csv", 4, getplayerdata("weaponRank", localvarstring("loadoutSecondary")), 5);
            exp rect x                  (0) + (((0 - 264))) + (7);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -136.667 112.366 135.667 11.067 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   10
            textscale                   0.2
            textfont                    9
            forecolor                   0.706 0.706 0.706 1
            exp text                    "";
            exp rect x                  (0) + (((0 - 264))) + (127.333);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -260 126.033 26.667 26.667 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 6);
            exp rect x                  (0) + ((((0 - 264)) + 4)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -230 126.033 26.667 26.667 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 6);
            exp rect x                  (0) + ((((0 - 264)) + 34)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -260 152.7 26.667 26.667 3 1
            style                       3
            decoration                  
            visible                     when((localvarstring("loadoutSecondaryBuff") != "specialty_null" || !isitemunlocked(localvarstring("loadoutSecondaryBuff"))));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutSecondaryBuff"), 3);
            exp rect x                  (0) + ((((0 - 264)) + 4)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -315 160.733 310.667 18.633 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   10
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 3);
            exp rect x                  (0) + (((0 - 264))) + ((0 - 51));
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -238 145.366 42.667 42.667 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/reticleTable.csv", 1, localvarstring("loadoutSecondaryReticle"), 4);
            exp rect x                  (0) + ((((0 - 264)) + 26)) + (0);
            exp forecolor a             (select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1))) * (localvarstring("loadoutSecondary") != "none"));
        }
        itemDef
        {
            rect                        -258 220.033 38.667 38.667 3 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) != "specialty_null" && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)) && localvarstring("loadoutPerk1") != ""));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 3) + "_upgrade";
            exp rect x                  (0) + (((0 - 264) + 6)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 267.7 38.667 38.667 3 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) != "specialty_null" && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)) && localvarstring("loadoutPerk2") != ""));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 3) + "_upgrade";
            exp rect x                  (0) + (((0 - 264) + 6)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 315.367 38.667 38.667 3 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) != "specialty_null" && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)) && localvarstring("loadoutPerk3") != ""));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 3) + "_upgrade";
            exp rect x                  (0) + (((0 - 264) + 6)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 220.033 38.667 38.667 3 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) == "specialty_null" || !isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8))));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 3);
            exp rect x                  (0) + (((0 - 264) + 6)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 267.7 38.667 38.667 3 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) == "specialty_null" || !isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8))));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 3);
            exp rect x                  (0) + (((0 - 264) + 6)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 315.367 38.667 38.667 3 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) == "specialty_null" || !isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8))));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 3);
            exp rect x                  (0) + (((0 - 264) + 6)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 216.367 200 18.033 3 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)) * (9 - 2))));
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 312.367 200 18.033 3 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)) * (9 - 2))));
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 264.367 200 18.033 3 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)) * (9 - 2))));
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 229.7 213.333 32 3 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8))));
            textalign                   4
            textscale                   0.340278
            textfont                    3
            forecolor                   0.784 0.784 0.784 1
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 4);
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 277.7 213.333 32 3 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8))));
            textalign                   4
            textscale                   0.340278
            textfont                    3
            forecolor                   0.784 0.784 0.784 1
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 4);
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 325.7 213.333 32 3 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8))));
            textalign                   4
            textscale                   0.340278
            textfont                    3
            forecolor                   0.784 0.784 0.784 1
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 4);
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 229.7 213.333 32 3 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8))));
            textalign                   4
            textscale                   0.340278
            textfont                    3
            forecolor                   0.784 0.784 0.784 1
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8), 4);
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 277.7 213.333 32 3 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8))));
            textalign                   4
            textscale                   0.340278
            textfont                    3
            forecolor                   0.784 0.784 0.784 1
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8), 4);
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 325.7 213.333 32 3 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8))));
            textalign                   4
            textscale                   0.340278
            textfont                    3
            forecolor                   0.784 0.784 0.784 1
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8), 4);
            exp rect x                  (0) + (((0 - 264) + 50)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_specialist"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, select(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0) != "none" && isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0) + "_pro"), getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0) + "_pro", getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0)), 14);
            exp rect x                  (0) + ((((0 - 264) + 6))) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -236 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_specialist"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, select(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1) != "none" && isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1) + "_pro"), getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1) + "_pro", getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1)), 14);
            exp rect x                  (0) + ((((0 - 264) + 6) + 22)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_specialist"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, select(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2) != "none" && isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2) + "_pro"), getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2) + "_pro", getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2)), 14);
            exp rect x                  (0) + ((((0 - 264) + 6) + 44)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -190 363.7 200 20 3 1
            style                       1
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_specialist"));
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "@PERKS_SPECIALIST";
            exp rect x                  (0) + ((((0 - 264) + 6) + 68)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_support"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0), 14);
            exp rect x                  (0) + ((((0 - 264) + 6))) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -236 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_support"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1), 14);
            exp rect x                  (0) + ((((0 - 264) + 6) + 22)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_support"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2), 14);
            exp rect x                  (0) + ((((0 - 264) + 6) + 44)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -190 363.7 200 20 3 1
            style                       1
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_support"));
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "@PERKS_SUPPORT";
            exp rect x                  (0) + ((((0 - 264) + 6) + 68)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -258 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_assault"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0), 14);
            exp rect x                  (0) + ((((0 - 264) + 6))) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -236 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_assault"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1), 14);
            exp rect x                  (0) + ((((0 - 264) + 6) + 22)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -214 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_assault"));
            textscale                   0.55
            exp material                tablelookup("mp/killstreakTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2), 14);
            exp rect x                  (0) + ((((0 - 264) + 6) + 44)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -190 363.7 200 20 3 1
            style                       1
            decoration                  
            visible                     when((getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5) == "streaktype_assault"));
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "@PERKS_ASSAULT";
            exp rect x                  (0) + ((((0 - 264) + 6) + 68)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -114 363.7 21.333 21.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutDeathStreak"), 3);
            exp rect x                  (0) + ((((0 - 264) + 6) + 144)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -90 363.7 258.633 18.633 3 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutDeathStreak"), 2);
            exp rect x                  (0) + (((0 - 264) + 6)) + (168);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -266.333 3.7 266.667 23.633 3 1
            style                       1
            decoration                  
            visible                     when((0));
            textalign                   10
            textscale                   0.5
            textfont                    9
            exp text                    getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name");
            exp rect x                  (0) + (((0 - 264) + (0 - 2.333))) + (0);
            exp forecolor a             select((getTextWidth(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"), 9, 0.5) <= 267), (select((1 || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)))), 0);
        }
        itemDef
        {
            rect                        -266.333 3.7 266.667 23.633 3 1
            style                       1
            decoration                  
            visible                     when((0));
            textalign                   10
            textscale                   0.4
            textfont                    9
            exp text                    getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name");
            exp rect x                  (0) + (((0 - 264) + (0 - 2.333))) + (0);
            exp forecolor a             select(((getTextWidth(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"), 9, 0.5) > 267) && (getTextWidth(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"), 9, 0.4) <= 267)), (select((1 || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)))), 0);
        }
        itemDef
        {
            rect                        -266.333 3.7 266.667 23.633 3 1
            style                       1
            decoration                  
            visible                     when((0));
            textalign                   10
            textscale                   0.3
            textfont                    9
            exp text                    getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name");
            exp rect x                  (0) + (((0 - 264) + (0 - 2.333))) + (0);
            exp forecolor a             select((getTextWidth(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"), 9, 0.4) > 267), (select((1 || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)))), 0);
        }
        itemDef
        {
            rect                        -256.667 185.367 253.333 1.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "linedoublesided"
            exp rect x                  (0) + (((0 - 264) + 7.333)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "equipment") || (localvarstring("ui_cac_details_selection") == "special_equipment") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -256.667 213.033 253.333 1.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "linedoublesided"
            exp rect x                  (0) + (((0 - 264) + 7.333)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "equipment") || (localvarstring("ui_cac_details_selection") == "special_equipment") || (localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -256.667 107.7 253.333 1.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "linedoublesided"
            exp rect x                  (0) + (((0 - 264) + 7.333)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "secondary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -256.667 358.367 253.333 1.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "linedoublesided"
            exp rect x                  (0) + (((0 - 264) + 7.333)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "perk_slot_0") || (localvarstring("ui_cac_details_selection") == "perk_slot_1") || (localvarstring("ui_cac_details_selection") == "perk_slot_2") || (localvarstring("ui_cac_details_selection") == "killstreaks") || (localvarstring("ui_cac_details_selection") == "deathstreaks") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -256.667 31.7 253.333 1.333 3 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "linedoublesided"
            exp rect x                  (0) + (((0 - 264) + 7.333)) + (0);
            exp forecolor a             select(((localvarstring("ui_cac_details_selection") == "primary_weapons") || (localvarstring("ui_cac_details_selection") == "all")), 1, 0.25) * select((dvarbool(widescreen) || !localvarbool("ui_shelfEnabled")), 1, select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 1, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 1)));
        }
        itemDef
        {
            rect                        -86.833 340 324.667 70 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))));
            textscale                   0.55
            background                  "challenge_blade_bg"
        }
        itemDef
        {
            rect                        0 0 0 20 1 1
            type                        1
            visible                     when(((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis")));
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 1;
                setLocalVarString ui_ralign_group "cac_weapon_proficiency_secondary_sniper" + "_challenge_blade";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiscript simulateKeyPress 167;
            }
            exp rect x                  (((0 - 64) + 276.5 + 5 + (20 / 2))) - (1 * 5) - 20 - getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375);
            exp rect y                  (387.333);
            exp rect w                  getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))) && (!1) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper" + "_challenge_blade"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (((0 - 64) + 276.5 + 5 + (20 / 2))) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375);
            exp rect y                  (387.333) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 1 1
            style                       1
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper" + "_challenge_blade"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (((0 - 64) + 276.5 + 5 + (20 / 2))) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375);
            exp rect y                  (387.333);
            exp rect w                  getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 1 1
            decoration                  
            visible                     when(((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis")));
            textalign                   8
            textscale                   0.375
            textfont                    3
            execKeyInt 167
            {
                setLocalVarBool ui_challenges_online dvarbool(onlinegame);
                open challenges_popup;
            }
            exp text                    "@PLATFORM_CHALLENGES_SHORTCUT";
            exp rect x                  (((0 - 64) + 276.5 + 5 + (20 / 2))) - (1 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375);
            exp rect y                  (387.333);
            exp rect w                  getTextWidth(locstring("@PLATFORM_CHALLENGES_SHORTCUT"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper" + "_challenge_blade"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper" + "_challenge_blade"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper" + "_challenge_blade"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
        itemDef
        {
            rect                        71.333 359.333 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
        }
        itemDef
        {
            rect                        71.333 359.333 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
        }
        itemDef
        {
            rect                        71.333 359.333 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect w                  140 * (((getplayerdata("challengeProgress", getsortedchallengename(0, localvarstring("ui_info_filter")))) / (int(getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "target", int(max(getplayerdata("challengeState", getsortedchallengename(0, localvarstring("ui_info_filter"))), 1)))))));
        }
        itemDef
        {
            rect                        71.333 359.333 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))));
            textscale                   0.55
            background                  "bar_progress_orange_custom"
        }
        itemDef
        {
            rect                        71.333 380.667 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis")) && (getsortedchallengecount(localvarstring("ui_info_filter")) > 1)));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
        }
        itemDef
        {
            rect                        71.333 380.667 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis")) && (getsortedchallengecount(localvarstring("ui_info_filter")) > 1)));
            textscale                   0.55
            background                  "dest_alpha_zero"
        }
        itemDef
        {
            rect                        71.333 380.667 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis")) && (getsortedchallengecount(localvarstring("ui_info_filter")) > 1)));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect w                  140 * (((getplayerdata("challengeProgress", getsortedchallengename(1, localvarstring("ui_info_filter")))) / (int(getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "target", int(max(getplayerdata("challengeState", getsortedchallengename(1, localvarstring("ui_info_filter"))), 1)))))));
        }
        itemDef
        {
            rect                        71.333 380.667 140 4 1 1
            style                       3
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis")) && (getsortedchallengecount(localvarstring("ui_info_filter")) > 1)));
            textscale                   0.55
            background                  "bar_progress_orange_custom"
        }
        itemDef
        {
            rect                        -34.167 341.333 246.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis"))));
            textalign                   10
            textscale                   0.340278
            textfont                    3
            exp text                    (getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "name") + locstring("@" + getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "label_nonperiodic") + "_" + int(max(getplayerdata("challengeState", getsortedchallengename(0, localvarstring("ui_info_filter"))), 1)))) + "   " + int(getplayerdata("challengeProgress", getsortedchallengename(0, localvarstring("ui_info_filter"))) / select(getsortedchallengename(0, localvarstring("ui_info_filter")) == "ch_longersprint_pro" || getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_weekly" || getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_daily", 5280, 1)) + "/" + int(int(getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "target", int(max(getplayerdata("challengeState", getsortedchallengename(0, localvarstring("ui_info_filter"))), 1)))) / select(getsortedchallengename(0, localvarstring("ui_info_filter")) == "ch_longersprint_pro" || getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_weekly" || getchallengedata(getsortedchallengename(0, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_daily", 5280, 1));
        }
        itemDef
        {
            rect                        -34.167 362.667 246.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((((getsortedchallengecount(localvarstring("ui_info_filter")) > 0) && (!dvarbool(onlinegame) || (!dvarbool(splitscreen) && !dvarbool(xblive_privatematch))) && localvarbool("ui_challenge_blade_vis")) && (getsortedchallengecount(localvarstring("ui_info_filter")) > 1)));
            textalign                   10
            textscale                   0.340278
            textfont                    3
            exp text                    (getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "name") + locstring("@" + getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "label_nonperiodic") + "_" + int(max(getplayerdata("challengeState", getsortedchallengename(1, localvarstring("ui_info_filter"))), 1)))) + "   " + int(getplayerdata("challengeProgress", getsortedchallengename(1, localvarstring("ui_info_filter"))) / select(getsortedchallengename(1, localvarstring("ui_info_filter")) == "ch_longersprint_pro" || getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_weekly" || getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_daily", 5280, 1)) + "/" + int(int(getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "target", int(max(getplayerdata("challengeState", getsortedchallengename(1, localvarstring("ui_info_filter"))), 1)))) / select(getsortedchallengename(1, localvarstring("ui_info_filter")) == "ch_longersprint_pro" || getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_weekly" || getchallengedata(getsortedchallengename(1, localvarstring("ui_info_filter")), "ref") == "ch_longersprint_pro_daily", 5280, 1));
        }
        itemDef
        {
            rect                        -252.667 2.667 253.333 20 3 1
            style                       1
            decoration                  
            visible                     when((!inlobby()));
            textalign                   8
            textscale                   0.375
            textfont                    3
            forecolor                   0.784314 0.784314 0.784314 1
            exp text                    truncateTextWithEllipsis((dvarstring(party_partyPlayerCount)), 3, 0.375, 225);
        }
        itemDef
        {
            rect                        -252.667 2.667 253.333 20 3 1
            style                       1
            decoration                  
            visible                     when((inlobby() && !dvarbool(xblive_privatematch)));
            textalign                   8
            textscale                   0.375
            textfont                    3
            forecolor                   0.784314 0.784314 0.784314 1
            exp text                    truncateTextWithEllipsis((getpartystatus()), 3, 0.375, 225);
        }
        itemDef
        {
            rect                        -252.667 2.667 253.333 20 3 1
            style                       1
            decoration                  
            visible                     when((inlobby() && dvarbool(xblive_privatematch)));
            textalign                   8
            textscale                   0.375
            textfont                    3
            forecolor                   0.784314 0.784314 0.784314 1
            exp text                    truncateTextWithEllipsis((getprivatepartystatus()), 3, 0.375, 225);
        }
        itemDef
        {
            rect                        -252.667 14.667 253.333 20 3 1
            style                       1
            decoration                  
            visible                     when((inlobby() && !dvarbool(xblive_privatematch) && !(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))));
            textalign                   8
            textscale                   0.375
            textfont                    3
            forecolor                   0.784314 0.784314 0.784314 1
            exp text                    getsearchparams();
        }
        itemDef
        {
            rect                        -88 34.667 325.333 17.333 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_swfSelectionBarVis") && (localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            background                  "navbar_selection_bar"
            exp rect y                  ((localvarint("ui_buttonNavGroupCurrent") - localvarint("ui_buttonNavGroupOffset")) * 20) + (34.667) + 0.667;
        }
        itemDef
        {
            rect                        213 34.667 21.333 16.5 1 1
            style                       1
            decoration                  
            visible                     when(localvarbool("ui_swfSelectionButtonVis") && (localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textalign                   10
            textscale                   0.30625
            textfont                    3
            exp text                    "@PLATFORM_NAVBAR_BUTTON_FOCUSED_SELECTBUTTON";
            exp rect y                  ((localvarint("ui_buttonNavGroupCurrent") - localvarint("ui_buttonNavGroupOffset")) * 20) + (34.667) + (0.667);
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_0"
            rect                        -68 34.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(1);
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_0";
                setLocalVarInt ui_buttonNavGroupCurrent 0;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((1) && !(0));
                setLocalVarBool ui_swfSelectionBarVis (1);
                setLocalVarBool ui_swfSelectionDisabled (0);
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("specialty_null");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(0))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , specialty_null );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 0))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 37 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((0)) && (1))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "BUFF0", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 0)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 37 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((0)) && (1))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "BUFF0", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 0)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 33.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((1) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_null"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_null", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 0))) + ((0 - 1.333));
            exp forecolor r             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 33.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((1) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_null"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_null", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 0))) + ((0 - 1.333));
            exp forecolor r             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 33.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("BUFF0" != "") && ((0 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "BUFF0")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (0) && (((0) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 0))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(0, select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_1"
            rect                        -68 54.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("specialty_marksman" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_1";
                setLocalVarInt ui_buttonNavGroupCurrent 1;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("specialty_marksman" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("specialty_marksman" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("specialty_marksman");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , specialty_marksman );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 1))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 57 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")))) && (("specialty_marksman" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 1)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 57 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")))) && (("specialty_marksman" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 1)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 53.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_marksman" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_marksman"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_marksman", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 1))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 53.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_marksman" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_marksman"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_marksman", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 1))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 53.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("specialty_marksman" != "") && ((1 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "specialty_marksman")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (1) && (((1) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 1))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_marksman", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_marksman" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_marksman" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_2"
            rect                        -68 74.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("specialty_bulletpenetration" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_2";
                setLocalVarInt ui_buttonNavGroupCurrent 2;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("specialty_bulletpenetration" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("specialty_bulletpenetration" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("specialty_bulletpenetration");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , specialty_bulletpenetration );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 2))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 77 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")))) && (("specialty_bulletpenetration" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 2)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 77 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")))) && (("specialty_bulletpenetration" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 2)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 73.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_bulletpenetration" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bulletpenetration"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_bulletpenetration", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 2))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 73.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_bulletpenetration" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bulletpenetration"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_bulletpenetration", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 2))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 73.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("specialty_bulletpenetration" != "") && ((2 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "specialty_bulletpenetration")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (2) && (((2) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 2))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bulletpenetration", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bulletpenetration" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bulletpenetration" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_3"
            rect                        -68 94.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("specialty_bling" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_3";
                setLocalVarInt ui_buttonNavGroupCurrent 3;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("specialty_bling" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("specialty_bling" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("specialty_bling");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , specialty_bling );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 3))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 97 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")))) && (("specialty_bling" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 3)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 97 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")))) && (("specialty_bling" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 3)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 93.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_bling" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_bling", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 3))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 93.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_bling" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_bling", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 3))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 93.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("specialty_bling" != "") && ((3 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "specialty_bling")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (3) && (((3) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 3))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_bling", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_bling" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_bling" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_4"
            rect                        -68 114.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("specialty_sharp_focus" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_4";
                setLocalVarInt ui_buttonNavGroupCurrent 4;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("specialty_sharp_focus" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("specialty_sharp_focus" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("specialty_sharp_focus");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , specialty_sharp_focus );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 4))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 117 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")))) && (("specialty_sharp_focus" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 4)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 117 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")))) && (("specialty_sharp_focus" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 4)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 113.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_sharp_focus" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_sharp_focus"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_sharp_focus", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 4))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 113.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_sharp_focus" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_sharp_focus"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_sharp_focus", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 4))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 113.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("specialty_sharp_focus" != "") && ((4 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "specialty_sharp_focus")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (4) && (((4) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 4))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_sharp_focus", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_sharp_focus" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_sharp_focus" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_5"
            rect                        -68 134.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("specialty_lightweight" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_5";
                setLocalVarInt ui_buttonNavGroupCurrent 5;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("specialty_lightweight" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("specialty_lightweight" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("specialty_lightweight");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , specialty_lightweight );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 5))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 137 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")))) && (("specialty_lightweight" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 5)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 137 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")))) && (("specialty_lightweight" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 5)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 133.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_lightweight" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_lightweight"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_lightweight", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 5))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 133.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_lightweight" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_lightweight"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_lightweight", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 5))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 133.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("specialty_lightweight" != "") && ((5 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "specialty_lightweight")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (5) && (((5) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 5))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_lightweight", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_lightweight" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_lightweight" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_6"
            rect                        -68 154.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("specialty_reducedsway" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_6";
                setLocalVarInt ui_buttonNavGroupCurrent 6;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("specialty_reducedsway" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("specialty_reducedsway" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("specialty_reducedsway");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , specialty_reducedsway );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 6))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 157 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")))) && (("specialty_reducedsway" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 6)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 157 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")))) && (("specialty_reducedsway" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 6)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 153.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_reducedsway" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_reducedsway"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_reducedsway", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 6))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 153.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("specialty_reducedsway" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_reducedsway"));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "specialty_reducedsway", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 6))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 153.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("specialty_reducedsway" != "") && ((6 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "specialty_reducedsway")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (6) && (((6) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 6))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "specialty_reducedsway", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "specialty_reducedsway" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "specialty_reducedsway" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_7"
            rect                        -68 174.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_7";
                setLocalVarInt ui_buttonNavGroupCurrent 7;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , "" );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 7))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 177 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 7)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 177 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 7)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 173.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 7))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 173.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 7))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 173.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("" != "") && ((7 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (7) && (((7) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 7))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_8"
            rect                        -68 194.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_8";
                setLocalVarInt ui_buttonNavGroupCurrent 8;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , "" );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 8))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 197 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 8)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 197 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 8)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 193.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 8))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 193.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 8))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 193.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("" != "") && ((8 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (8) && (((8) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 8))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_9"
            rect                        -68 214.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_9";
                setLocalVarInt ui_buttonNavGroupCurrent 9;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , "" );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 9))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 217 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 9)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 217 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 9)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 213.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 9))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 213.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 9))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 213.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("" != "") && ((9 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (9) && (((9) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 9))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "WEAPON_PROFICIENCY_LIST_10"
            rect                        -68 234.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(("" != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "WEAPON_PROFICIENCY_LIST_10";
                setLocalVarInt ui_buttonNavGroupCurrent 10;
                setLocalVarString ui_buttonNavGroupName "WEAPON_PROFICIENCY_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((("" != "")) && !((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))));
                setLocalVarBool ui_swfSelectionBarVis (("" != ""));
                setLocalVarBool ui_swfSelectionDisabled ((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")));
                if ((11 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (11 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref ("");
                setLocalVarString ui_selected_buff_desc "@" + tablelookup("mp/perkTable.csv", 1, (localvarstring("ui_selected_ref")), 4);
                if ((localvarstring("ui_selected_ref")) == "specialty_null" || (localvarstring("ui_selected_ref")) == "none" || (localvarstring("ui_selected_ref")) == "")
                {
                    setLocalVarString ui_selected_buff_desc "";
                }
                if (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 4)) || dvarbool(xblive_privatematch)) && (localvarstring("ui_selected_ref")) != "none" && (localvarstring("ui_selected_ref")) != "" && (localvarstring("ui_selected_ref")) != "specialty_null")
                {
                    setLocalVarString ui_selected_buff_desc locstring("@MPUI_UNLOCKED_AT_WEAPON_LEVEL_N", int((tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), (localvarstring("ui_selected_ref")), 5))));
                }
                setLocalVarString temp (debugprint("Stats", "Weapon: " + localvarstring("loadoutSecondary") + " Buff: " + localvarstring("ui_selected_ref") + " Rank: " + getplayerdata("weaponRank", localvarstring("loadoutSecondary")) + " XP: " + getplayerdata("weaponXP", localvarstring("loadoutSecondary"))));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff col: " + tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)));
                setLocalVarString temp (debugprint("Stats", "tableLookup buff level: " + tablelookup("mp/weaponRankTable.csv", tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4), localvarstring("ui_selected_ref"), 4)));
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling"))))
                {
                    play mouse_click;
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , buff , "" );
                    if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                    {
                        setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                    }
                    setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                    setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                    setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                    if (localvarstring("loadoutPrimaryAttachment2") == "")
                    {
                        setLocalVarString loadoutPrimaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                    setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                    setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                    setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                    setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                    setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                    if (localvarstring("loadoutSecondaryAttachment2") == "")
                    {
                        setLocalVarString loadoutSecondaryAttachment2 ("none");
                    }
                    setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                    setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                    setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                    setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                    setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                    setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                    setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                    setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                    setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                    setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                    setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                    setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                    setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                    setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                    setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                    setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                    setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                    setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                    setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                    setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                    setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                    setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                    setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                    if ((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "") && (1 == 0 || !FUNC_40() || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun" || tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            if (!(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == "specialty_bling") && getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) != "none")
                            {
                                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                                if (!(tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "" || tablelookup("mp/attachmentTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != "") && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_gl" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_grip" || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun") || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")
                                {
                                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , specialty_null );
                                }
                                setLocalVarString loadoutPrimary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"));
                                setLocalVarString loadoutPrimaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0));
                                setLocalVarString loadoutPrimaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1));
                                if (localvarstring("loadoutPrimaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutPrimaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutPrimaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "buff"));
                                setLocalVarString loadoutPrimaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo"));
                                setLocalVarString loadoutPrimaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "reticle"));
                                setLocalVarString loadoutSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"));
                                setLocalVarString loadoutSecondaryAttachment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0));
                                setLocalVarString loadoutSecondaryAttachment2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1));
                                if (localvarstring("loadoutSecondaryAttachment2") == "")
                                {
                                    setLocalVarString loadoutSecondaryAttachment2 ("none");
                                }
                                setLocalVarString loadoutSecondaryBuff (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff"));
                                setLocalVarString loadoutSecondaryCamo (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo"));
                                setLocalVarString loadoutSecondaryReticle (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "reticle"));
                                setLocalVarString loadoutEquipment (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0));
                                setLocalVarString loadoutPerk1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1));
                                setLocalVarString loadoutPerk2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2));
                                setLocalVarString loadoutPerk3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3));
                                setLocalVarString loadoutStreakType (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 5));
                                setLocalVarString loadoutAssaultKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0));
                                setLocalVarString loadoutAssaultKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1));
                                setLocalVarString loadoutAssaultKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2));
                                setLocalVarString loadoutDefenseKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0));
                                setLocalVarString loadoutDefenseKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1));
                                setLocalVarString loadoutDefenseKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2));
                                setLocalVarString loadoutSpecialistKillStreak1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 0));
                                setLocalVarString loadoutSpecialistKillStreak2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 1));
                                setLocalVarString loadoutSpecialistKillStreak3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreaks", 2));
                                setLocalVarString loadoutSpecialistKills1 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 0));
                                setLocalVarString loadoutSpecialistKills2 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 1));
                                setLocalVarString loadoutSpecialistKills3 (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "specialistStreakKills", 2));
                                setLocalVarString loadoutDeathStreak (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak"));
                                setLocalVarString loadoutOffhandSecondary (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6));
                                setLocalVarString loadoutClassName (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "name"));
                            }
                        }
                        if (1 == 0)
                        {
                            open cac_weapon_attachments_primary;
                        }
                        else
                        {
                            open cac_weapon_attachments_secondary;
                        }
                    }
                    else
                    {
                        if ((1 == 0 && ((localvarstring("loadoutPrimaryAttachment") != "none" && localvarstring("loadoutPrimaryAttachment") != "thermal" && localvarstring("loadoutPrimaryAttachment") != "vzscope" && localvarstring("loadoutPrimaryAttachment") != "hybrid" && localvarstring("loadoutPrimaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 2) == "rail") || (localvarstring("loadoutPrimaryAttachment2") != "none" && localvarstring("loadoutPrimaryAttachment2") != "thermal" && localvarstring("loadoutPrimaryAttachment2") != "vzscope" && localvarstring("loadoutPrimaryAttachment2") != "hybrid" && localvarstring("loadoutPrimaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 2) == "rail"))) || (1 == 1 && ((localvarstring("loadoutSecondaryAttachment") != "none" && localvarstring("loadoutSecondaryAttachment") != "thermal" && localvarstring("loadoutSecondaryAttachment") != "vzscope" && localvarstring("loadoutSecondaryAttachment") != "hybrid" && localvarstring("loadoutSecondaryAttachment") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 2) == "rail") || (localvarstring("loadoutSecondaryAttachment2") != "none" && localvarstring("loadoutSecondaryAttachment2") != "thermal" && localvarstring("loadoutSecondaryAttachment2") != "vzscope" && localvarstring("loadoutSecondaryAttachment2") != "hybrid" && localvarstring("loadoutSecondaryAttachment2") != "hamrhybrid" && tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 2) == "rail"))))
                        {
                            if (1 == 0)
                            {
                                open cac_weapon_reticle_primary;
                            }
                            else
                            {
                                open cac_weapon_reticle_secondary;
                            }
                        }
                        else
                        {
                            if (1 && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_riot") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_machine_pistol") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_projectile") && ((1 == 0) || (isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))))
                            {
                                if (1 == 0)
                                {
                                    open cac_weapon_camo_primary;
                                }
                                else
                                {
                                    open cac_weapon_camo_secondary;
                                }
                            }
                            else
                            {
                                close cac_weapon_primary;
                                close cac_weapon_secondary;
                                close cac_weapon_second_primary;
                                close cac_assault_primary;
                                close cac_smg_primary;
                                close cac_lmg_primary;
                                close cac_sniper_primary;
                                close cac_shotgun_primary;
                                close cac_riot_primary;
                                close cac_assault_second_primary;
                                close cac_smg_second_primary;
                                close cac_lmg_second_primary;
                                close cac_sniper_second_primary;
                                close cac_shotgun_second_primary;
                                close cac_riot_second_primary;
                                close cac_machinepistol_secondary;
                                close cac_handgun_secondary;
                                close cac_rocket_secondary;
                                close cac_weapon_customize_primary;
                                close cac_weapon_customize_secondary;
                                close cac_weapon_attachments_primary;
                                close cac_weapon_attachments_secondary;
                                close cac_weapon_proficiency_primary_assault;
                                close cac_weapon_proficiency_primary_smg;
                                close cac_weapon_proficiency_primary_lmg;
                                close cac_weapon_proficiency_primary_sniper;
                                close cac_weapon_proficiency_primary_shotgun;
                                close cac_weapon_proficiency_primary_riot;
                                close cac_weapon_proficiency_secondary_assault;
                                close cac_weapon_proficiency_secondary_smg;
                                close cac_weapon_proficiency_secondary_lmg;
                                close cac_weapon_proficiency_secondary_sniper;
                                close cac_weapon_proficiency_secondary_shotgun;
                                close cac_weapon_proficiency_secondary_riot;
                                close cac_weapon_reticle_primary;
                                close cac_weapon_reticle_secondary;
                                close cac_weapon_camo_primary;
                                close cac_weapon_camo_secondary;
                            }
                        }
                    }
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 10))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 237 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 10)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 237 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when((((((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")))) && (("" != "")))) && (!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch))) && (!(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 10)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 233.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 10))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.882 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.882));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.655 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.655));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0.173 * select(isdemoplaying(), FUNC_36(), FUNC_35()), 0.173));
        }
        itemDef
        {
            rect                        -64 233.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((("" != "")) && !(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "buff") == ""));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    "@" + tablelookup("mp/perkTable.csv", 1, "", 2);
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 10))) + ((0 - 1.333));
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -64 233.334 16 16 1 1
            style                       3
            decoration                  
            visible                     when((("" != "") && ((10 != 0)) && getusingmatchrulesdata() && getmatchrulesdata("commonOption", "perkRestricted", "")) && ("LOCK_VIS_ARG") && (((localvarint("ui_buttonNavGroupOffset") + (11 - 1)) >= (10) && (((10) - localvarint("ui_buttonNavGroupOffset")) >= 0))));
            textscale                   0.55
            background                  "deaths_skull"
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 10))) + ((0 - 1.333)) - ((16 - 21) * 0.5);
            exp rect x                  ((219.5 + 80)) + ((0 - 64)) - ((16 - 21) * 0.5);
            exp forecolor r             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select((!(areAllItemsUnlocked() || (getplayerdata("weaponRank", localvarstring("loadoutSecondary")) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2), 4)), "", 4)) || dvarbool(xblive_privatematch)) || (1 == 1 && (FUNC_40() && !(isitemunlocked(tablelookup("mp/perkTable.csv", 1, "specialty_twoprimaries", 8)) && (localvarstring("loadoutPerk1") == "specialty_twoprimaries" || localvarstring("loadoutPerk2") == "specialty_twoprimaries" || localvarstring("loadoutPerk3") == "specialty_twoprimaries"))) && "" == "specialty_bling") || (localvarstring("loadoutSecondary") == "iw5_1887" && "" == "specialty_bling")), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "WEAPON_PROFICIENCY_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "DEATHSTREAK_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -88 52 325.333 8.666 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_swfSelectionBarVis") && (localvarstring("ui_buttonNavGroupName") == "WEAPON_PROFICIENCY_LIST"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect y                  ((localvarint("ui_buttonNavGroupCurrent") - localvarint("ui_buttonNavGroupOffset")) * 20) + (34.667) + 0.667 + 17.333;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            type                        1
            visible                     when(((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running)))));
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 2;
                setLocalVarString ui_ralign_group "cac_weapon_proficiency_secondary_sniper";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiscript simulateKeyPress 102;
            }
            exp rect x                  (0) - (0 * 5) - 20 - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 3 3
            style                       3
            decoration                  
            visible                     when((((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running))))) && (!0) && (localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667)) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            style                       1
            decoration                  
            visible                     when((((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running))))) && (localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            decoration                  
            visible                     when(((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running)))));
            textalign                   8
            textscale                   0.375
            textfont                    3
            execKey "f"
            {
                if (((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running)))))
                {
                    setLocalVarBool ui_vault_browse 0;
                    setLocalVarBool ui_vault_load 0;
                    execnow "incnosplitscreencontrol popup_friends";
                    if (isprofilesignedin() && isusersignedintolive())
                    {
                        open popup_friends;
                    }
                    else
                    {
                        execnow "decnosplitscreencontrol popup_friends";
                    }
                }
            }
            exp text                    "@PLATFORM_FRIENDS_SHORTCUT";
            exp rect x                  (0) - (0 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            type                        1
            visible                     when(1);
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 1;
                setLocalVarString ui_ralign_group "cac_weapon_proficiency_secondary_sniper";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiscript simulateKeyPress 27;
            }
            exp rect x                  (0) - (0 * 5) - 20 - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 3 3
            style                       3
            decoration                  
            visible                     when((1) && (!0) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667)) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            style                       1
            decoration                  
            visible                     when((1) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.375
            textfont                    3
            exp text                    "@PLATFORM_BACK_SHORTCUT";
            exp rect x                  (0) - (0 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_proficiency_secondary_sniper"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
    }
}
