2605 lines
142 KiB
Plaintext
2605 lines
142 KiB
Plaintext
{
|
|
menuDef
|
|
{
|
|
name "popup_cac_assault_primary"
|
|
rect 0 0 854 204 1 1
|
|
style 1
|
|
backcolor 1 1 1 0
|
|
forecolor 1 1 1 0
|
|
focuscolor 1 1 1 1
|
|
background "white"
|
|
outOfBoundsClick
|
|
popup
|
|
fadeClamp 1
|
|
fadeCycle 1
|
|
fadeAmount 0.1
|
|
visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_assault_primary_tabDepth"));
|
|
exp rect Y localvarfloat("ui_popupYPos") + localvarint("ui_tabDepth") * 20;
|
|
onOpen
|
|
{
|
|
setfocus cac_weapon_m4;
|
|
setLocalVarInt ui_tabDepth (localvarint("ui_tabDepth") + 1);
|
|
setLocalVarInt ui_popup_cac_assault_primary_tabDepth (localvarint("ui_tabDepth"));
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "m4")
|
|
{
|
|
setfocus cac_weapon_m4;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "famas")
|
|
{
|
|
setfocus cac_weapon_famas;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "scar")
|
|
{
|
|
setfocus cac_weapon_scar;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "tavor")
|
|
{
|
|
setfocus cac_weapon_tavor;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "fal")
|
|
{
|
|
setfocus cac_weapon_fal;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "m16")
|
|
{
|
|
setfocus cac_weapon_m16;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "masada")
|
|
{
|
|
setfocus cac_weapon_masada;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "fn2000")
|
|
{
|
|
setfocus cac_weapon_fn2000;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ak47")
|
|
{
|
|
setfocus cac_weapon_ak47;
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ak47classic")
|
|
{
|
|
setfocus cac_weapon_ak47classic;
|
|
}
|
|
}
|
|
onClose
|
|
{
|
|
setLocalVarInt ui_tabDepth (localvarint("ui_tabDepth") - 1);
|
|
}
|
|
onESC
|
|
{
|
|
close self;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -918 -480 1708 960 1 1
|
|
style 1
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -918 -480 1708 960 1 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
backcolor 1 1 1 1
|
|
background "xpbar_stencilbase"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 184 1 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
backcolor 0.5 0.5 0.5 1
|
|
background "white"
|
|
exp rect h 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 1708 480 1 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
forecolor 1 1 1 0.75
|
|
background "mw2_popup_bg_fogstencil"
|
|
exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * (854));
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 -1708 -480 1 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
forecolor 0.85 0.85 0.85 0.85
|
|
background "mw2_popup_bg_fogscroll"
|
|
exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * (854));
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 0 1 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
background "mockup_popup_bg_stencilfill"
|
|
exp rect h 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 -1708 -480 1 1
|
|
style 3
|
|
decoration
|
|
textscale 0.55
|
|
background "mw2_popup_bg_fogstencil"
|
|
exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * (854));
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 -1708 -480 1 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "mw2_popup_bg_fogscroll"
|
|
exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * (854));
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 0 1 1
|
|
style 3
|
|
decoration
|
|
textscale 0.55
|
|
forecolor 1 1 1 0
|
|
background "small_box_lightfx"
|
|
exp rect h 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -96 -32 32 32 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_tl"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 -32 854 32 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_t"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 790 -32 32 32 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_tr"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 790 0 32 0 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_r"
|
|
exp rect h 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect 790 0 32 32 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_br"
|
|
exp rect y 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 32 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_b"
|
|
exp rect y 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -96 0 32 32 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_bl"
|
|
exp rect y 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -96 0 32 0 1 1
|
|
style 3
|
|
decoration
|
|
visible when(!localvarint("ui_centerPopup"));
|
|
textscale 0.55
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_l"
|
|
exp rect h 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 184 1 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
backcolor 1 1 1 0
|
|
background "gradient_fadein"
|
|
exp rect h 4 + 10 * 20;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (1 - 1));
|
|
textscale 0.55
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
exp rect y - 20 - ((localvarint("ui_tabDepth") - 1) * 20);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (1 - 1));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 9
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
exp text localvarstring("ui_tab1Name");
|
|
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);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (2 - 1));
|
|
textscale 0.55
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
exp rect y - 20 - ((localvarint("ui_tabDepth") - 2) * 20);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (2 - 1));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 9
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
exp text localvarstring("ui_tab2Name");
|
|
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);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (3 - 1));
|
|
textscale 0.55
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
exp rect y - 20 - ((localvarint("ui_tabDepth") - 3) * 20);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (3 - 1));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 9
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
exp text localvarstring("ui_tab3Name");
|
|
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);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (4 - 1));
|
|
textscale 0.55
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
exp rect y - 20 - ((localvarint("ui_tabDepth") - 4) * 20);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (4 - 1));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 9
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
exp text localvarstring("ui_tab4Name");
|
|
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);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (5 - 1));
|
|
textscale 0.55
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
exp rect y - 20 - ((localvarint("ui_tabDepth") - 5) * 20);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
style 1
|
|
decoration
|
|
visible when(localvarint("ui_tabDepth") > (5 - 1));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 9
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
exp text localvarstring("ui_tab5Name");
|
|
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);
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_m4"
|
|
group "mw2_popup_button"
|
|
rect -64 4 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("m4"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("m4");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , m4 , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "m4", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "m4", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "m4", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "m4", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "m4", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "m4", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "m4")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , m4 );
|
|
setPlayerData ( weaponNew , m4 , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "m4", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "m4", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "m4", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "m4", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 4 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "m4") || getplayerdataanybooltrue("camoNew", "m4") || getplayerdataanybooltrue("attachmentNew", "m4")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 4 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("m4") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_famas"
|
|
group "mw2_popup_button"
|
|
rect -64 24 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("famas"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("famas");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , famas , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "famas", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "famas", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "famas", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "famas", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "famas", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "famas", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "famas")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , famas );
|
|
setPlayerData ( weaponNew , famas , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "famas", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "famas", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "famas", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "famas", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 24 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "famas") || getplayerdataanybooltrue("camoNew", "famas") || getplayerdataanybooltrue("attachmentNew", "famas")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 24 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("famas") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_scar"
|
|
group "mw2_popup_button"
|
|
rect -64 44 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("scar"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("scar");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , scar , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "scar", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "scar", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "scar", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "scar", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "scar", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "scar", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "scar")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , scar );
|
|
setPlayerData ( weaponNew , scar , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "scar", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "scar", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "scar", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "scar", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 44 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "scar") || getplayerdataanybooltrue("camoNew", "scar") || getplayerdataanybooltrue("attachmentNew", "scar")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 44 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("scar") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_tavor"
|
|
group "mw2_popup_button"
|
|
rect -64 64 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("tavor"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("tavor");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , tavor , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "tavor")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , tavor );
|
|
setPlayerData ( weaponNew , tavor , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "tavor", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "tavor", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "tavor", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "tavor", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 64 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "tavor") || getplayerdataanybooltrue("camoNew", "tavor") || getplayerdataanybooltrue("attachmentNew", "tavor")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 64 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("tavor") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_fal"
|
|
group "mw2_popup_button"
|
|
rect -64 84 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("fal"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("fal");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , fal , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "fal", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "fal", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "fal", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "fal", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "fal", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "fal", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "fal")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , fal );
|
|
setPlayerData ( weaponNew , fal , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "fal", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "fal", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "fal", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "fal", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 84 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "fal") || getplayerdataanybooltrue("camoNew", "fal") || getplayerdataanybooltrue("attachmentNew", "fal")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 84 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("fal") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_m16"
|
|
group "mw2_popup_button"
|
|
rect -64 104 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("m16"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("m16");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , m16 , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "m16", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "m16", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "m16", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "m16", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "m16", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "m16", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "m16")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , m16 );
|
|
setPlayerData ( weaponNew , m16 , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "m16", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "m16", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "m16", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "m16", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 104 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "m16") || getplayerdataanybooltrue("camoNew", "m16") || getplayerdataanybooltrue("attachmentNew", "m16")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 104 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("m16") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_masada"
|
|
group "mw2_popup_button"
|
|
rect -64 124 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("masada"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("masada");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , masada , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "masada", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "masada", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "masada", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "masada", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "masada", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "masada", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "masada")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , masada );
|
|
setPlayerData ( weaponNew , masada , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "masada", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "masada", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "masada", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "masada", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 124 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "masada") || getplayerdataanybooltrue("camoNew", "masada") || getplayerdataanybooltrue("attachmentNew", "masada")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 124 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("masada") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_fn2000"
|
|
group "mw2_popup_button"
|
|
rect -64 144 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("fn2000"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("fn2000");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , fn2000 , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "fn2000")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , fn2000 );
|
|
setPlayerData ( weaponNew , fn2000 , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "fn2000", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "fn2000", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "fn2000", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "fn2000", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 144 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "fn2000") || getplayerdataanybooltrue("camoNew", "fn2000") || getplayerdataanybooltrue("attachmentNew", "fn2000")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 144 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("fn2000") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_ak47"
|
|
group "mw2_popup_button"
|
|
rect -64 164 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("ak47"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("ak47");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , ak47 , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "ak47")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , ak47 );
|
|
setPlayerData ( weaponNew , ak47 , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "ak47", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "ak47", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "ak47", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "ak47", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 164 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "ak47") || getplayerdataanybooltrue("camoNew", "ak47") || getplayerdataanybooltrue("attachmentNew", "ak47")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 164 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("ak47") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_weapon_ak47classic"
|
|
group "mw2_popup_button"
|
|
rect -64 184 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("ak47classic"));
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
textfont 3
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
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 ("ak47classic");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool ui_popupAButton (0);
|
|
setPlayerData ( weaponNew , ak47classic , false );
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (localvarint("ui_tabDepth") == 0)
|
|
{
|
|
setLocalVarString ui_tab1Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 1)
|
|
{
|
|
setLocalVarString ui_tab2Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 2)
|
|
{
|
|
setLocalVarString ui_tab3Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 3)
|
|
{
|
|
setLocalVarString ui_tab4Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 4)
|
|
{
|
|
setLocalVarString ui_tab5Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3));
|
|
}
|
|
if (localvarint("ui_tabDepth") == 5)
|
|
{
|
|
setLocalVarString ui_tab6Name ("@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3));
|
|
}
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "ak47classic")
|
|
{
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none );
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none );
|
|
}
|
|
setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , ak47classic );
|
|
setPlayerData ( weaponNew , ak47classic , false );
|
|
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"));
|
|
if (0 == 0)
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "ak47classic", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling")
|
|
{
|
|
open popup_primary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_primary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
open popup_cac_primary_camo;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ((tablelookup("mp/statsTable.csv", 4, "ak47classic", 11) != ""))
|
|
{
|
|
if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling" && isitemunlocked("specialty_secondarybling"))
|
|
{
|
|
open popup_secondary_attachments_bling;
|
|
}
|
|
else
|
|
{
|
|
open popup_secondary_attachments;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
execKeyInt 168
|
|
{
|
|
if ((tablelookup("mp/challengeTable.csv", 6, "ak47classic", 4)) != "")
|
|
{
|
|
setLocalVarString ui_challengeTierTable (tablelookup("mp/challengeTable.csv", 6, "ak47classic", 4));
|
|
open menu_challenge_details;
|
|
}
|
|
}
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 184 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("weaponNew", "ak47classic") || getplayerdataanybooltrue("camoNew", "ak47classic") || getplayerdataanybooltrue("attachmentNew", "ak47classic")));
|
|
textscale 0.55
|
|
background "specialty_new"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 184 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((isitemunlocked("ak47classic") == 0));
|
|
textscale 0.55
|
|
background "specialty_locked"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 204 2 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
forecolor 1 1 1 0.5
|
|
background "small_box_lightfx"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 184 2 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 9
|
|
exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 3);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 10 200 100 2 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
exp material tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 6);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 184 2 1
|
|
decoration
|
|
autowrapped
|
|
visible when(isitemunlocked(localvarstring("ui_selected_ref")));
|
|
textalign 4
|
|
textalignx 4
|
|
textaligny 104
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@" + tablelookup("mp/statstable.csv", 4, localvarstring("ui_selected_ref"), 7);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 184 2 1
|
|
decoration
|
|
autowrapped
|
|
visible when(!isitemunlocked(localvarstring("ui_selected_ref")));
|
|
textalign 4
|
|
textalignx 4
|
|
textaligny 104
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_selected_ref"), 2), 17);
|
|
}
|
|
itemDef
|
|
{
|
|
text "@PLATFORM_VIEW_CHALLENGES"
|
|
rect -56 0 200 184 2 1
|
|
decoration
|
|
autowrapped
|
|
visible when(isitemunlocked(localvarstring("ui_selected_ref")) && (tablelookup("mp/challengeTable.csv", 6, localvarstring("ui_selected_ref"), 4)) != "");
|
|
textalign 4
|
|
textalignx 4
|
|
textaligny 144
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
}
|
|
itemDef
|
|
{
|
|
text "@MPUI_ACCURACY"
|
|
rect -128 22 120 4 3 1
|
|
style 1
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1);
|
|
textalign 6
|
|
textaligny -20
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 1
|
|
forecolor 1 1 1 0.65
|
|
background "gradient_fadein"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 22 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1);
|
|
textscale 0.55
|
|
forecolor 0.75 1 0.7 0.85
|
|
background "white"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 22 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1);
|
|
textscale 0.55
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "gradient_fadein"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 22 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1);
|
|
textscale 0.55
|
|
forecolor 1 1 0.25 0.65
|
|
background "white"
|
|
exp rect x - 64 + (0 - 120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)) + ((0 - 120 * (0 / 100)) * (0 < 0));
|
|
exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)) * 120);
|
|
exp forecolor r (0 < 0) * 0.45 + 0.25;
|
|
exp forecolor g (0 > 0) * 0.45 + 0.25;
|
|
}
|
|
itemDef
|
|
{
|
|
text "@MPUI_DAMAGE"
|
|
rect -128 48 120 4 3 1
|
|
style 1
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1);
|
|
textalign 6
|
|
textaligny -20
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 1
|
|
forecolor 1 1 1 0.65
|
|
background "gradient_fadein"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 48 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1);
|
|
textscale 0.55
|
|
forecolor 0.75 1 0.7 0.85
|
|
background "white"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 48 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1);
|
|
textscale 0.55
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "gradient_fadein"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 48 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1);
|
|
textscale 0.55
|
|
forecolor 1 1 0.25 0.65
|
|
background "white"
|
|
exp rect x - 64 + (0 - 120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)) + ((0 - 120 * (0 / 100)) * (0 < 0));
|
|
exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)) * 120);
|
|
exp forecolor r (0 < 0) * 0.45 + 0.25;
|
|
exp forecolor g (0 > 0) * 0.45 + 0.25;
|
|
}
|
|
itemDef
|
|
{
|
|
text "@MPUI_RANGE"
|
|
rect -128 74 120 4 3 1
|
|
style 1
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1);
|
|
textalign 6
|
|
textaligny -20
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 1
|
|
forecolor 1 1 1 0.65
|
|
background "gradient_fadein"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 74 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1);
|
|
textscale 0.55
|
|
forecolor 0.75 1 0.7 0.85
|
|
background "white"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 74 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1);
|
|
textscale 0.55
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "gradient_fadein"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 74 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1);
|
|
textscale 0.55
|
|
forecolor 1 1 0.25 0.65
|
|
background "white"
|
|
exp rect x - 64 + (0 - 120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)) + ((0 - 120 * (0 / 100)) * (0 < 0));
|
|
exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)) * 120);
|
|
exp forecolor r (0 < 0) * 0.45 + 0.25;
|
|
exp forecolor g (0 > 0) * 0.45 + 0.25;
|
|
}
|
|
itemDef
|
|
{
|
|
text "@MPUI_FIRE_RATE"
|
|
rect -128 100 120 4 3 1
|
|
style 1
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1);
|
|
textalign 6
|
|
textaligny -20
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 1
|
|
forecolor 1 1 1 0.65
|
|
background "gradient_fadein"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 100 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1);
|
|
textscale 0.55
|
|
forecolor 0.75 1 0.7 0.85
|
|
background "white"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 100 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1);
|
|
textscale 0.55
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "gradient_fadein"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 100 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1);
|
|
textscale 0.55
|
|
forecolor 1 1 0.25 0.65
|
|
background "white"
|
|
exp rect x - 64 + (0 - 120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)) + ((0 - 120 * (0 / 100)) * (0 < 0));
|
|
exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)) * 120);
|
|
exp forecolor r (0 < 0) * 0.45 + 0.25;
|
|
exp forecolor g (0 > 0) * 0.45 + 0.25;
|
|
}
|
|
itemDef
|
|
{
|
|
text "@MPUI_MOBILITY"
|
|
rect -128 126 120 4 3 1
|
|
style 1
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1);
|
|
textalign 6
|
|
textaligny -20
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 1
|
|
forecolor 1 1 1 0.65
|
|
background "gradient_fadein"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 126 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1);
|
|
textscale 0.55
|
|
forecolor 0.75 1 0.7 0.85
|
|
background "white"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 126 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1);
|
|
textscale 0.55
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "gradient_fadein"
|
|
exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -128 126 120 2 3 1
|
|
style 3
|
|
decoration
|
|
visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1);
|
|
textscale 0.55
|
|
forecolor 1 1 0.25 0.65
|
|
background "white"
|
|
exp rect x - 64 + (0 - 120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)) + ((0 - 120 * (0 / 100)) * (0 < 0));
|
|
exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)) * 120);
|
|
exp forecolor r (0 < 0) * 0.45 + 0.25;
|
|
exp forecolor g (0 > 0) * 0.45 + 0.25;
|
|
}
|
|
}
|
|
}
|