/*************************************************
 * Decompiled by Serious and Edited by SyndiShanX
 * Script: mp\teams\_teamset_allies.gsc
*************************************************/

#using scripts\codescripts\struct;
#using scripts\mp\teams\_teamset;
#namespace _teamset_allies;

function main() {
  init("free");
  foreach(team in level.teams) {
    if(team == "axis") {
      continue;
    }
    init(team);
  }
  _teamset::customteam_init();
  precache();
}

function init(team) {
  _teamset::init();
  game[team] = "allies";
  game["attackers"] = team;
  game["entity_headicon_" + team] = "faction_allies";
  game["headicon_" + team] = "faction_allies";
  level.teamprefix[team] = "vox_st";
  level.teampostfix[team] = "st6";
  setDvar("g_TeamName_" + team, &"MPUI_ALLIES_SHORT");
  setDvar("g_FactionName_" + team, "allies");
  game["strings"][team + "_win"] = &"MP_BLACK_OPS_WIN_MATCH";
  game["strings"][team + "_win_round"] = &"MP_BLACK_OPS_WIN_ROUND";
  game["strings"][team + "_mission_accomplished"] = &"MP_BLACK_OPS_MISSION_ACCOMPLISHED";
  game["strings"][team + "_eliminated"] = &"MP_BLACK_OPS_ELIMINATED";
  game["strings"][team + "_forfeited"] = &"MP_BLACK_OPS_FORFEITED";
  game["strings"][team + "_name"] = &"MP_BLACK_OPS_NAME";
  game["music"]["spawn_" + team] = "SPAWN_ST6";
  game["music"]["spawn_short" + team] = "SPAWN_SHORT_ST6";
  game["music"]["victory_" + team] = "VICTORY_ST6";
  game["icons"][team] = "faction_allies";
  game["voice"][team] = "vox_st6_";
  setDvar("scr_" + team, "marines");
  level.heli_vo[team]["hit"] = "vox_ops_2_kls_attackheli_hit";
  game["flagmodels"][team] = "p7_mp_flag_allies";
  game["carry_flagmodels"][team] = "p7_mp_flag_allies_carry";
  game["flagmodels"]["neutral"] = "p7_mp_flag_neutral";
}

function precache() {}