{ menuDef { name "popup_cac_primary_camo" rect -64 0 854 184 1 1 popup style 1 forecolor 1 1 1 1 backcolor 1 1 1 1 background "white" focuscolor 1 1 1 1 fadeCycle 1 fadeClamp 1 fadeAmount 0.1 allowedBinding "+talk" visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_primary_camo_tabDepth" ) ) exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 ) execKey 168 { if ( localvarstring( "ui_selected_ref" ) != "none" && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) ) { open "menu_challenge_detail_popup"; } } onOpen { if ((getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) == "ak47classic" || ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) == "ak74u" || ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) == "m40a3" || ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) == "peacekeeper" || ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) == "dragunov") { close "popup_cac_weapon_primary"; close "popup_primary_attachments"; close "popup_secondary_attachments"; close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 ); setLocalVarInt "ui_popup_cac_primary_camo_tabDepth" ( localvarint( "ui_tabDepth" ) ); if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "none" ) { setfocus "cac_camo_none"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "desert" ) { setfocus "cac_camo_desert"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "arctic" ) { setfocus "cac_camo_arctic"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "woodland" ) { setfocus "cac_camo_woodland"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "digital" ) { setfocus "cac_camo_digital"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "red_urban" ) { setfocus "cac_camo_red_urban"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "blue_tiger" ) { setfocus "cac_camo_blue_tiger"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "red_tiger" ) { setfocus "cac_camo_red_tiger"; } if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) == "orange_fall" ) { setfocus "cac_camo_orange_fall"; } } onClose { setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 ); } onEsc { close self; } itemDef { rect -918 -480 1708 960 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 0.35 background "white" textscale 0.55 visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect -918 -480 1708 960 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 1 1 1 1 background "xpbar_stencilbase" textscale 0.55 } itemDef { rect -64 0 854 184 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0.5 0.5 0.5 1 background "white" textscale 0.55 } itemDef { rect -64 0 1708 480 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.75 background "mw2_popup_bg_fogstencil" textscale 0.55 exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) ) } itemDef { rect -64 0 -1708 -480 1 1 decoration visible 1 style 3 forecolor 0.85 0.85 0.85 1 background "mw2_popup_bg_fogscroll" textscale 0.55 exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) ) } itemDef { rect -64 0 854 0 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "mockup_popup_bg_stencilfill" textscale 0.55 exp rect h ( ( 24 + 8 * 20 ) ) } itemDef { rect -64 0 -1708 -480 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.75 background "mw2_popup_bg_fogstencil" textscale 0.55 exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) ) } itemDef { rect -64 0 -1708 -480 1 1 decoration visible 1 style 3 forecolor 0.85 0.85 0.85 1 background "mw2_popup_bg_fogscroll" textscale 0.55 exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) ) } itemDef { rect -64 0 854 0 1 1 decoration visible 1 style 3 forecolor 1 1 1 0 background "small_box_lightfx" textscale 0.55 exp rect h ( ( 24 + 8 * 20 ) ) } itemDef { rect -96 -32 32 32 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_tl" textscale 0.55 visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect -64 -32 854 32 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_t" textscale 0.55 visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect 790 -32 32 32 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_tr" textscale 0.55 visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect 790 0 32 0 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_r" textscale 0.55 exp rect h ( ( 24 + 8 * 20 ) ) visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect 790 0 32 32 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_br" textscale 0.55 exp rect y ( ( 0 - 0 ) + ( ( 24 + 8 * 20 ) ) ) visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect -64 0 854 32 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_b" textscale 0.55 exp rect y ( ( 0 - 0 ) + ( ( 24 + 8 * 20 ) ) ) visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect -96 0 32 32 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_bl" textscale 0.55 exp rect y ( ( 0 - 0 ) + ( ( 24 + 8 * 20 ) ) ) visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect -96 0 32 0 1 1 decoration visible 1 style 3 forecolor 0 0 0 1 background "drop_shadow_l" textscale 0.55 exp rect h ( ( 24 + 8 * 20 ) ) visible when ( !localvarint( "ui_centerPopup" ) ) } itemDef { rect 0 0 280 184 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 1 1 1 0 background "gradient_fadein" textscale 0.55 } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0.25 0.25 0.25 1 background "white" textscale 0.55 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 1 ) * 20 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 1 - 1 ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 1 background "gradient_fadein" textfont 9 textalign 4 textalignx 68 textscale 0.375 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 1 ) * 20 ) ) exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) ) exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) ) exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 1 - 1 ) ) exp text ( localvarstring( "ui_tab1Name" ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0.25 0.25 0.25 1 background "white" textscale 0.55 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 2 ) * 20 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 2 - 1 ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 1 background "gradient_fadein" textfont 9 textalign 4 textalignx 68 textscale 0.375 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 2 ) * 20 ) ) exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) ) exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) ) exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 2 - 1 ) ) exp text ( localvarstring( "ui_tab2Name" ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0.25 0.25 0.25 1 background "white" textscale 0.55 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 3 ) * 20 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 3 - 1 ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 1 background "gradient_fadein" textfont 9 textalign 4 textalignx 68 textscale 0.375 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 3 ) * 20 ) ) exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) ) exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) ) exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 3 - 1 ) ) exp text ( localvarstring( "ui_tab3Name" ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0.25 0.25 0.25 1 background "white" textscale 0.55 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 4 ) * 20 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 4 - 1 ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 1 background "gradient_fadein" textfont 9 textalign 4 textalignx 68 textscale 0.375 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 4 ) * 20 ) ) exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) ) exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) ) exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 4 - 1 ) ) exp text ( localvarstring( "ui_tab4Name" ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0.25 0.25 0.25 1 background "white" textscale 0.55 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 5 ) * 20 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 5 - 1 ) ) } itemDef { rect 0 0 280 20 1 1 decoration visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 1 background "gradient_fadein" textfont 9 textalign 4 textalignx 68 textscale 0.375 exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 5 ) * 20 ) ) exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) ) exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) ) exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) ) visible when ( localvarint( "ui_tabDepth" ) > ( 5 - 1 ) ) exp text ( localvarstring( "ui_tab5Name" ) ) } itemDef { name "cac_camo_none" rect 0 4 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "none" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "none" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "none" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "none" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "none" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "none" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "none" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "none" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "none" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "none" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "none" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "none" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "none" , "false" ) ;; } } itemDef { rect 162 4 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "none" ) ) } itemDef { rect 162 4 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "none" ) ) } itemDef { name "cac_camo_desert" rect 0 24 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "desert" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "desert" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "desert" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "desert" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "desert" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "desert" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "desert" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "desert" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "desert" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "desert" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "desert" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "desert" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "desert" , "false" ) ;; } } itemDef { rect 162 24 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "desert" ) ) } itemDef { rect 162 24 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "desert" ) ) } itemDef { name "cac_camo_arctic" rect 0 44 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "arctic" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "arctic" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "arctic" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "arctic" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "arctic" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "arctic" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "arctic" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "arctic" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "arctic" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "arctic" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "arctic" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "arctic" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "arctic" , "false" ) ;; } } itemDef { rect 162 44 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "arctic" ) ) } itemDef { rect 162 44 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "arctic" ) ) } itemDef { name "cac_camo_woodland" rect 0 64 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "woodland" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "woodland" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "woodland" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "woodland" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "woodland" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "woodland" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "woodland" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "woodland" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "woodland" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "woodland" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "woodland" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "woodland" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "woodland" , "false" ) ;; } } itemDef { rect 162 64 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "woodland" ) ) } itemDef { rect 162 64 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "woodland" ) ) } itemDef { name "cac_camo_digital" rect 0 84 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "digital" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "digital" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "digital" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "digital" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "digital" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "digital" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "digital" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "digital" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "digital" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "digital" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "digital" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "digital" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "digital" , "false" ) ;; } } itemDef { rect 162 84 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "digital" ) ) } itemDef { rect 162 84 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "digital" ) ) } itemDef { name "cac_camo_red_urban" rect 0 104 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "red_urban" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_urban" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_urban" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_urban" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_urban" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_urban" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_urban" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_urban" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "red_urban" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "red_urban" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "red_urban" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "red_urban" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "red_urban" , "false" ) ;; } } itemDef { rect 162 104 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "red_urban" ) ) } itemDef { rect 162 104 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "red_urban" ) ) } itemDef { name "cac_camo_blue_tiger" rect 0 124 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "blue_tiger" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "blue_tiger" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "blue_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "blue_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "blue_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "blue_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "blue_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "blue_tiger" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "blue_tiger" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "blue_tiger" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "blue_tiger" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "blue_tiger" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "blue_tiger" , "false" ) ;; } } itemDef { rect 162 124 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "blue_tiger" ) ) } itemDef { rect 162 124 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "blue_tiger" ) ) } itemDef { name "cac_camo_red_tiger" rect 0 144 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "red_tiger" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_tiger" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_tiger" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "red_tiger" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "red_tiger" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "red_tiger" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "red_tiger" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "red_tiger" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "red_tiger" , "false" ) ;; } } itemDef { rect 162 144 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "red_tiger" ) ) } itemDef { rect 162 144 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "red_tiger" ) ) } itemDef { name "cac_camo_orange_fall" rect 0 164 336 20 1 1 visible 1 group "mw2_popup_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "popup_button_selection_bar_short" type 1 textfont 3 textalign 4 textalignx 68 textscale 0.375 visible when ( 1 ) disabled when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + ( "orange_fall" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "orange_fall" , 2 ) ) action { play "mouse_click"; if ( localvarint( "ui_tabDepth" ) == 0 ) { setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "orange_fall" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 1 ) { setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "orange_fall" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 2 ) { setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "orange_fall" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 3 ) { setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "orange_fall" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 4 ) { setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "orange_fall" , 2 ) ); } if ( localvarint( "ui_tabDepth" ) == 5 ) { setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/camoTable.csv" , 1 , "orange_fall" , 2 ) ); } setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "orange_fall" , "false" ); ; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "orange_fall" ); if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) { setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" ); } setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); close "popup_cac_weapon_primary"; close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary"; close "popup_cac_handgun_secondary"; close "popup_cac_machinePistols_secondary"; close "popup_cac_assault_primary"; close "popup_cac_SMG_primary"; close "popup_cac_LMG_primary"; close "popup_cac_sniper_primary"; close "popup_cac_shotgun_primary"; close "popup_cac_assault_secondary"; close "popup_cac_SMG_secondary"; close "popup_cac_LMG_secondary"; close "popup_cac_sniper_secondary"; close "popup_cac_shotgun_secondary"; close "popup_cac_template"; close "popup_cac_primary_camo"; close "popup_cac_secondary_camo"; close "popup_cac_bling"; close "popup_cac_perk2"; close "popup_cac_rocket_secondary"; close "popup_primary_attachments_bling"; close "popup_secondary_attachments_bling"; close "popup_cac_other_primary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_popup_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_popupAButton" ( 1 ); setLocalVarString "ui_selected_ref" ( "orange_fall" ); setLocalVarString "ui_weapon_ref" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setLocalVarString "ui_unlock_ref" ( localvarstring( "ui_weapon_ref" ) + " " + "orange_fall" ); setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_unlock_ref" ) , 3 ) ); setLocalVarInt "ui_challenge_state" ( 1 ); if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_2" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 2 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_3" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 3 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_4" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 4 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_5" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 5 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_6" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 6 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_7" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 7 ); } if ( ( localvarstring( "ui_challenge_ref" ) == "ch_expert_" + localvarstring( "ui_weapon_ref" ) + "_8" ) ) { setLocalVarString "ui_challenge_ref" ( "ch_expert_" + localvarstring( "ui_weapon_ref" ) ); setLocalVarInt "ui_challenge_state" ( 8 ); } } leaveFocus { setItemColor self backcolor 1 1 1 0; setLocalVarBool "ui_popupAButton" ( 0 ); setLocalVarString "tempName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); setPlayerData( "camoNew" , "localVarString" ( "tempName" ) , "orange_fall" , "false" ) ;; } } itemDef { rect 162 164 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_new" textscale 0.55 visible when ( 1 && getplayerdata( "camoNew" , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , "orange_fall" ) ) } itemDef { rect 162 164 40 20 1 1 decoration visible 1 style 3 forecolor 1 1 1 1 background "specialty_locked" textscale 0.55 visible when ( 1 && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + "orange_fall" ) ) } itemDef { rect 0 0 200 184 2 1 decoration visible 1 style 3 forecolor 1 1 1 0.5 background "small_box_lightfx" textscale 0.55 } itemDef { rect 16 0 200 184 2 1 decoration visible 1 forecolor 1 1 1 1 textfont 9 textalign 4 textalignx 4 textscale 0.375 exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 2 ) ) } itemDef { rect 16 24 -300 100 2 1 decoration visible 1 style 3 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "mp/camoTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) } itemDef { rect 16 24 -300 100 2 1 decoration visible 1 style 3 forecolor 0 0 0 0.5 textscale 0.55 visible when ( localvarstring( "ui_selected_ref" ) == "none" ) exp material ( "ui_camoskin_woodland" ) } itemDef { rect 16 124 400 20 2 1 decoration autowrapped visible 1 forecolor 1 1 1 0.65 backcolor 0 0 0 0.35 background "black" textfont 3 textalign 4 textalignx 4 textscale 0.375 visible when ( isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) ) exp text ( "@" + tablelookup( "mp/camoTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 3 ) ) } itemDef { rect 16 124 400 20 2 1 decoration autowrapped visible 1 forecolor 1 1 1 0.65 textfont 3 textalign 4 textalignx 4 textscale 0.375 text "@MPUI_UNLOCKED_BY_CHALLENGE_PRE" visible when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) ) } itemDef { rect 16 124 400 20 2 1 decoration autowrapped visible 1 forecolor 1 1 1 0.65 textfont 3 textalign 4 textalignx 4 textaligny 20 textscale 0.375 visible when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) ) exp text ( locstring( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) ) + locstring( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 3 ) + "_" + localvarint( "ui_challenge_state" ) ) ) } itemDef { rect 16 124 400 20 2 1 decoration autowrapped visible 1 forecolor 1 1 1 0.65 textfont 3 textalign 4 textalignx 4 textaligny 40 textscale 0.375 text "@PLATFORM_VIEW_CHALLENGE_DETAILS" visible when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) ) } } }