‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_teamset_allies.gsc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #insert scripts\shared\shared.gsh;
4 
5 #using scripts\mp\teams\_teamset;
6 
7 #define HEAD_ICON_ALLIES "faction_allies"
8 
9 #precache( "material", HEAD_ICON_ALLIES );
10 #precache( "string", "MP_BLACK_OPS_WIN_MATCH" );
11 #precache( "string", "MP_BLACK_OPS_WIN_ROUND" );
12 #precache( "string", "MP_BLACK_OPS_MISSION_ACCOMPLISHED" );
13 #precache( "string", "MP_BLACK_OPS_ELIMINATED" );
14 #precache( "string", "MP_BLACK_OPS_FORFEITED" );
15 #precache( "string", "MP_BLACK_OPS_NAME" );
16 
17 function ‪main()
18 {
19  ‪init( "free" );
20 
21  foreach( team in level.teams )
22  {
23  if ( team == "axis" )
24  continue;
25 
26  ‪init( team );
27  }
28 
30  ‪precache();
31 }
32 
33 function ‪init( team )
34 {
36 
37  game[team] = "allies";
38  game["attackers"] = team;
39 
40  // head icons
41  game["entity_headicon_" + team] = ‪HEAD_ICON_ALLIES;
42  game["headicon_" + team] = ‪HEAD_ICON_ALLIES;
43 
44  // battle chatter
45  level.teamPrefix[team] = "vox_st";
46  level.teamPostfix[team] = "st6";
47 
48  // scoreboard
49  SetDvar("g_TeamName_" + team, &"MPUI_ALLIES_SHORT");
50  //SetDvar("g_TeamColor_" + team, "0.6 0.64 0.69");
51  //SetDvar("g_ScoresColor_" + team, "0.6 0.64 0.69");
52  SetDvar("g_FactionName_" + team, "allies" );
53 
54  game["strings"][team + "_win"] = &"MP_BLACK_OPS_WIN_MATCH";
55  game["strings"][team + "_win_round"] = &"MP_BLACK_OPS_WIN_ROUND";
56  game["strings"][team + "_mission_accomplished"] = &"MP_BLACK_OPS_MISSION_ACCOMPLISHED";
57  game["strings"][team + "_eliminated"] = &"MP_BLACK_OPS_ELIMINATED";
58  game["strings"][team + "_forfeited"] = &"MP_BLACK_OPS_FORFEITED";
59  game["strings"][team + "_name"] = &"MP_BLACK_OPS_NAME";
60 
61  //Music
62  game["music"]["spawn_" + team] = "SPAWN_ST6";
63  game["music"]["spawn_short" + team] = "SPAWN_SHORT_ST6";
64  game["music"]["victory_" + team] = "VICTORY_ST6";
65 
66  game["icons"][team] = ‪HEAD_ICON_ALLIES;
67  game["voice"][team] = "vox_st6_";
68  SetDvar( "scr_" + team, "marines" );
69 
70  level.heli_vo[team]["hit"] = "vox_ops_2_kls_attackheli_hit";
71 
72  // flag assets
73  game["flagmodels"][team] = "p7_mp_flag_allies";
74  game["carry_flagmodels"][team] = "p7_mp_flag_allies_carry";
75  game["flagmodels"]["neutral"] = "p7_mp_flag_neutral";
76 }
77 
78 function ‪precache()
79 {
80 }
‪precache
‪function precache()
Definition: _teamset_allies.gsc:78
‪HEAD_ICON_ALLIES
‪#define HEAD_ICON_ALLIES
Definition: _teamset_allies.gsc:7
‪init
‪function init(team)
Definition: _teamset_allies.gsc:33
‪main
‪function main()
Definition: _teamset_allies.gsc:17
‪customteam_init
‪function customteam_init()
Definition: _teamset.gsc:26