‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_turret.gsc File Reference

Go to the source code of this file.

Macros

#define PLACEABLE_MOVEABLE_TIMEOUT_EXTENSION_TU1   5000
 
#define TURRET_NAME   "autoturret"
 
#define TURRET_SCAN_ANGLE_BUFFER   10
 
#define TURRET_SCAN_WAIT   2.5
 

Functions

function ActivateTurret ()
 
function CreateTurretInfluencer (name)
 
function EnableTurretAfterWait (wait_time)
 
function EndTurretRemoteControl (turretVehicle, exitRequestedByOwner)
 
function HackedCallbackPost (hacker)
 
function HackedCallbackPre (hacker)
 
function init ()
 
function InitTurret ()
 
function OnCancelPlacement (turret)
 
function OnDeath (eInflictor, eAttacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime)
 
function OnDeathAfterFrameEnd (eInflictor, eAttacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime)
 
function OnPickupTurret (turret)
 
function OnPlaceTurret (turret)
 
function OnShutdown (turret)
 
function OnTurretDamage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, vDamageOrigin, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal)
 
function OnTurretDeath (eInflictor, eAttacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime)
 
function play_deploy_anim ()
 
function play_deploy_anim_after_wait (wait_time)
 
function setup_death_watch_for_new_targets ()
 
function StartTurretRemoteControl (turretVehicle)
 
function target_death_watch (turretVehicle)
 
function turret_laser_watch ()
 
function turret_watch_owner_events ()
 
function TurretScanning ()
 
function WatchTurretShutdown (killstreakId, team)
 

Macro Definition Documentation

◆ PLACEABLE_MOVEABLE_TIMEOUT_EXTENSION_TU1

#define PLACEABLE_MOVEABLE_TIMEOUT_EXTENSION_TU1   5000

Definition at line 52 of file _turret.gsc.

◆ TURRET_NAME

#define TURRET_NAME   "autoturret"

Definition at line 49 of file _turret.gsc.

◆ TURRET_SCAN_ANGLE_BUFFER

#define TURRET_SCAN_ANGLE_BUFFER   10

Definition at line 50 of file _turret.gsc.

◆ TURRET_SCAN_WAIT

#define TURRET_SCAN_WAIT   2.5

Definition at line 51 of file _turret.gsc.

Function Documentation

◆ ActivateTurret()

◆ CreateTurretInfluencer()

function CreateTurretInfluencer ( name  )

Definition at line 458 of file _turret.gsc.

References create_enemy_influencer(), and name.

Referenced by OnPlaceTurret(), and StartMicrowave().

◆ EnableTurretAfterWait()

function EnableTurretAfterWait ( wait_time  )

Definition at line 444 of file _turret.gsc.

References enable().

Referenced by EndTurretRemoteControl().

◆ EndTurretRemoteControl()

function EndTurretRemoteControl ( turretVehicle  ,
exitRequestedByOwner   
)

Definition at line 428 of file _turret.gsc.

References deactivate(), EnableTurretAfterWait(), set(), and TURRET_VISIONSET_ALIAS.

Referenced by init().

◆ HackedCallbackPost()

function HackedCallbackPost ( hacker  )

Definition at line 234 of file _turret.gsc.

References set_vehicle_drivable_time_starting_now(), TURRET_NAME, and UseRemoteWeapon().

Referenced by OnPlaceTurret().

◆ HackedCallbackPre()

function HackedCallbackPre ( hacker  )

◆ init()

◆ InitTurret()

◆ OnCancelPlacement()

function OnCancelPlacement ( turret  )

Definition at line 265 of file _turret.gsc.

Referenced by ActivateTurret().

◆ OnDeath()

function OnDeath ( eInflictor  ,
eAttacker  ,
iDamage  ,
sMeansOfDeath  ,
weapon  ,
vDir  ,
sHitLoc  ,
psOffsetTime   
)

◆ OnDeathAfterFrameEnd()

function OnDeathAfterFrameEnd ( eInflictor  ,
eAttacker  ,
iDamage  ,
sMeansOfDeath  ,
weapon  ,
vDir  ,
sHitLoc  ,
psOffsetTime   
)

Definition at line 326 of file _turret.gsc.

References OnDeath().

Referenced by OnTurretDamage().

◆ OnPickupTurret()

function OnPickupTurret ( turret  )

Definition at line 270 of file _turret.gsc.

References connect_paths(), disable(), and set().

Referenced by ActivateTurret().

◆ OnPlaceTurret()

◆ OnShutdown()

function OnShutdown ( turret  )

Definition at line 405 of file _turret.gsc.

Referenced by ActivateTurret(), and turret_watch_owner_events().

◆ OnTurretDamage()

function OnTurretDamage ( eInflictor  ,
eAttacker  ,
iDamage  ,
iDFlags  ,
sMeansOfDeath  ,
weapon  ,
vPoint  ,
vDir  ,
sHitLoc  ,
vDamageOrigin  ,
psOffsetTime  ,
damageFromUnderneath  ,
modelIndex  ,
partName  ,
vSurfaceNormal   
)

◆ OnTurretDeath()

function OnTurretDeath ( eInflictor  ,
eAttacker  ,
iDamage  ,
sMeansOfDeath  ,
weapon  ,
vDir  ,
sHitLoc  ,
psOffsetTime   
)

Definition at line 320 of file _turret.gsc.

References OnDeath().

Referenced by InitTurret().

◆ play_deploy_anim()

function play_deploy_anim ( )

Definition at line 252 of file _turret.gsc.

References set().

Referenced by OnPlaceTurret(), and play_deploy_anim_after_wait().

◆ play_deploy_anim_after_wait()

function play_deploy_anim_after_wait ( wait_time  )

Definition at line 242 of file _turret.gsc.

References play_deploy_anim().

◆ setup_death_watch_for_new_targets()

function setup_death_watch_for_new_targets ( )

Definition at line 531 of file _turret.gsc.

References target_death_watch().

Referenced by OnPlaceTurret().

◆ StartTurretRemoteControl()

function StartTurretRemoteControl ( turretVehicle  )

◆ target_death_watch()

function target_death_watch ( turretVehicle  )

Definition at line 550 of file _turret.gsc.

References stop(), and waittill_any().

Referenced by setup_death_watch_for_new_targets().

◆ turret_laser_watch()

function turret_laser_watch ( )

Definition at line 503 of file _turret.gsc.

References does_have_target(), and enable_laser().

Referenced by OnPlaceTurret().

◆ turret_watch_owner_events()

function turret_watch_owner_events ( )

Definition at line 474 of file _turret.gsc.

References clear_using_remote(), OnShutdown(), set(), and waittill_any().

Referenced by OnPlaceTurret().

◆ TurretScanning()

function TurretScanning ( )

◆ WatchTurretShutdown()

function WatchTurretShutdown ( killstreakId  ,
team   
)

Definition at line 609 of file _turret.gsc.

References killstreakStop(), remove_influencers(), and TURRET_NAME.

Referenced by ActivateTurret().