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

Go to the source code of this file.

Macros

#define HELI_ENTRANCE_Z_HELP   1000
 
#define HELICOPTER_COMLINK   "helicopter_comlink"
 
#define INVENTORY_HELICOPTER_COMLINK   "inventory_helicopter_comlink"
 

Functions

function announceHelicopterInbound (hardpointType)
 
function assignPrimaryTargets (targets)
 
function assignSecondaryTargets (targets)
 
function attack_primary (hardpointType)
 
function attack_secondary (hardpointType)
 
function attack_targets (missilesEnabled, hardpointType)
 
function AutoStopSound ()
 
function canTargetActor_turret (actor, hardpointType)
 
function canTargetDog_missile (dog)
 
function canTargetDog_turret (dog)
 
function canTargetPlayer_missile (player, hardpointType)
 
function canTargetPlayer_turret (player, hardpointType)
 
function canTargetTank_turret (tank)
 
function check_owner (hardpointType)
 
function CheckHelicopterTag (tagName)
 
function clear_client_flags ()
 
function ConfigureTeamPost (owner, isHacked)
 
function crashOnNearestCrashPath (hardpointType)
 
function create_flare_ent (offset)
 
function damagedRotorFX ()
 
function destroyHelicopter ()
 
function explodeOnContact (hardpointtype)
 
function fire_missile (sMissileType, iShots, eTarget)
 
function getValidProtectLocationStart (random_path, protectLocation, destination)
 
function getValidRandomCrashNode (start)
 
function getValidRandomLeaveNode (start)
 
function getValidRandomStartNode (dest)
 
function getVerticalTan (startOrigin, endOrigin)
 
function HackedCallbackPost (hacker)
 
function heli_active_camo_damage_disable ()
 
function heli_active_camo_damage_update (damage)
 
function heli_crash (hardpointType, player, playerNotify)
 
function heli_damage_monitor (hardpointtype)
 
function heli_evasive (hardpointType)
 
function heli_existance ()
 
function heli_explode ()
 
function heli_fly (currentnode, startwait, hardpointType)
 
function heli_get_dvar (dvar, def)
 
function heli_get_dvar_int (dvar, def)
 
function heli_get_protect_spot (protectDest, nodeHeight)
 
function heli_hacked_health_update (hacker)
 
function heli_health (hardpointType, playerNotify)
 
function heli_hover ()
 
function heli_leave ()
 
function heli_missile_regen ()
 
function heli_mobilespawn (protectDest)
 
function heli_path_graph ()
 
function heli_protect (startNode, protectDest, hardpointType, heli_team)
 
function heli_random_point_in_radius (protectDest, nodeHeight)
 
function heli_reset ()
 
function heli_secondary_explosions ()
 
function heli_set_active_camo_state (state)
 
function heli_spin (speed)
 
function heli_targeting (missilesEnabled, hardpointType)
 
function heli_think (owner, startnode, heli_team, missilesEnabled, protectLocation, hardpointType, armored, killstreak_id)
 
function heli_wait (waittime)
 
function init ()
 
function init_active_camo ()
 
function is_targeted ()
 
function missile_support (target_player, rof, instantfire, endon_notify)
 
function notify_player (player, playerNotify, delay)
 
function OnFlakDroneDestroyed ()
 
function play_bda_dialog ()
 
function play_going_down_vo (delay)
 
function PlayPilotDialog (dialog, time, voice, shouldWait)
 
function playPilotTalking (shouldWait, soundAlias)
 
function precachehelicopter (model, type)
 
function processCopterAssist (destroyedCopter, damagedone)
 
function SAMTurretWatcher ()
 
function selectHelicopterLocation (hardpointtype)
 
function set_goal_pos (goalPos, stop)
 
function set_heli_speed_evasive ()
 
function set_heli_speed_hover ()
 
function set_heli_speed_normal ()
 
function spawn_helicopter (owner, origin, angles, model, targetname, target_offset, hardpointType, killstreak_id)
 
function spinSoundShortly ()
 
function target_cone_check (target, coneCosine)
 
function trail_fx (trail_fx, trail_tag, stop_notify)
 
function turret_target_check (turretTarget, attackAngle)
 
function turret_target_flag (turrettarget)
 
function updateSpeed ()
 
function updateSpeedOnLock ()
 
function updateTargetYaw ()
 
function useKillstreakHelicopter (hardpointType)
 
function wait_for_bda_timeout ()
 
function wait_for_killed ()
 
function wait_or_waittill (time, msg1, msg2, msg3)
 
function waitThenExplode (time)
 
function waittill_confirm_location ()
 
function watchForEarlyLeave (chopper)
 
function watchForEMP ()
 

Macro Definition Documentation

◆ HELI_ENTRANCE_Z_HELP

#define HELI_ENTRANCE_Z_HELP   1000

Definition at line 57 of file _helicopter.gsc.

◆ HELICOPTER_COMLINK

#define HELICOPTER_COMLINK   "helicopter_comlink"

Definition at line 58 of file _helicopter.gsc.

◆ INVENTORY_HELICOPTER_COMLINK

#define INVENTORY_HELICOPTER_COMLINK   "inventory_helicopter_comlink"

Definition at line 59 of file _helicopter.gsc.

Function Documentation

◆ announceHelicopterInbound()

function announceHelicopterInbound ( hardpointType  )

Definition at line 140 of file _helicopter.gsc.

References get_killstreak_weapon().

Referenced by createHeliGuardSupport(), and useKillstreakHelicopter().

◆ assignPrimaryTargets()

function assignPrimaryTargets ( targets  )

◆ assignSecondaryTargets()

function assignSecondaryTargets ( targets  )

Definition at line 1101 of file _helicopter.gsc.

References update_missile_dog_threat(), and update_missile_player_threat().

Referenced by heli_targeting().

◆ attack_primary()

◆ attack_secondary()

function attack_secondary ( hardpointType  )

Definition at line 2606 of file _helicopter.gsc.

References check_owner(), missile_support(), and target_cone_check().

Referenced by attack_targets().

◆ attack_targets()

function attack_targets ( missilesEnabled  ,
hardpointType   
)

Definition at line 2597 of file _helicopter.gsc.

References attack_primary(), and attack_secondary().

Referenced by heli_think().

◆ AutoStopSound()

function AutoStopSound ( )

Definition at line 630 of file _helicopter.gsc.

Referenced by heli_think().

◆ canTargetActor_turret()

function canTargetActor_turret ( actor  ,
hardpointType   
)

Definition at line 852 of file _helicopter.gsc.

Referenced by heli_targeting().

◆ canTargetDog_missile()

function canTargetDog_missile ( dog  )

Definition at line 991 of file _helicopter.gsc.

Referenced by heli_targeting().

◆ canTargetDog_turret()

function canTargetDog_turret ( dog  )

Definition at line 957 of file _helicopter.gsc.

Referenced by heli_targeting().

◆ canTargetPlayer_missile()

function canTargetPlayer_missile ( player  ,
hardpointType   
)

Definition at line 905 of file _helicopter.gsc.

References canTargetPlayerWithSpecialty(), check_owner(), and target_cone_check().

Referenced by heli_targeting().

◆ canTargetPlayer_turret()

function canTargetPlayer_turret ( player  ,
hardpointType   
)

Definition at line 806 of file _helicopter.gsc.

References canTargetPlayerWithSpecialty(), and check_owner().

Referenced by heli_targeting().

◆ canTargetTank_turret()

function canTargetTank_turret ( tank  )

Definition at line 1029 of file _helicopter.gsc.

Referenced by heli_targeting().

◆ check_owner()

function check_owner ( hardpointType  )

◆ CheckHelicopterTag()

function CheckHelicopterTag ( tagName  )

Definition at line 1955 of file _helicopter.gsc.

Referenced by heli_secondary_explosions().

◆ clear_client_flags()

function clear_client_flags ( )

Definition at line 2112 of file _helicopter.gsc.

References set().

Referenced by heli_crash().

◆ ConfigureTeamPost()

function ConfigureTeamPost ( owner  ,
isHacked   
)

Definition at line 497 of file _helicopter.gsc.

References watchForEarlyLeave().

Referenced by heli_think().

◆ crashOnNearestCrashPath()

function crashOnNearestCrashPath ( hardpointType  )

Definition at line 1916 of file _helicopter.gsc.

References heli_explode(), heli_fly(), heli_secondary_explosions(), and heli_spin().

Referenced by heli_crash().

◆ create_flare_ent()

function create_flare_ent ( offset  )

Definition at line 645 of file _helicopter.gsc.

References spawn().

Referenced by createHeliGuardSupport(), heli_think(), heliDeliverCrate(), and InitSentinel().

◆ damagedRotorFX()

function damagedRotorFX ( )

Definition at line 1901 of file _helicopter.gsc.

◆ destroyHelicopter()

function destroyHelicopter ( )

Definition at line 2048 of file _helicopter.gsc.

References killstreakStop(), and remove_influencers().

Referenced by spawn_helicopter().

◆ explodeOnContact()

function explodeOnContact ( hardpointtype  )

Definition at line 389 of file _helicopter.gsc.

References heli_explode().

Referenced by heli_crash().

◆ fire_missile()

function fire_missile ( sMissileType  ,
iShots  ,
eTarget   
)

Definition at line 2545 of file _helicopter.gsc.

References fireWeapon().

Referenced by missile_support().

◆ getValidProtectLocationStart()

function getValidProtectLocationStart ( random_path  ,
protectLocation  ,
destination   
)

Definition at line 400 of file _helicopter.gsc.

References crossesNoFlyZone().

Referenced by useKillstreakHelicopter().

◆ getValidRandomCrashNode()

function getValidRandomCrashNode ( start  )

Definition at line 479 of file _helicopter.gsc.

References crossesNoFlyZone().

Referenced by heli_crash().

◆ getValidRandomLeaveNode()

function getValidRandomLeaveNode ( start  )

◆ getValidRandomStartNode()

function getValidRandomStartNode ( dest  )

◆ getVerticalTan()

function getVerticalTan ( startOrigin  ,
endOrigin   
)

Definition at line 881 of file _helicopter.gsc.

◆ HackedCallbackPost()

function HackedCallbackPost ( hacker  )

Definition at line 503 of file _helicopter.gsc.

References get_hack_timeout().

Referenced by heli_think().

◆ heli_active_camo_damage_disable()

function heli_active_camo_damage_disable ( )

◆ heli_active_camo_damage_update()

◆ heli_crash()

◆ heli_damage_monitor()

◆ heli_evasive()

function heli_evasive ( hardpointType  )

Definition at line 1753 of file _helicopter.gsc.

References heli_fly().

Referenced by heli_fly().

◆ heli_existance()

function heli_existance ( )

Definition at line 638 of file _helicopter.gsc.

References remove_influencers().

Referenced by heli_think().

◆ heli_explode()

function heli_explode ( )

◆ heli_fly()

function heli_fly ( currentnode  ,
startwait  ,
hardpointType   
)

◆ heli_get_dvar()

function heli_get_dvar ( dvar  ,
def   
)

Definition at line 322 of file _helicopter.gsc.

Referenced by heli_get_dvar_int().

◆ heli_get_dvar_int()

function heli_get_dvar_int ( dvar  ,
def   
)

Definition at line 316 of file _helicopter.gsc.

References heli_get_dvar().

Referenced by attack_primary().

◆ heli_get_protect_spot()

function heli_get_protect_spot ( protectDest  ,
nodeHeight   
)

◆ heli_hacked_health_update()

function heli_hacked_health_update ( hacker  )

Definition at line 1247 of file _helicopter.gsc.

Referenced by heli_damage_monitor().

◆ heli_health()

function heli_health ( hardpointType  ,
playerNotify   
)

◆ heli_hover()

function heli_hover ( )

Definition at line 1170 of file _helicopter.gsc.

Referenced by heli_wait().

◆ heli_leave()

◆ heli_missile_regen()

function heli_missile_regen ( )

Definition at line 652 of file _helicopter.gsc.

Referenced by heli_think().

◆ heli_mobilespawn()

function heli_mobilespawn ( protectDest  )

◆ heli_path_graph()

function heli_path_graph ( )

Definition at line 148 of file _helicopter.gsc.

Referenced by init().

◆ heli_protect()

◆ heli_random_point_in_radius()

function heli_random_point_in_radius ( protectDest  ,
nodeHeight   
)

Definition at line 2287 of file _helicopter.gsc.

Referenced by heli_get_protect_spot().

◆ heli_reset()

function heli_reset ( )

◆ heli_secondary_explosions()

function heli_secondary_explosions ( )

Definition at line 1978 of file _helicopter.gsc.

References CheckHelicopterTag(), and trail_fx().

Referenced by crashOnNearestCrashPath(), and heli_crash().

◆ heli_set_active_camo_state()

◆ heli_spin()

function heli_spin ( speed  )

Definition at line 2010 of file _helicopter.gsc.

References spinSoundShortly().

Referenced by crashOnNearestCrashPath(), and heli_crash().

◆ heli_targeting()

◆ heli_think()

◆ heli_wait()

function heli_wait ( waittime  )

Definition at line 1156 of file _helicopter.gsc.

References heli_hover(), and heli_reset().

Referenced by heli_fly().

◆ init()

◆ init_active_camo()

function init_active_camo ( )

◆ is_targeted()

function is_targeted ( )

Definition at line 2353 of file _helicopter.gsc.

Referenced by heli_protect(), and updateSpeed().

◆ missile_support()

function missile_support ( target_player  ,
rof  ,
instantfire  ,
endon_notify   
)

Definition at line 2693 of file _helicopter.gsc.

References fire_missile().

Referenced by attack_secondary().

◆ notify_player()

function notify_player ( player  ,
playerNotify  ,
delay   
)

Definition at line 1786 of file _helicopter.gsc.

References delay().

Referenced by heli_crash().

◆ OnFlakDroneDestroyed()

function OnFlakDroneDestroyed ( )

◆ play_bda_dialog()

function play_bda_dialog ( )

Definition at line 1221 of file _helicopter.gsc.

References play_pilot_dialog_on_owner().

Referenced by wait_for_bda_timeout().

◆ play_going_down_vo()

function play_going_down_vo ( delay  )

Definition at line 1802 of file _helicopter.gsc.

References delay().

Referenced by heli_crash().

◆ PlayPilotDialog()

function PlayPilotDialog ( dialog  ,
time  ,
voice  ,
shouldWait   
)

Definition at line 3012 of file _helicopter.gsc.

References playPilotTalking().

Referenced by player_fire_think(), and remote_killstreak_copilot().

◆ playPilotTalking()

function playPilotTalking ( shouldWait  ,
soundAlias   
)

Definition at line 3041 of file _helicopter.gsc.

Referenced by PlayPilotDialog().

◆ precachehelicopter()

function precachehelicopter ( model  ,
type   
)

Definition at line 61 of file _helicopter.gsc.

Referenced by init().

◆ processCopterAssist()

function processCopterAssist ( destroyedCopter  ,
damagedone   
)

Definition at line 2970 of file _helicopter.gsc.

References processScoreEvent().

Referenced by heli_damage_monitor().

◆ SAMTurretWatcher()

function SAMTurretWatcher ( )

Definition at line 3000 of file _helicopter.gsc.

References waittill_any().

Referenced by heli_think().

◆ selectHelicopterLocation()

function selectHelicopterLocation ( hardpointtype  )

◆ set_goal_pos()

function set_goal_pos ( goalPos  ,
stop   
)

Definition at line 333 of file _helicopter.gsc.

References stop().

Referenced by heli_crash(), heli_fly(), heli_leave(), heli_mobilespawn(), and heli_protect().

◆ set_heli_speed_evasive()

function set_heli_speed_evasive ( )

Definition at line 2336 of file _helicopter.gsc.

Referenced by updateSpeed().

◆ set_heli_speed_hover()

function set_heli_speed_hover ( )

Definition at line 2345 of file _helicopter.gsc.

Referenced by heli_mobilespawn(), and heli_protect().

◆ set_heli_speed_normal()

function set_heli_speed_normal ( )

Definition at line 2327 of file _helicopter.gsc.

Referenced by heli_mobilespawn(), and updateSpeed().

◆ spawn_helicopter()

function spawn_helicopter ( owner  ,
origin  ,
angles  ,
model  ,
targetname  ,
target_offset  ,
hardpointType  ,
killstreak_id   
)

◆ spinSoundShortly()

function spinSoundShortly ( )

Definition at line 2030 of file _helicopter.gsc.

Referenced by heli_spin().

◆ target_cone_check()

function target_cone_check ( target  ,
coneCosine   
)

Definition at line 2675 of file _helicopter.gsc.

Referenced by attack_secondary(), and canTargetPlayer_missile().

◆ trail_fx()

function trail_fx ( trail_fx  ,
trail_tag  ,
stop_notify   
)

Definition at line 2043 of file _helicopter.gsc.

Referenced by heli_secondary_explosions().

◆ turret_target_check()

function turret_target_check ( turretTarget  ,
attackAngle   
)

Definition at line 2650 of file _helicopter.gsc.

References get_2d_yaw().

Referenced by attack_primary().

◆ turret_target_flag()

function turret_target_flag ( turrettarget  )

Definition at line 2885 of file _helicopter.gsc.

References WAIT_SERVER_FRAME.

Referenced by attack_primary().

◆ updateSpeed()

function updateSpeed ( )

◆ updateSpeedOnLock()

function updateSpeedOnLock ( )

Definition at line 2501 of file _helicopter.gsc.

References updateSpeed(), and waittill_any().

Referenced by heli_protect().

◆ updateTargetYaw()

function updateTargetYaw ( )

Definition at line 2524 of file _helicopter.gsc.

References get_2d_yaw().

Referenced by heli_protect().

◆ useKillstreakHelicopter()

◆ wait_for_bda_timeout()

function wait_for_bda_timeout ( )

Definition at line 1209 of file _helicopter.gsc.

References play_bda_dialog().

Referenced by wait_for_killed().

◆ wait_for_killed()

function wait_for_killed ( )

Definition at line 1183 of file _helicopter.gsc.

References wait_for_bda_timeout().

Referenced by createHeliGuardSupport(), heli_think(), and SpawnHeliGunner().

◆ wait_or_waittill()

function wait_or_waittill ( time  ,
msg1  ,
msg2  ,
msg3   
)

Definition at line 2318 of file _helicopter.gsc.

Referenced by heli_protect().

◆ waitThenExplode()

function waitThenExplode ( time  )

Definition at line 1907 of file _helicopter.gsc.

References heli_explode().

Referenced by heli_crash().

◆ waittill_confirm_location()

function waittill_confirm_location ( )

Definition at line 2935 of file _helicopter.gsc.

Referenced by selectHelicopterLocation().

◆ watchForEarlyLeave()

function watchForEarlyLeave ( chopper  )

Definition at line 3061 of file _helicopter.gsc.

References heli_leave(), and waittill_any().

Referenced by ConfigureTeamPost().

◆ watchForEMP()

function watchForEMP ( )

Definition at line 3077 of file _helicopter.gsc.

References heli_explode().

Referenced by heli_think().