‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_teamset.gsc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #insert scripts\shared\shared.gsh;
4 
5 //#precache( "string", "MP_CUSTOMTEAM_WIN_MATCH" );
6 //#precache( "string", "MP_CUSTOMTEAM_WIN_ROUND" );
7 //#precache( "string", "MP_CUSTOMTEAM_MISSION_ACCOMPLISHED" );
8 //#precache( "string", "MP_CUSTOMTEAM_ELIMINATED" );
9 //#precache( "string", "MP_CUSTOMTEAM_FORFEITED" );
10 //#precache( "string", "MP_CUSTOMTEAM_NAME" );
11 
12 function ‪init()
13 {
14  if ( !isdefined( game["flagmodels"] ) )
15  game["flagmodels"] = [];
16 
17  if ( !isdefined( game["carry_flagmodels"] ) )
18  game["carry_flagmodels"] = [];
19 
20  if ( !isdefined( game["carry_icon"] ) )
21  game["carry_icon"] = [];
22 
23  game["flagmodels"]["neutral"] = "p7_mp_flag_neutral";
24 }
25 
27 {
28  if( GetDvarString( "g_customTeamName_Allies") != "" )
29  {
30  SetDvar("g_TeamName_Allies", GetDvarString( "g_customTeamName_Allies") );
31 
32 // game["strings"]["allies_win"] = &"MP_CUSTOMTEAM_WIN_MATCH";
33 // game["strings"]["allies_win_round"] = &"MP_CUSTOMTEAM_WIN_ROUND";
34 // game["strings"]["allies_mission_accomplished"] = &"MP_CUSTOMTEAM_MISSION_ACCOMPLISHED";
35 // game["strings"]["allies_eliminated"] = &"MP_CUSTOMTEAM_ELIMINATED";
36 // game["strings"]["allies_forfeited"] = &"MP_CUSTOMTEAM_FORFEITED";
37 // game["strings"]["allies_name"] = &"MP_CUSTOMTEAM_NAME";
38  }
39 
40  if( GetDvarString( "g_customTeamName_Axis") != "" )
41  {
42  SetDvar("g_TeamName_Axis", GetDvarString( "g_customTeamName_Axis") );
43 
44 // game["strings"]["axis_win"] = &"MP_CUSTOMTEAM_WIN_MATCH";
45 // game["strings"]["axis_win_round"] = &"MP_CUSTOMTEAM_WIN_ROUND";
46 // game["strings"]["axis_mission_accomplished"] = &"MP_CUSTOMTEAM_MISSION_ACCOMPLISHED";
47 // game["strings"]["axis_eliminated"] = &"MP_CUSTOMTEAM_ELIMINATED";
48 // game["strings"]["axis_forfeited"] = &"MP_CUSTOMTEAM_FORFEITED";
49 // game["strings"]["axis_name"] = &"MP_CUSTOMTEAM_NAME";
50  }
51 }
‪init
‪function init()
Definition: _teamset.gsc:12
‪customteam_init
‪function customteam_init()
Definition: _teamset.gsc:26