‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_turret.csc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 #using scripts\shared\clientfield_shared;
3 #using scripts\shared\system_shared;
4 #using scripts\shared\util_shared;
5 #using scripts\shared\visionset_mgr_shared;
6 
7 #insert scripts\shared\shared.gsh;
8 #insert scripts\shared\version.gsh;
9 #insert scripts\mp\killstreaks\_killstreaks.gsh;
10 
11 #using_animtree( "mp_autoturret" );
12 
13 #namespace autoturret;
14 
15 ‪REGISTER_SYSTEM( "autoturret", &‪__init__, undefined )
16 
17 function ‪__init__()
18 {
22 
24 }
25 
26 function ‪turret_init_anim( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
27 {
28  if ( !newVal )
29  return;
30 
31  self UseAnimTree( #animtree );
32  self SetAnimRestart( %o_turret_sentry_close, 1.0, 0.0, 1.0 );
33  self SetAnimTime( %o_turret_sentry_close, 1.0 );
34 }
35 
36 function ‪turret_open( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
37 {
38  if ( !newVal )
39  return;
40 
41  self UseAnimTree( #animtree );
42  self SetAnimRestart( %o_turret_sentry_deploy, 1.0, 0.0, 1.0 );
43 }
44 
45 function ‪turret_close_anim( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
46 {
47  if ( !newVal )
48  return;
49 
50  self UseAnimTree( #animtree );
51  self SetAnimRestart( %o_turret_sentry_close, 1.0, 0.0, 1.0 );
52 }
‪TURRET_VISIONSET_ALIAS
‪#define TURRET_VISIONSET_ALIAS
Definition: _killstreaks.gsh:336
‪__init__
‪function __init__()
Definition: _turret.csc:17
‪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
‪TURRET_VISIONSET_FILE
‪#define TURRET_VISIONSET_FILE
Definition: _killstreaks.gsh:345
‪TURRET_VISIONSET_LERP_STEP_COUNT
‪#define TURRET_VISIONSET_LERP_STEP_COUNT
Definition: _killstreaks.gsh:348
‪register_visionset_info
‪function register_visionset_info(name, version, lerp_step_count, visionset_from, visionset_to, visionset_type=VSMGR_VISIONSET_TYPE_NAKED)
Definition: visionset_mgr_shared.csc:50
‪turret_open
‪function turret_open(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _turret.csc:36
‪turret_close_anim
‪function turret_close_anim(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _turret.csc:45
‪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
‪turret_init_anim
‪function turret_init_anim(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _turret.csc:26
‪register
‪function register()
Definition: _ai_tank.gsc:126