‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
mp_combine.csc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #using scripts\shared\util_shared;
4 
5 #insert scripts\shared\shared.gsh;
6 
7 #using scripts\mp\_load;
8 #using scripts\mp\_util;
9 
10 #using scripts\mp\mp_combine_fx;
11 #using scripts\mp\mp_combine_sound;
12 
13 #precache( "client_fx", "ui/fx_dom_cap_indicator_neutral_r120" );
14 #precache( "client_fx", "ui/fx_dom_cap_indicator_team_r120" );
15 #precache( "client_fx", "ui/fx_dom_marker_neutral_r120" );
16 #precache( "client_fx", "ui/fx_dom_marker_team_r120" );
17 #precache( "client_fx", "ui/fx_dom_cap_indicator_neutral_r90" );
18 #precache( "client_fx", "ui/fx_dom_cap_indicator_team_r90" );
19 #precache( "client_fx", "ui/fx_dom_marker_neutral_r90" );
20 #precache( "client_fx", "ui/fx_dom_marker_team_r90" );
21 
22 function ‪main()
23 {
24  // The meshes for the clock hands was authored in the wrong order, this renames them.
25  {
26  hour_hand = GetEntArray(0, "hour_hand", "targetname");
27  minute_hand = GetEntArray(0, "minute_hand", "targetname");
28  second_hand = GetEntArray(0, "second_hand", "targetname");
29  foreach(hand in hour_hand)
30  {
31  hand.targetname = "second_hand";
32  }
33  foreach(hand in minute_hand)
34  {
35  hand.targetname = "hour_hand";
36  }
37  foreach(hand in second_hand)
38  {
39  hand.targetname = "minute_hand";
40  }
41  }
42 
45  level.disableFXAnimInSplitscreenCount = 3;
46  ‪load::main();
47 
48  level.domFlagBaseFxOverride = &‪dom_flag_base_fx_override;
49  level.domFlagCapFxOverride = &‪dom_flag_cap_fx_override;
50 
51  ‪util::waitforclient( 0 ); // This needs to be called after all systems have been registered.
52 
53  level.endGameXCamName = "ui_cam_endgame_mp_sector";
54 }
55 
56 function ‪dom_flag_base_fx_override( flag, team )
57 {
58  switch ( flag.name )
59  {
60  case "a":
61  break;
62  case "b":
63  if ( team == "neutral" )
64  {
65  return "ui/fx_dom_marker_neutral_r90";
66  }
67  else
68  {
69  return "ui/fx_dom_marker_team_r90";
70  }
71  break;
72  case "c":
73  if ( team == "neutral" )
74  {
75  return "ui/fx_dom_marker_neutral_r120";
76  }
77  else
78  {
79  return "ui/fx_dom_marker_team_r120";
80  }
81  break;
82  };
83 }
84 
85 function ‪dom_flag_cap_fx_override( flag, team )
86 {
87  switch ( flag.name )
88  {
89  case "a":
90  break;
91  case "b":
92  if ( team == "neutral" )
93  {
94  return "ui/fx_dom_cap_indicator_neutral_r90";
95  }
96  else
97  {
98  return "ui/fx_dom_cap_indicator_team_r90";
99  }
100  break;
101  case "c":
102  if ( team == "neutral" )
103  {
104  return "ui/fx_dom_cap_indicator_neutral_r120";
105  }
106  else
107  {
108  return "ui/fx_dom_cap_indicator_team_r120";
109  }
110  break;
111  };
112 }
‪waitforclient
‪function waitforclient(client)
Definition: util_shared.csc:60
‪main
‪function main()
Definition: mp_combine.csc:22
‪dom_flag_cap_fx_override
‪function dom_flag_cap_fx_override(flag, team)
Definition: mp_combine.csc:85
‪dom_flag_base_fx_override
‪function dom_flag_base_fx_override(flag, team)
Definition: mp_combine.csc:56