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\fx_shared;
4
#using scripts\shared\system_shared;
5
6
#insert scripts\shared\shared.gsh;
7
8
#namespace global_fx;
9
10
REGISTER_SYSTEM_EX
(
"global_fx"
, &
__init__
, &
main
, undefined )
11
12
function
__init__
()
13
{
14
wind_initial_setting
();
15
}
16
17
function
main
()
18
{
19
check_for_wind_override
();
20
}
21
22
function
wind_initial_setting
()
23
{
24
SetSavedDvar(
"enable_global_wind"
, 0 );
// enable wind for your level
25
SetSavedDvar(
"wind_global_vector"
,
"0 0 0"
);
// change "0 0 0" to your wind vector
26
SetSavedDvar(
"wind_global_low_altitude"
, 0 );
// change 0 to your wind's lower bound
27
SetSavedDvar(
"wind_global_hi_altitude"
, 10000 );
// change 10000 to your wind's upper bound
28
SetSavedDvar(
"wind_global_low_strength_percent"
, 0.5 );
// change 0.5 to your desired wind strength percentage
29
}
30
31
function
check_for_wind_override
()
32
{
33
//Allow for level overrides of global wind settings
34
if
( isdefined( level.custom_wind_callback ) )
35
{
36
level thread [[level.custom_wind_callback]]();
37
}
38
}
39
__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
scripts
mp
_global_fx.csc
Generated by
1.8.17