 |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
Go to the documentation of this file. 1 #using scripts\shared\util_shared;
3 #insert scripts\shared\shared.gsh;
17 function init( str_flag, b_val =
false, b_is_trigger =
false )
23 if ( !isdefined( level.first_frame ) )
25 Assert( !isdefined(
self.flag[ str_flag ] ),
"Attempt to reinitialize existing flag '" + str_flag +
"' on entity." );
30 self.flag[ str_flag ] = b_val;
45 return ( isdefined(
self.flag ) && isdefined(
self.flag[ str_flag ] ) );
61 Assert(
exists( str_flag ),
"Attempting to set a flag '" + str_flag +
"' that's not initialized." );
64 self.flag[ str_flag ] =
true;
65 self notify( str_flag );
82 self thread
_delay_set( n_delay, str_flag, str_cancel );
87 if ( isdefined( str_cancel ) )
89 self endon( str_cancel );
92 self endon(
"death" );
112 self notify(
"__flag::set_for_time__" + str_flag );
113 self endon(
"__flag::set_for_time__" + str_flag );
132 Assert(
exists( str_flag ),
"Attempting to clear a flag '" + str_flag +
"' that's not initialized." );
134 if (
self.flag[ str_flag ] )
136 self.flag[ str_flag ] =
false;
137 self notify( str_flag );
152 if (
get( str_flag ) )
174 Assert(
exists( str_flag ),
"Tried to get flag '" + str_flag +
"' that's not initialized." );
176 return self.flag[ str_flag ];
191 self endon(
"death" );
193 while ( !
get( str_flag ) )
195 self waittill( str_flag );
207 self endon(
"death" );
209 for ( i = 0; i < a_flags.size; i++ )
211 str_flag = a_flags[i];
213 if ( !
get( str_flag ) )
215 self waittill( str_flag );
229 self endon(
"death" );
231 foreach ( flag
in a_flags )
250 self endon(
"death" );
252 while (
get( str_flag ) )
254 self waittill( str_flag );
266 self endon(
"death" );
268 for ( i = 0; i < a_flags.size; i++ )
270 str_flag = a_flags[i];
272 if (
get( str_flag ) )
274 self waittill( str_flag );
288 self endon(
"death" );
292 foreach ( flag
in a_flags )
320 function delete( str_flag )
322 if ( isdefined(
self.flag[ str_flag ] ) )
324 self.flag[ str_flag ] = undefined;
328 /# PrintLn(
"flag_delete() called on flag that does not exist: " + str_flag ); #/
function waittill_any_array(a_notifies)
function toggle(str_flag)
function clear(str_flag)
function wait_till_clear_all(a_flags)
function wait_till_any(a_flags)
function init(str_flag, b_val=false, b_is_trigger=false)
function wait_till_clear_any(a_flags)
function wait_till_clear_all_timeout(n_timeout, a_flags)
function delay_set(n_delay, str_flag, str_cancel)
function set_for_time(n_time, str_flag)
function wait_till_all_timeout(n_timeout, a_flags)
#define DEFAULT(__var, __default)
function wait_till(str_flag)
function wait_till_any_timeout(n_timeout, a_flags)
function exists(str_flag)
function wait_till_timeout(n_timeout, str_flag)
function _delay_set(n_delay, str_flag, str_cancel)
function wait_till_all(a_flags)
function wait_till_clear_timeout(n_timeout, str_flag)
function wait_till_clear_any_timeout(n_timeout, a_flags)
function wait_till_clear(str_flag)