// T6 GSC SOURCE
// Decompiled by https://github.com/xensik/gsc-tool
#include maps\mp\teams\_teamset;
#include mpbody\class_assault_usa_fbi;
#include mpbody\class_lmg_usa_fbi;
#include mpbody\class_shotgun_usa_fbi;
#include mpbody\class_smg_usa_fbi;
#include mpbody\class_sniper_usa_fbi;

main()
{
    init( "allies" );
    maps\mp\teams\_teamset::customteam_init();
    precache();
}

init( team )
{
    maps\mp\teams\_teamset::init();
    game[team] = "fbi";
    game["attackers"] = team;
    precacheshader( "faction_fbi" );
    game["entity_headicon_" + team] = "faction_fbi";
    game["headicon_" + team] = "faction_fbi";
    level.teamprefix[team] = "vox_hr";
    level.teampostfix[team] = "hrt";
    setdvar( "g_TeamName_" + team, &"MPUI_FBI_SHORT" );
    setdvar( "g_TeamColor_" + team, "0.6 0.64 0.69" );
    setdvar( "g_ScoresColor_" + team, "0.6 0.64 0.69" );
    setdvar( "g_FactionName_" + team, "usa_fbi" );
    game["strings"][team + "_win"] = &"MP_FBI_WIN_MATCH";
    game["strings"][team + "_win_round"] = &"MP_FBI_WIN_ROUND";
    game["strings"][team + "_mission_accomplished"] = &"MP_FBI_MISSION_ACCOMPLISHED";
    game["strings"][team + "_eliminated"] = &"MP_FBI_ELIMINATED";
    game["strings"][team + "_forfeited"] = &"MP_FBI_FORFEITED";
    game["strings"][team + "_name"] = &"MP_FBI_NAME";
    game["music"]["spawn_" + team] = "SPAWN_FBI";
    game["music"]["spawn_short" + team] = "SPAWN_SHORT_FBI";
    game["music"]["victory_" + team] = "VICTORY_FBI";
    game["icons"][team] = "faction_fbi";
    game["voice"][team] = "vox_fbi_";
    setdvar( "scr_" + team, "marines" );
    level.heli_vo[team]["hit"] = "vox_ops_2_kls_attackheli_hit";
    game["flagmodels"][team] = "mp_flag_allies_2";
    game["carry_flagmodels"][team] = "mp_flag_allies_2_carry";
    game["carry_icon"][team] = "hudicon_marines_ctf_flag_carry";
}

precache()
{
    mpbody\class_assault_usa_fbi::precache();
    mpbody\class_lmg_usa_fbi::precache();
    mpbody\class_shotgun_usa_fbi::precache();
    mpbody\class_smg_usa_fbi::precache();
    mpbody\class_sniper_usa_fbi::precache();
}
