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;
7 #insert scripts\shared\shared.gsh;
8 #insert scripts\shared\version.gsh;
9 #insert scripts\mp\killstreaks\_killstreaks.gsh;
11 #using_animtree( "mp_autoturret" );
13 #namespace autoturret;
26 function turret_init_anim( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
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 );
36 function turret_open( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
41 self UseAnimTree( #animtree );
42 self SetAnimRestart( %o_turret_sentry_deploy, 1.0, 0.0, 1.0 );
45 function turret_close_anim( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
50 self UseAnimTree( #animtree );
51 self SetAnimRestart( %o_turret_sentry_close, 1.0, 0.0, 1.0 );