‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_global_fx.csc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #using scripts\shared\system_shared;
4 
5 #insert scripts\shared\shared.gsh;
6 
7 #namespace global_fx;
8 
9 ‪REGISTER_SYSTEM_EX( "global_fx", &‪__init__, &‪main, undefined )
10 
11 function ‪__init__()
12 {
14 }
15 
16 function ‪main()
17 {
19 }
20 
22 {
23  SetSavedDvar( "enable_global_wind", 0 ); // enable wind for your level
24  SetSavedDvar( "wind_global_vector", "0 0 0" ); // change "0 0 0" to your wind vector
25  SetSavedDvar( "wind_global_low_altitude", 0 ); // change 0 to your wind's lower bound
26  SetSavedDvar( "wind_global_hi_altitude", 10000 ); // change 10000 to your wind's upper bound
27  SetSavedDvar( "wind_global_low_strength_percent", 0.5 ); // change 0.5 to your desired wind strength percentage
28 }
29 
31 {
32  //Allow for level overrides of global wind settings
33  if( isdefined( level.custom_wind_callback ) )
34  {
35  level thread [[level.custom_wind_callback]]();
36  }
37 }
38 
‪__init__
‪function __init__()
Definition: _global_fx.csc:12
‪REGISTER_SYSTEM_EX
‪#define REGISTER_SYSTEM_EX(__sys, __func_init_preload, __func_init_postload, __reqs)
Definition: shared.gsh:209
‪main
‪function main()
Definition: _global_fx.csc:17
‪wind_initial_setting
‪function wind_initial_setting()
Definition: _global_fx.csc:22
‪check_for_wind_override
‪function check_for_wind_override()
Definition: _global_fx.csc:31