‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_wasp.csc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #using scripts\shared\callbacks_shared;
4 #using scripts\shared\clientfield_shared;
5 #using scripts\shared\filter_shared;
6 #using scripts\shared\system_shared;
7 #using scripts\shared\util_shared;
8 #using scripts\shared\vehicle_shared;
9 #using scripts\shared\archetype_shared\archetype_shared;
10 
11 #insert scripts\shared\shared.gsh;
12 #insert scripts\shared\version.gsh;
13 
14 #namespace wasp;
15 
16 ‪REGISTER_SYSTEM( "wasp", &‪__init__, undefined )
17 
18 function ‪__init__()
19 {
20  // clientfield setup
22 
23  level.sentinelBundle = ‪struct::get_script_bundle( "killstreak", "killstreak_sentinel" );
24  if( isdefined( level.sentinelBundle ) )
25  ‪vehicle::add_vehicletype_callback( level.sentinelBundle.ksVehicle, &‪spawned );
26 }
27 
28 function ‪spawned( localClientNum )
29 {
30  self.killstreakBundle = level.sentinelBundle;
31 }
32 
33 function ‪handle_lod_display_for_driver(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
34 {
35  self endon( "entityshutdown" );
36  if( isDefined( self ) )
37  {
38  if( self IsLocalClientDriver( localClientNum ))
39  {
40  self SetHighDetail( true );
41  wait 0.05;
42  self ‪vehicle::lights_off( localClientNum );
43  }
44  }
45 }
‪lights_off
‪function lights_off(localClientNum)
Definition: vehicle_shared.csc:652
‪handle_lod_display_for_driver
‪function handle_lod_display_for_driver(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _wasp.csc:33
‪CF_CALLBACK_ZERO_ON_NEW_ENT
‪#define CF_CALLBACK_ZERO_ON_NEW_ENT
Definition: version.gsh:103
‪VERSION_SHIP
‪#define VERSION_SHIP
Definition: version.gsh:36
‪spawned
‪function spawned(localClientNum)
Definition: _wasp.csc:28
‪__init__
‪function __init__()
Definition: _wasp.csc:18
‪CF_HOST_ONLY
‪#define CF_HOST_ONLY
Definition: version.gsh:102
‪REGISTER_SYSTEM
‪#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition: shared.gsh:204
‪add_vehicletype_callback
‪function add_vehicletype_callback(vehicletype, callback)
Definition: vehicle_shared.csc:77
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪get_script_bundle
‪function get_script_bundle(str_type, str_name)
Definition: struct.csc:45