IW4-Dump-Files/ui_mp/playerdataread.menu

1468 lines
175 KiB
Plaintext

/*********************************************************
***************** Dumped by aerosoul94 *******************
*********************************************************/
{
menuDef
{
name "playerdataread"
rect 0 0 0 0 0 0
decoration
forecolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
onOpen
{
setLocalVarInt "oldClassIndex" ( localvarint( "classIndex" ) );
setLocalVarInt "classIndex" ( 0 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 1 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 2 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 3 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 4 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 5 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 6 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 7 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 8 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( 9 );
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
setLocalVarInt "classIndex" ( localvarint( "oldClassIndex" ) );
if ( !isitemunlocked( getplayerdata( "killstreaks" , 0 ) ) && getplayerdata( "killstreaks" , 0 ) != "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Killstreak " + getplayerdata( "killstreaks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setPlayerData( "killstreaks" , 0 , "none" );
}
setPlayerData( "killstreakUnlocked" , "uav" , "true" );
if ( !isitemunlocked( getplayerdata( "killstreaks" , 1 ) ) && getplayerdata( "killstreaks" , 1 ) != "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Killstreak " + getplayerdata( "killstreaks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setPlayerData( "killstreaks" , 1 , "none" );
}
setPlayerData( "killstreakUnlocked" , "airdrop" , "true" );
if ( !isitemunlocked( getplayerdata( "killstreaks" , 2 ) ) && getplayerdata( "killstreaks" , 2 ) != "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Killstreak " + getplayerdata( "killstreaks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setPlayerData( "killstreaks" , 2 , "none" );
}
setPlayerData( "killstreakUnlocked" , "predator_missile" , "true" );
setLocalVarInt "ui_tempVar" ( getplayerdata( "prestige" ) + 1 );
setPlayerData( "challengeState" , "ch_prestige" , "localVarInt" ( "ui_tempVar" ) );
setLocalVarInt "ui_tempVar" ( getplayerdata( "prestige" ) );
setPlayerData( "challengeProgress" , "ch_prestige" , "localVarInt" ( "ui_tempVar" ) );
if ( getplayerdata( "prestige" ) == 10 )
{
setPlayerData( "challengeState" , "ch_prestige_10" , 2 ) setPlayerData( "challengeProgress" , "ch_prestige_10" , 1 );
}
close self;
}
}
}