‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_killstreak_detect.gsc
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\system_shared;
6 #using scripts\shared\weapons\_proximity_grenade;
7 #using scripts\shared\util_shared;
8 
9 #using scripts\mp\killstreaks\_killstreak_hacking;
10 
11 #insert scripts\shared\shared.gsh;
12 #insert scripts\shared\version.gsh;
13 
14 #namespace killstreak_detect;
15 
16 ‪REGISTER_SYSTEM( "killstreak_detect", &‪__init__, undefined )
17 
18 function ‪__init__()
19 {
20  ‪clientfield::register( "vehicle", "enemyvehicle", ‪VERSION_SHIP, 2, "int" );
21  ‪clientfield::register( "scriptmover", "enemyvehicle", ‪VERSION_SHIP, 2, "int" );
22  ‪clientfield::register( "helicopter", "enemyvehicle", ‪VERSION_SHIP, 2, "int" );
23  ‪clientfield::register( "missile", "enemyvehicle", ‪VERSION_SHIP, 2, "int" );
24  ‪clientfield::register( "actor", "enemyvehicle", ‪VERSION_SHIP, 2, "int" );
25  ‪clientfield::register( "vehicle", "vehicletransition", ‪VERSION_SHIP, 1, "int" );
26 }
27 
28 
29 function ‪killstreakTargetSet( killstreakEntity, offset )
30 {
31  if ( !isdefined( offset ) )
32  {
33  offset = ( 0, 0, 0 );
34  }
35  Target_Set( killstreakEntity, offset );
36 /#
37  killstreakEntity thread ‪killstreak_hacking::killstreak_switch_team( killstreakEntity.owner );
38 #/
39 }
40 
41 
42 function ‪killstreakTargetClear( killstreakEntity )
43 {
44  Target_Remove( killstreakEntity );
45 /#
46  killstreakEntity thread ‪killstreak_hacking::killstreak_switch_team_end();
47 #/
48 }
‪__init__
‪function __init__()
Definition: _killstreak_detect.gsc:18
‪VERSION_SHIP
‪#define VERSION_SHIP
Definition: version.gsh:36
‪killstreakTargetClear
‪function killstreakTargetClear(killstreakEntity)
Definition: _killstreak_detect.gsc:42
‪killstreak_switch_team
‪function killstreak_switch_team(owner)
Definition: _killstreak_hacking.gsc:178
‪killstreakTargetSet
‪function killstreakTargetSet(killstreakEntity, offset)
Definition: _killstreak_detect.gsc:29
‪REGISTER_SYSTEM
‪#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition: shared.gsh:204
‪killstreak_switch_team_end
‪function killstreak_switch_team_end()
Definition: _killstreak_hacking.gsc:172
‪register
‪function register()
Definition: _ai_tank.gsc:126