‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_teamset_axis.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_AXIS "faction_axis"
8 
9 #precache( "material", HEAD_ICON_AXIS );
10 #precache( "string", "MP_CDP_WIN_MATCH" );
11 #precache( "string", "MP_CDP_WIN_ROUND" );
12 #precache( "string", "MP_CDP_MISSION_ACCOMPLISHED" );
13 #precache( "string", "MP_CDP_ELIMINATED" );
14 #precache( "string", "MP_CDP_FORFEITED" );
15 #precache( "string", "MP_CDP_NAME" );
16 
17 function ‪main()
18 {
19  ‪init( "axis" );
20 
22  ‪precache();
23 }
24 
25 function ‪init( team )
26 {
28 
29  game[team] = "axis";
30  game["defenders"] = team;
31 
32  // head icons
33  game["entity_headicon_" + team] = ‪HEAD_ICON_AXIS;
34  game["headicon_" + team] = ‪HEAD_ICON_AXIS;
35 
36  // battle chatter
37  level.teamPrefix[team] = "vox_pm";
38  level.teamPostfix[team] = "axis";
39 
40  // scoreboard
41  SetDvar("g_TeamName_" + team, &"MPUI_AXIS_SHORT");
42  //SetDvar("g_TeamColor_" + team, "0.65 0.57 0.41");
43  //SetDvar("g_ScoresColor_" + team, "0.65 0.57 0.41");
44  SetDvar("g_FactionName_" + team, "axis" );
45 
46  game["strings"][team + "_win"] = &"MP_CDP_WIN_MATCH";
47  game["strings"][team + "_win_round"] = &"MP_CDP_WIN_ROUND";
48  game["strings"][team + "_mission_accomplished"] = &"MP_CDP_MISSION_ACCOMPLISHED";
49  game["strings"][team + "_eliminated"] = &"MP_CDP_ELIMINATED";
50  game["strings"][team + "_forfeited"] = &"MP_CDP_FORFEITED";
51  game["strings"][team + "_name"] = &"MP_CDP_NAME";
52 
53  game["music"]["spawn_" + team] = "SPAWN_PMC";
54  game["music"]["spawn_short" + team] = "SPAWN_SHORT_PMC";
55  game["music"]["victory_" + team] = "VICTORY_PMC";
56  game["icons"][team] = ‪HEAD_ICON_AXIS;
57  game["voice"][team] = "vox_pmc_";
58  SetDvar( "scr_" + team, "ussr" );
59 
60  level.heli_vo[team]["hit"] = "vox_rus_0_kls_attackheli_hit";
61 
62  // flag assets
63  game["flagmodels"][team] = "p7_mp_flag_axis";
64  game["carry_flagmodels"][team] = "p7_mp_flag_axis_carry";
65  game["flagmodels"]["neutral"] = "p7_mp_flag_neutral";
66 }
67 
68 function ‪precache()
69 {
70 }
‪precache
‪function precache()
Definition: _teamset_axis.gsc:68
‪customteam_init
‪function customteam_init()
Definition: _teamset.gsc:26
‪main
‪function main()
Definition: _teamset_axis.gsc:17
‪HEAD_ICON_AXIS
‪#define HEAD_ICON_AXIS
Definition: _teamset_axis.gsc:7
‪init
‪function init(team)
Definition: _teamset_axis.gsc:25