1909 lines
115 KiB
Plaintext
1909 lines
115 KiB
Plaintext
/*********************************************************
|
|
***************** Dumped by aerosoul94 *******************
|
|
*********************************************************/
|
|
|
|
{
|
|
menuDef
|
|
{
|
|
name "popup_cac_equipment"
|
|
rect -64 0 854 164 1 1
|
|
popup
|
|
outOfBoundsClick
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 1 1 1 1
|
|
background "white"
|
|
focuscolor 1 1 1 1
|
|
fadeCycle 1
|
|
fadeClamp 1
|
|
fadeAmount 0.1
|
|
allowedBinding "+talk"
|
|
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_equipment_tabDepth" ) )
|
|
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
|
|
onOpen
|
|
{
|
|
focusfirst;
|
|
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 );
|
|
setLocalVarInt "ui_popup_cac_equipment_tabDepth" ( localvarint( "ui_tabDepth" ) );
|
|
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "frag_grenade_mp" )
|
|
{
|
|
setfocus "cac_perk_frag_grenade_mp";
|
|
}
|
|
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "semtex_mp" )
|
|
{
|
|
setfocus "cac_perk_semtex_mp";
|
|
}
|
|
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "throwingknife_mp" )
|
|
{
|
|
setfocus "cac_perk_throwingknife_mp";
|
|
}
|
|
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_tacticalinsertion" )
|
|
{
|
|
setfocus "cac_perk_specialty_tacticalinsertion";
|
|
}
|
|
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_blastshield" )
|
|
{
|
|
setfocus "cac_perk_specialty_blastshield";
|
|
}
|
|
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "claymore_mp" )
|
|
{
|
|
setfocus "cac_perk_claymore_mp";
|
|
}
|
|
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "c4_mp" )
|
|
{
|
|
setfocus "cac_perk_c4_mp";
|
|
}
|
|
}
|
|
onRequestClose
|
|
{
|
|
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 );
|
|
}
|
|
onEsc
|
|
{
|
|
close self;
|
|
}
|
|
itemDef
|
|
{
|
|
rect -918 -480 1708 960 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
textscale 0.55
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -918 -480 1708 960 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 1 1 1 1
|
|
background "xpbar_stencilbase"
|
|
textscale 0.55
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 164 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0.5 0.5 0.5 1
|
|
background "white"
|
|
textscale 0.55
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 1708 480 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 0.75
|
|
background "mw2_popup_bg_fogstencil"
|
|
textscale 0.55
|
|
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 -1708 -480 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "mw2_popup_bg_fogscroll"
|
|
textscale 0.55
|
|
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 0 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "mockup_popup_bg_stencilfill"
|
|
textscale 0.55
|
|
exp rect h ( ( 24 + 7 * 20 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 -1708 -480 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 0.75
|
|
background "mw2_popup_bg_fogstencil"
|
|
textscale 0.55
|
|
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 -1708 -480 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0.85 0.85 0.85 1
|
|
background "mw2_popup_bg_fogscroll"
|
|
textscale 0.55
|
|
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 0 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 0
|
|
background "small_box_lightfx"
|
|
textscale 0.55
|
|
exp rect h ( ( 24 + 7 * 20 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -96 -32 32 32 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_tl"
|
|
textscale 0.55
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 -32 854 32 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_t"
|
|
textscale 0.55
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 790 -32 32 32 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_tr"
|
|
textscale 0.55
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 790 0 32 0 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_r"
|
|
textscale 0.55
|
|
exp rect h ( ( 24 + 7 * 20 ) )
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 790 0 32 32 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_br"
|
|
textscale 0.55
|
|
exp rect y ( ( 0 - 0 ) + ( ( 24 + 7 * 20 ) ) )
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 854 32 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_b"
|
|
textscale 0.55
|
|
exp rect y ( ( 0 - 0 ) + ( ( 24 + 7 * 20 ) ) )
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -96 0 32 32 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_bl"
|
|
textscale 0.55
|
|
exp rect y ( ( 0 - 0 ) + ( ( 24 + 7 * 20 ) ) )
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -96 0 32 0 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 0 0 0 1
|
|
background "drop_shadow_l"
|
|
textscale 0.55
|
|
exp rect h ( ( 24 + 7 * 20 ) )
|
|
visible when ( !localvarint( "ui_centerPopup" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 164 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 1 1 1 0
|
|
background "gradient_fadein"
|
|
textscale 0.55
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
textscale 0.55
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 1 ) * 20 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 1 - 1 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
textfont 9
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 1 ) * 20 ) )
|
|
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) )
|
|
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) )
|
|
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 1 - 1 ) )
|
|
exp text ( localvarstring( "ui_tab1Name" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
textscale 0.55
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 2 ) * 20 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 2 - 1 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
textfont 9
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 2 ) * 20 ) )
|
|
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) )
|
|
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) )
|
|
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 2 - 1 ) )
|
|
exp text ( localvarstring( "ui_tab2Name" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
textscale 0.55
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 3 ) * 20 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 3 - 1 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
textfont 9
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 3 ) * 20 ) )
|
|
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) )
|
|
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) )
|
|
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 3 - 1 ) )
|
|
exp text ( localvarstring( "ui_tab3Name" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
textscale 0.55
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 4 ) * 20 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 4 - 1 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
textfont 9
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 4 ) * 20 ) )
|
|
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) )
|
|
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) )
|
|
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 4 - 1 ) )
|
|
exp text ( localvarstring( "ui_tab4Name" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0.25 0.25 0.25 1
|
|
background "white"
|
|
textscale 0.55
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 5 ) * 20 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 5 - 1 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -64 0 280 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
backcolor 0 0 0 1
|
|
background "gradient_fadein"
|
|
textfont 9
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 5 ) * 20 ) )
|
|
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) )
|
|
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) )
|
|
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) )
|
|
visible when ( localvarint( "ui_tabDepth" ) > ( 5 - 1 ) )
|
|
exp text ( localvarstring( "ui_tab5Name" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_perk_frag_grenade_mp"
|
|
rect -64 4 336 20 1 1
|
|
visible 1
|
|
group "mw2_popup_button"
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
type 1
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
disabled when ( !isitemunlocked( "frag_grenade_mp" ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , "frag_grenade_mp" , 2 ) )
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
setPlayerData( "perkNew" , "frag_grenade_mp" , "false" );
|
|
if ( "frag_grenade_mp" != "specialty_bling" )
|
|
{
|
|
close self;
|
|
}
|
|
if ( 0 == 1 && "frag_grenade_mp" != "specialty_bling" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
}
|
|
if ( 0 == 1 && "frag_grenade_mp" == "specialty_onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "onemanarmy" );
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
|
|
}
|
|
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
|
|
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
|
|
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
|
|
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
|
|
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
|
|
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
|
|
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
|
|
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
|
|
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
|
|
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
|
|
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
|
|
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
|
|
}
|
|
if ( 0 == 1 && "frag_grenade_mp" != "specialty_onemanarmy" && getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "glock" );
|
|
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 == 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "frag_grenade_mp" );
|
|
}
|
|
if ( 0 != 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "frag_grenade_mp" );
|
|
}
|
|
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" ) );
|
|
}
|
|
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" ( "frag_grenade_mp" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "frag_grenade_mp" , 8 ) );
|
|
setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) );
|
|
setLocalVarString "ui_challenge_state" ( 1 );
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_2" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 2 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_3" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 3 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_4" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 4 );
|
|
}
|
|
setLocalVarString "ui_challengeName" ( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) );
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool "ui_popupAButton" ( 0 );
|
|
setPlayerData( "perkNew" , "frag_grenade_mp" , "false" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "frag_grenade_mp" , 8 ) );
|
|
setPlayerData( "perkNew" , "localVarString" ( "ui_upgrade_ref" ) , "false" );
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 4 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_new"
|
|
textscale 0.55
|
|
visible when ( ( getplayerdata( "perkNew" , "frag_grenade_mp" ) || getplayerdata( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "frag_grenade_mp" , 8 ) ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 4 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_locked"
|
|
textscale 0.55
|
|
visible when ( !isitemunlocked( "frag_grenade_mp" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_perk_semtex_mp"
|
|
rect -64 24 336 20 1 1
|
|
visible 1
|
|
group "mw2_popup_button"
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
type 1
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
disabled when ( !isitemunlocked( "semtex_mp" ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , "semtex_mp" , 2 ) )
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
setPlayerData( "perkNew" , "semtex_mp" , "false" );
|
|
if ( "semtex_mp" != "specialty_bling" )
|
|
{
|
|
close self;
|
|
}
|
|
if ( 0 == 1 && "semtex_mp" != "specialty_bling" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
}
|
|
if ( 0 == 1 && "semtex_mp" == "specialty_onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "onemanarmy" );
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
|
|
}
|
|
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
|
|
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
|
|
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
|
|
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
|
|
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
|
|
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
|
|
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
|
|
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
|
|
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
|
|
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
|
|
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
|
|
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
|
|
}
|
|
if ( 0 == 1 && "semtex_mp" != "specialty_onemanarmy" && getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "glock" );
|
|
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 == 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "semtex_mp" );
|
|
}
|
|
if ( 0 != 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "semtex_mp" );
|
|
}
|
|
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" ) );
|
|
}
|
|
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" ( "semtex_mp" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "semtex_mp" , 8 ) );
|
|
setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) );
|
|
setLocalVarString "ui_challenge_state" ( 1 );
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_2" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 2 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_3" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 3 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_4" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 4 );
|
|
}
|
|
setLocalVarString "ui_challengeName" ( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) );
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool "ui_popupAButton" ( 0 );
|
|
setPlayerData( "perkNew" , "semtex_mp" , "false" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "semtex_mp" , 8 ) );
|
|
setPlayerData( "perkNew" , "localVarString" ( "ui_upgrade_ref" ) , "false" );
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 24 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_new"
|
|
textscale 0.55
|
|
visible when ( ( getplayerdata( "perkNew" , "semtex_mp" ) || getplayerdata( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "semtex_mp" , 8 ) ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 24 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_locked"
|
|
textscale 0.55
|
|
visible when ( !isitemunlocked( "semtex_mp" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_perk_throwingknife_mp"
|
|
rect -64 44 336 20 1 1
|
|
visible 1
|
|
group "mw2_popup_button"
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
type 1
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
disabled when ( !isitemunlocked( "throwingknife_mp" ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , "throwingknife_mp" , 2 ) )
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
setPlayerData( "perkNew" , "throwingknife_mp" , "false" );
|
|
if ( "throwingknife_mp" != "specialty_bling" )
|
|
{
|
|
close self;
|
|
}
|
|
if ( 0 == 1 && "throwingknife_mp" != "specialty_bling" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
}
|
|
if ( 0 == 1 && "throwingknife_mp" == "specialty_onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "onemanarmy" );
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
|
|
}
|
|
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
|
|
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
|
|
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
|
|
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
|
|
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
|
|
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
|
|
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
|
|
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
|
|
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
|
|
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
|
|
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
|
|
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
|
|
}
|
|
if ( 0 == 1 && "throwingknife_mp" != "specialty_onemanarmy" && getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "glock" );
|
|
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 == 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "throwingknife_mp" );
|
|
}
|
|
if ( 0 != 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "throwingknife_mp" );
|
|
}
|
|
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" ) );
|
|
}
|
|
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" ( "throwingknife_mp" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "throwingknife_mp" , 8 ) );
|
|
setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) );
|
|
setLocalVarString "ui_challenge_state" ( 1 );
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_2" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 2 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_3" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 3 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_4" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 4 );
|
|
}
|
|
setLocalVarString "ui_challengeName" ( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) );
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool "ui_popupAButton" ( 0 );
|
|
setPlayerData( "perkNew" , "throwingknife_mp" , "false" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "throwingknife_mp" , 8 ) );
|
|
setPlayerData( "perkNew" , "localVarString" ( "ui_upgrade_ref" ) , "false" );
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 44 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_new"
|
|
textscale 0.55
|
|
visible when ( ( getplayerdata( "perkNew" , "throwingknife_mp" ) || getplayerdata( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "throwingknife_mp" , 8 ) ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 44 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_locked"
|
|
textscale 0.55
|
|
visible when ( !isitemunlocked( "throwingknife_mp" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_perk_specialty_tacticalinsertion"
|
|
rect -64 64 336 20 1 1
|
|
visible 1
|
|
group "mw2_popup_button"
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
type 1
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
disabled when ( !isitemunlocked( "specialty_tacticalinsertion" ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , "specialty_tacticalinsertion" , 2 ) )
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
setPlayerData( "perkNew" , "specialty_tacticalinsertion" , "false" );
|
|
if ( "specialty_tacticalinsertion" != "specialty_bling" )
|
|
{
|
|
close self;
|
|
}
|
|
if ( 0 == 1 && "specialty_tacticalinsertion" != "specialty_bling" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
}
|
|
if ( 0 == 1 && "specialty_tacticalinsertion" == "specialty_onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "onemanarmy" );
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
|
|
}
|
|
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
|
|
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
|
|
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
|
|
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
|
|
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
|
|
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
|
|
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
|
|
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
|
|
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
|
|
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
|
|
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
|
|
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
|
|
}
|
|
if ( 0 == 1 && "specialty_tacticalinsertion" != "specialty_onemanarmy" && getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "glock" );
|
|
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 == 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "specialty_tacticalinsertion" );
|
|
}
|
|
if ( 0 != 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_tacticalinsertion" );
|
|
}
|
|
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" ) );
|
|
}
|
|
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" ( "specialty_tacticalinsertion" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "specialty_tacticalinsertion" , 8 ) );
|
|
setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) );
|
|
setLocalVarString "ui_challenge_state" ( 1 );
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_2" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 2 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_3" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 3 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_4" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 4 );
|
|
}
|
|
setLocalVarString "ui_challengeName" ( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) );
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool "ui_popupAButton" ( 0 );
|
|
setPlayerData( "perkNew" , "specialty_tacticalinsertion" , "false" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "specialty_tacticalinsertion" , 8 ) );
|
|
setPlayerData( "perkNew" , "localVarString" ( "ui_upgrade_ref" ) , "false" );
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 64 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_new"
|
|
textscale 0.55
|
|
visible when ( ( getplayerdata( "perkNew" , "specialty_tacticalinsertion" ) || getplayerdata( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "specialty_tacticalinsertion" , 8 ) ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 64 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_locked"
|
|
textscale 0.55
|
|
visible when ( !isitemunlocked( "specialty_tacticalinsertion" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_perk_specialty_blastshield"
|
|
rect -64 84 336 20 1 1
|
|
visible 1
|
|
group "mw2_popup_button"
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
type 1
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
disabled when ( !isitemunlocked( "specialty_blastshield" ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , "specialty_blastshield" , 2 ) )
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
setPlayerData( "perkNew" , "specialty_blastshield" , "false" );
|
|
if ( "specialty_blastshield" != "specialty_bling" )
|
|
{
|
|
close self;
|
|
}
|
|
if ( 0 == 1 && "specialty_blastshield" != "specialty_bling" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
}
|
|
if ( 0 == 1 && "specialty_blastshield" == "specialty_onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "onemanarmy" );
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
|
|
}
|
|
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
|
|
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
|
|
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
|
|
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
|
|
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
|
|
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
|
|
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
|
|
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
|
|
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
|
|
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
|
|
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
|
|
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
|
|
}
|
|
if ( 0 == 1 && "specialty_blastshield" != "specialty_onemanarmy" && getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "glock" );
|
|
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 == 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "specialty_blastshield" );
|
|
}
|
|
if ( 0 != 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_blastshield" );
|
|
}
|
|
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" ) );
|
|
}
|
|
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" ( "specialty_blastshield" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "specialty_blastshield" , 8 ) );
|
|
setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) );
|
|
setLocalVarString "ui_challenge_state" ( 1 );
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_2" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 2 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_3" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 3 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_4" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 4 );
|
|
}
|
|
setLocalVarString "ui_challengeName" ( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) );
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool "ui_popupAButton" ( 0 );
|
|
setPlayerData( "perkNew" , "specialty_blastshield" , "false" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "specialty_blastshield" , 8 ) );
|
|
setPlayerData( "perkNew" , "localVarString" ( "ui_upgrade_ref" ) , "false" );
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 84 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_new"
|
|
textscale 0.55
|
|
visible when ( ( getplayerdata( "perkNew" , "specialty_blastshield" ) || getplayerdata( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "specialty_blastshield" , 8 ) ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 84 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_locked"
|
|
textscale 0.55
|
|
visible when ( !isitemunlocked( "specialty_blastshield" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_perk_claymore_mp"
|
|
rect -64 104 336 20 1 1
|
|
visible 1
|
|
group "mw2_popup_button"
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
type 1
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
disabled when ( !isitemunlocked( "claymore_mp" ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , "claymore_mp" , 2 ) )
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
setPlayerData( "perkNew" , "claymore_mp" , "false" );
|
|
if ( "claymore_mp" != "specialty_bling" )
|
|
{
|
|
close self;
|
|
}
|
|
if ( 0 == 1 && "claymore_mp" != "specialty_bling" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
}
|
|
if ( 0 == 1 && "claymore_mp" == "specialty_onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "onemanarmy" );
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
|
|
}
|
|
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
|
|
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
|
|
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
|
|
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
|
|
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
|
|
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
|
|
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
|
|
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
|
|
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
|
|
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
|
|
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
|
|
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
|
|
}
|
|
if ( 0 == 1 && "claymore_mp" != "specialty_onemanarmy" && getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "glock" );
|
|
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 == 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "claymore_mp" );
|
|
}
|
|
if ( 0 != 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "claymore_mp" );
|
|
}
|
|
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" ) );
|
|
}
|
|
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" ( "claymore_mp" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "claymore_mp" , 8 ) );
|
|
setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) );
|
|
setLocalVarString "ui_challenge_state" ( 1 );
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_2" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 2 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_3" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 3 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_4" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 4 );
|
|
}
|
|
setLocalVarString "ui_challengeName" ( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) );
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool "ui_popupAButton" ( 0 );
|
|
setPlayerData( "perkNew" , "claymore_mp" , "false" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "claymore_mp" , 8 ) );
|
|
setPlayerData( "perkNew" , "localVarString" ( "ui_upgrade_ref" ) , "false" );
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 104 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_new"
|
|
textscale 0.55
|
|
visible when ( ( getplayerdata( "perkNew" , "claymore_mp" ) || getplayerdata( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "claymore_mp" , 8 ) ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 104 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_locked"
|
|
textscale 0.55
|
|
visible when ( !isitemunlocked( "claymore_mp" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
name "cac_perk_c4_mp"
|
|
rect -64 124 336 20 1 1
|
|
visible 1
|
|
group "mw2_popup_button"
|
|
style 1
|
|
forecolor 1 1 1 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "popup_button_selection_bar_short"
|
|
type 1
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 68
|
|
textscale 0.375
|
|
disabled when ( !isitemunlocked( "c4_mp" ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , "c4_mp" , 2 ) )
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
setPlayerData( "perkNew" , "c4_mp" , "false" );
|
|
if ( "c4_mp" != "specialty_bling" )
|
|
{
|
|
close self;
|
|
}
|
|
if ( 0 == 1 && "c4_mp" != "specialty_bling" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
}
|
|
if ( 0 == 1 && "c4_mp" == "specialty_onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "onemanarmy" );
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" );
|
|
; setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ) ;;
|
|
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
|
|
}
|
|
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
|
|
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
|
|
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
|
|
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
|
|
{
|
|
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
|
|
}
|
|
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
|
|
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
|
|
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
|
|
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
|
|
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
|
|
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
|
|
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
|
|
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
|
|
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
|
|
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
|
|
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
|
|
}
|
|
if ( 0 == 1 && "c4_mp" != "specialty_onemanarmy" && getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "onemanarmy" )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "glock" );
|
|
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 == 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "c4_mp" );
|
|
}
|
|
if ( 0 != 4 )
|
|
{
|
|
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "c4_mp" );
|
|
}
|
|
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" ) );
|
|
}
|
|
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" ( "c4_mp" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "c4_mp" , 8 ) );
|
|
setLocalVarString "ui_challenge_ref" ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) );
|
|
setLocalVarString "ui_challenge_state" ( 1 );
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_2" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 2 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_3" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 3 );
|
|
}
|
|
if ( ( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_upgrade_ref" ) , 3 ) ) == localvarstring( "ui_challenge_ref" ) + "_4" )
|
|
{
|
|
setLocalVarInt "ui_challenge_state" ( 4 );
|
|
}
|
|
setLocalVarString "ui_challengeName" ( "@" + tablelookup( "mp/allChallengesTable.csv" , 0 , localvarstring( "ui_challenge_ref" ) , 1 ) );
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 1 1 1 0;
|
|
setLocalVarBool "ui_popupAButton" ( 0 );
|
|
setPlayerData( "perkNew" , "c4_mp" , "false" );
|
|
setLocalVarString "ui_upgrade_ref" ( tablelookup( "mp/perkTable.csv" , 1 , "c4_mp" , 8 ) );
|
|
setPlayerData( "perkNew" , "localVarString" ( "ui_upgrade_ref" ) , "false" );
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 124 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_new"
|
|
textscale 0.55
|
|
visible when ( ( getplayerdata( "perkNew" , "c4_mp" ) || getplayerdata( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "c4_mp" , 8 ) ) ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect 162 124 40 20 1 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
background "specialty_locked"
|
|
textscale 0.55
|
|
visible when ( !isitemunlocked( "c4_mp" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 164 2 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 0.5
|
|
background "small_box_lightfx"
|
|
textscale 0.55
|
|
visible when ( !dvarbool( "wideScreen" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -136 0 360 164 2 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 0.5
|
|
background "small_box_lightfx"
|
|
textscale 0.55
|
|
visible when ( dvarbool( "wideScreen" ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 164 2 1
|
|
decoration
|
|
visible 1
|
|
forecolor 1 1 1 1
|
|
textfont 9
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 2 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 20 64 64 2 1
|
|
decoration
|
|
visible 1
|
|
style 3
|
|
forecolor 1 1 1 1
|
|
textscale 0.55
|
|
exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 3 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 164 2 1
|
|
decoration
|
|
autowrapped
|
|
visible 1
|
|
forecolor 1 1 1 0.65
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 4
|
|
textaligny 84
|
|
textscale 0.375
|
|
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
|
|
exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) )
|
|
}
|
|
itemDef
|
|
{
|
|
rect -56 0 200 164 2 1
|
|
decoration
|
|
autowrapped
|
|
visible 1
|
|
forecolor 1 1 1 0.65
|
|
textfont 3
|
|
textalign 4
|
|
textalignx 4
|
|
textaligny 84
|
|
textscale 0.375
|
|
visible when ( !isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
|
|
exp text ( "@" + tablelookup( "mp/rankTable.csv" , 0 , tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_selected_ref" ) , 2 ) , 17 ) )
|
|
}
|
|
}
|
|
} |