////////////////////////////////
//  	  Save Data  	     //
//////////////////////////////

// Save Progress
server int teamcoop_saveprogress;
server int teamcoop_magicsaveprogress;

server int teamcoop_copydefeat1;
server int teamcoop_copydefeat2;
server int teamcoop_copydefeat3;
server int teamcoop_enkerdefeat;
server int teamcoop_punkdefeat;
server int teamcoop_balladedefeat;
server int teamcoop_capsuledefeat;
server int teamcoop_policedefeat;
server int teamcoop_quintdefeat;
 
server int teamcoop_basschallenged;
server int teamcoop_memorymachineintroduction;
server int teamcoop_magicsaveintroduction;

server int teamcoop_gauntletflawless;
server int teamcoop_bossrushclear;

server int teamcoop_lettersgot1;
server int teamcoop_lettersread1;

// Training

server int teamcoop_trainingweaponno = 0;
server int teamcoop_trainingitemno = 0;
server int teamcoop_trainingbotweaponno = 0;
server int teamcoop_trainingarenano = 0;
server int teamcoop_trainingbotaino = 2;
server int teamcoop_trainingvirusno;

user noarchive string teamcoop_trainingweapon = "";

// Boss Unlock Values
server noarchive int teamcoop_copyunlock = 0;
server noarchive int teamcoop_devilunlock = 0;
server noarchive int teamcoop_dozerunlock = 0;
server noarchive int teamcoop_docrobotunlock = 0;
server noarchive int teamcoop_metdadunlock = 0;
server noarchive int teamcoop_gammaunlock = 0;
server noarchive int teamcoop_darkmanunlock = 0;
server noarchive int teamcoop_bassunlock = 0;
server noarchive int teamcoop_duounlock = 0;
server noarchive int teamcoop_evilrobotunlock = 0;
server noarchive int teamcoop_kingunlock = 0;
server noarchive int teamcoop_busterrodgunlock = 0;
server noarchive int teamcoop_megawatersunlock = 0;
server noarchive int teamcoop_hyperstormhunlock = 0;
server noarchive int teamcoop_genesisunlock = 0;
server noarchive int teamcoop_protomanunlock = 0;
server noarchive int teamcoop_9wilyunlock = 0;
server noarchive int teamcoop_templeunlock = 0;

// Secret Bosses

server noarchive int teamcoop_enkerunlock = 0;
server noarchive int teamcoop_punkunlock = 0;
server noarchive int teamcoop_balladeunlock = 0;
server noarchive int teamcoop_wilycapsuleunlock = 0;
server noarchive int teamcoop_paradoxunlock = 0;

server noarchive int teamcoop_policeenabled = 0;

// Misc values

server noarchive int teamcoop_chapter = 0;
server noarchive int teamcoop_bossrush = 0;
server noarchive int teamcoop_bossrushlives = 0;
server noarchive int teamcoop_memorymachine = 0;
server noarchive int teamcoop_tv = 0;
server noarchive int teamcoop_labcutscene = 0;
server noarchive int teamcoop_saveglobalflag = 0;
server noarchive int teamcoop_unkownnext = 0;

// 10 Chapter Bosses
server int teamcoop_archiveunlock; 
server int teamcoop_wilygolemunlock;

// V Chapter Bosses
server int teamcoop_terraunlock; 
server int teamcoop_sunstarunlock; 
server int teamcoop_eclipseunlock; 

// V Chapter Progress 
server int teamcoop_mmvsaveprogress;
server int teamcoop_artifactprogress;
server int teamcoop_spaceship;

// V Chapter Weapons
server int teamcoop_mm1weapons;
server int teamcoop_mm2weapons;
server int teamcoop_mm3weapons;
server int teamcoop_mm4weapons;
server int teamcoop_mm5weapons;
server int teamcoop_mm6weapons;
server int teamcoop_mm7weapons;
server int teamcoop_mm8weapons;
server int teamcoop_mmbweapons;
server int teamcoop_mm9weapons;
server int teamcoop_mm10weapons;
server int teamcoop_mmvweapons;
server int teamcoop_miscweapons;

user int teamcoop_mm1weapons_disabled;
user int teamcoop_mm2weapons_disabled;
user int teamcoop_mm3weapons_disabled;
user int teamcoop_mm4weapons_disabled;
user int teamcoop_mm5weapons_disabled;
user int teamcoop_mm6weapons_disabled;
user int teamcoop_mm7weapons_disabled;
user int teamcoop_mm8weapons_disabled;
user int teamcoop_mmbweapons_disabled;
user int teamcoop_mm9weapons_disabled;
user int teamcoop_mm10weapons_disabled;
user int teamcoop_mmvweapons_disabled;
user int teamcoop_miscweapons_disabled;


server int teamcoop_shopweaponslot1;
server int teamcoop_shopweaponslot2;
server int teamcoop_shopweaponslot3;
server int teamcoop_shopweaponslot4;
server int teamcoop_shopweaponslot5;

server int teamcoop_screwcount;
server int teamcoop_mmvmagicman;

// V Misc Progress
server bool teamcoop_shopstocked;
server int teamcoop_rushsearch;
server int teamcoop_mmvlastlocation;
server int teamcoop_templeprogress;

// Team Cooperative Cutscene Variables
server int teamcoop_mm7_player; // mm7 intro player
server int teamcoop_mmv_player; // spaceship intro player
server int teamcoop_mm8bdm_player; // ending player

// Team Cooperative Miscellaneous Variables
server int teamcoop_infectionlevel; // roboenza level - 0 (affect enemy team), 1 (affect everyone)
server noarchive bool teamcoop_checkcvars; // setup cvars on startup

// Team Cooperative String Placeholders
server string teamcoop_teamname = "Mystery Numbers"; // team name
server noarchive string teamcoop_var1 = ""; // variable 1
server noarchive string teamcoop_var2 = ""; // variable 2
server noarchive string teamcoop_var3 = ""; // variable 3
server noarchive string teamcoop_var4 = ""; // variable 4

// Team Cooperative User Variables
user int teamcoop_player_trainingweaponno = 0;
user int teamcoop_player_trainingitemno = 0;
user string teamcoop_player_teamname = "Mystery Numbers";
user int teamcoop_leadernamepos = 0;
user float teamcoop_allytransparency = 0.7;