Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
_teamset_multiteam.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
#using scripts\mp\teams\_teamset_axis;
7
#using scripts\mp\teams\_teamset_allies;
8
9
#define HEAD_ICON_ALLIES "faction_allies"
10
#define HEAD_ICON_AXIS "faction_axis"
11
12
#precache( "material", HEAD_ICON_ALLIES );
13
#precache( "material", HEAD_ICON_AXIS );
14
#precache( "string", "MP_SEALS_WIN_MATCH" );
15
#precache( "string", "MP_SEALS_WIN_ROUND" );
16
#precache( "string", "MP_SEALS_MISSION_ACCOMPLISHED" );
17
#precache( "string", "MP_SEALS_ELIMINATED" );
18
#precache( "string", "MP_SEALS_FORFEITED" );
19
#precache( "string", "MP_SEALS_NAME" );
20
#precache( "string", "MP_PMC_WIN_MATCH" );
21
#precache( "string", "MP_PMC_WIN_ROUND" );
22
#precache( "string", "MP_PMC_MISSION_ACCOMPLISHED" );
23
#precache( "string", "MP_PMC_ELIMINATED" );
24
#precache( "string", "MP_PMC_FORFEITED" );
25
#precache( "string", "MP_PMC_NAME" );
26
27
function
main
()
28
{
29
_teamset::init
();
30
31
toggle
= 0;
32
33
foreach
( team
in
level.teams )
34
{
35
if
(
toggle
% 2 )
36
{
37
init_axis
( team );
38
}
39
else
40
{
41
init_allies
( team );
42
}
43
toggle
++;
44
}
45
46
precache
();
47
}
48
49
function
precache
()
50
{
51
_teamset_allies::precache
();
52
_teamset_axis::precache
();
53
}
54
55
// MTEAM: TODO: instead of duplicating all of this data here, get it out of a table
56
function
init_allies
( team )
57
{
58
game[team] =
"allies"
;
59
game[
"attackers"
] = team;
60
61
// head icons
62
game[
"entity_headicon_"
+ team] =
HEAD_ICON_ALLIES
;
63
game[
"headicon_"
+ team] =
HEAD_ICON_ALLIES
;
64
65
// battle chatter
66
level.teamPrefix[team] =
"vox_st"
;
67
level.teamPostfix[team] =
"st6"
;
68
69
// scoreboard
70
SetDvar(
"g_TeamName_"
+ team, &
"MPUI_ALLIES_SHORT"
);
71
SetDvar(
"g_TeamColor_"
+ team,
"0.6 0.64 0.69"
);
72
SetDvar(
"g_ScoresColor_"
+ team,
"0.6 0.64 0.69"
);
73
SetDvar(
"g_FactionName_"
+ team, game[team] );
74
75
game[
"strings"
][team +
"_win"
] = &
"MP_SEALS_WIN_MATCH"
;
76
game[
"strings"
][team +
"_win_round"
] = &
"MP_SEALS_WIN_ROUND"
;
77
game[
"strings"
][team +
"_mission_accomplished"
] = &
"MP_SEALS_MISSION_ACCOMPLISHED"
;
78
game[
"strings"
][team +
"_eliminated"
] = &
"MP_SEALS_ELIMINATED"
;
79
game[
"strings"
][team +
"_forfeited"
] = &
"MP_SEALS_FORFEITED"
;
80
game[
"strings"
][team +
"_name"
] = &
"MP_SEALS_NAME"
;
81
82
//Music
83
game[
"music"
][
"spawn_"
+ team] =
"SPAWN_ST6"
;
84
game[
"music"
][
"spawn_short"
+ team] =
"SPAWN_SHORT_ST6"
;
85
game[
"music"
][
"victory_"
+ team] =
"VICTORY_ST6"
;
86
87
game[
"icons"
][team] =
HEAD_ICON_ALLIES
;
88
game[
"voice"
][team] =
"vox_st6_"
;
89
SetDvar(
"scr_"
+ team,
"marines"
);
90
91
level.heli_vo[team][
"hit"
] =
"vox_ops_2_kls_attackheli_hit"
;
92
93
// flag assets
94
game[
"flagmodels"
][team] =
"mp_flag_allies_1"
;
95
game[
"carry_flagmodels"
][team] =
"mp_flag_allies_1_carry"
;
96
}
97
98
function
init_axis
( team )
99
{
100
game[team] =
"axis"
;
101
game[
"defenders"
] = team;
102
103
// head icons
104
game[
"entity_headicon_"
+ team] =
HEAD_ICON_AXIS
;
105
game[
"headicon_"
+ team] =
HEAD_ICON_AXIS
;
106
107
// battle chatter
108
level.teamPrefix[team] =
"vox_pm"
;
109
level.teamPostfix[team] =
"init_axis"
;
110
111
// scoreboard
112
SetDvar(
"g_TeamName_"
+ team, &
"MPUI_AXIS_SHORT"
);
113
SetDvar(
"g_TeamColor_"
+ team,
"0.65 0.57 0.41"
);
114
SetDvar(
"g_ScoresColor_"
+ team,
"0.65 0.57 0.41"
);
115
SetDvar(
"g_FactionName_"
+ team, game[team] );
116
117
game[
"strings"
][team +
"_win"
] = &
"MP_PMC_WIN_MATCH"
;
118
game[
"strings"
][team +
"_win_round"
] = &
"MP_PMC_WIN_ROUND"
;
119
game[
"strings"
][team +
"_mission_accomplished"
] = &
"MP_PMC_MISSION_ACCOMPLISHED"
;
120
game[
"strings"
][team +
"_eliminated"
] = &
"MP_PMC_ELIMINATED"
;
121
game[
"strings"
][team +
"_forfeited"
] = &
"MP_PMC_FORFEITED"
;
122
game[
"strings"
][team +
"_name"
] = &
"MP_PMC_NAME"
;
123
124
// music
125
game[
"music"
][
"spawn_"
+ team] =
"SPAWN_PMC"
;
126
game[
"music"
][
"spawn_short"
+ team] =
"SPAWN_SHORT_PMC"
;
127
game[
"music"
][
"victory_"
+ team] =
"VICTORY_PMC"
;
128
129
game[
"icons"
][team] =
HEAD_ICON_AXIS
;
130
game[
"voice"
][team] =
"vox_pmc_"
;
131
SetDvar(
"scr_"
+ team,
"ussr"
);
132
133
level.heli_vo[team][
"hit"
] =
"vox_rus_0_kls_attackheli_hit"
;
134
135
// flag assets
136
game[
"flagmodels"
][team] =
"mp_flag_axis_1"
;
137
game[
"carry_flagmodels"
][team] =
"mp_flag_axis_1_carry"
;
138
}
HEAD_ICON_AXIS
#define HEAD_ICON_AXIS
Definition:
_teamset_multiteam.gsc:10
toggle
function toggle(str_flag)
Definition:
flag_shared.csc:150
precache
function precache()
Definition:
_teamset_multiteam.gsc:49
HEAD_ICON_ALLIES
#define HEAD_ICON_ALLIES
Definition:
_teamset_multiteam.gsc:9
init_axis
function init_axis(team)
Definition:
_teamset_multiteam.gsc:98
init_allies
function init_allies(team)
Definition:
_teamset_multiteam.gsc:56
init
function init()
Definition:
struct.csc:1
main
function main()
Definition:
_teamset_multiteam.gsc:27
scripts
mp
teams
_teamset_multiteam.gsc
Generated by
1.8.17