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

Go to the source code of this file.

Functions

function _getStrikePathStartAndEnd (goal, yaw, halfDistance)
 
function _insideCylinder (point, base, radius, height)
 
function _insideNoFlyZoneByIndex (point, index, disregardHeight)
 
function _shouldIgnoreNoFlyZone (noFlyZone, noFlyZones)
 
function _shouldIgnoreStartGoalNoFlyZone (noFlyZone, startNoFlyZones, goalNoFlyZones)
 
function append_array (dst, src)
 
function calculateFallTime (flyHeight)
 
function calculatePath (start, end, startNoFlyZones, goalNoFlyZones)
 
function calculatePath_r (start, end, points, startNoFlyZones, goalNoFlyZones, depth)
 
function calculateReleaseTime (flyTime, flyHeight, flySpeed, bombSpeedScale)
 
function callStrike (flightPlan)
 
function canTargetPlayerWithSpecialty ()
 
function clampTarget (target)
 
function clearmonitoredspeed ()
 
function clearPath (start, end, startNoFlyZone, goalNoFlyZone)
 
function clearUpLocationSelection ()
 
function crossesNoFlyZone (start, end)
 
function crossesNoFlyZones (start, end)
 
function debug_airsupport_cylinder (origin, radius, height, color, mustRenderHeight, time)
 
function debug_circle (origin, radius, color, time)
 
function debug_cylinder (origin, radius, height, color, mustRenderHeight, time)
 
function debug_draw_bomb_explosion (prevpos)
 
function debug_draw_bomb_path (projectile, color, time)
 
function debug_line (from, to, color, time, depthTest)
 
function debug_no_fly_zones ()
 
function debug_plane_line (flyTime, flyspeed, pathStart, pathEnd)
 
function debug_print3d (message, color, ent, origin_offset, frames)
 
function debug_print3d_simple (message, ent, offset, frames)
 
function debug_sphere (origin, radius, color, alpha, time)
 
function debug_star (origin, color, time)
 
function determineGroundPoint (player, position)
 
function determineTargetPoint (player, position)
 
function doGlassDamage (pos, radius, max, min, mod)
 
function draw_text (msg, color, ent, offset, frames)
 
function endSelectionOnGameEnd ()
 
function endSelectionOnHostMigration ()
 
function endSelectionThink ()
 
function entLOSRadiusDamage (ent, pos, radius, max, min, owner, eInflictor)
 
function finishDualHardpointLocationUsage (locationStart, locationEnd, usedCallback)
 
function finishHardpointLocationUsage (location, usedCallback)
 
function FlattenRoll ()
 
function FlattenYaw (goal)
 
function followPath (path, doneNotify, stopAtGoal)
 
function getHeliPath (start, goal)
 
function GetMapCenter ()
 
function GetMaxMapWidth ()
 
function getMaxTargetHeight ()
 
function getMinimumFlyHeight ()
 
function getMinTargetHeight ()
 
function getNoFlyZoneHeight (point)
 
function getNoFlyZoneHeightCrossed (start, end, minHeight)
 
function getPointOnLine (startPoint, endPoint, ratio)
 
function GetRandomHelicopterStartOrigin ()
 
function GetRandomMapPoint (x_offset, y_offset, map_x_percentage, map_y_percentage)
 
function getStrikePath (target, height, halfDistance, yaw)
 
function init ()
 
function InitRotatingRig ()
 
function insideNoFlyZones (point, disregardHeight)
 
function Leave (duration)
 
function monitorSpeed (spawnProtectionTime)
 
function planeStrike (owner, requiredDeathCount, pathStart, pathEnd, bombTime, flyTime, flyspeed, bombSpeedScale, direction, planeSpawnedFunction)
 
function RotateRig ()
 
function setGoalPosition (goal, doneNotify, stopAtGoal)
 
function stopLoopSoundAfterTime (time)
 
function StopRotation (time)
 
function SwayRig ()
 

Function Documentation

◆ _getStrikePathStartAndEnd()

function _getStrikePathStartAndEnd ( goal  ,
yaw  ,
halfDistance   
)

Definition at line 624 of file _airsupport.gsc.

References crossesNoFlyZone().

Referenced by getStrikePath().

◆ _insideCylinder()

function _insideCylinder ( point  ,
base  ,
radius  ,
height   
)

Definition at line 322 of file _airsupport.gsc.

Referenced by _insideNoFlyZoneByIndex().

◆ _insideNoFlyZoneByIndex()

function _insideNoFlyZoneByIndex ( point  ,
index  ,
disregardHeight   
)

Definition at line 341 of file _airsupport.gsc.

References _insideCylinder().

Referenced by getNoFlyZoneHeight(), and insideNoFlyZones().

◆ _shouldIgnoreNoFlyZone()

function _shouldIgnoreNoFlyZone ( noFlyZone  ,
noFlyZones   
)

Definition at line 448 of file _airsupport.gsc.

Referenced by _shouldIgnoreStartGoalNoFlyZone().

◆ _shouldIgnoreStartGoalNoFlyZone()

function _shouldIgnoreStartGoalNoFlyZone ( noFlyZone  ,
startNoFlyZones  ,
goalNoFlyZones   
)

Definition at line 462 of file _airsupport.gsc.

References _shouldIgnoreNoFlyZone().

Referenced by calculatePath_r(), and clearPath().

◆ append_array()

function append_array ( dst  ,
src   
)

Definition at line 558 of file _airsupport.gsc.

◆ calculateFallTime()

function calculateFallTime ( flyHeight  )

Definition at line 145 of file _airsupport.gsc.

Referenced by calculateReleaseTime().

◆ calculatePath()

function calculatePath ( start  ,
end  ,
startNoFlyZones  ,
goalNoFlyZones   
)

Definition at line 595 of file _airsupport.gsc.

References calculatePath_r(), debug_line(), debug_sphere(), and end().

Referenced by getHeliPath().

◆ calculatePath_r()

function calculatePath_r ( start  ,
end  ,
points  ,
startNoFlyZones  ,
goalNoFlyZones  ,
depth   
)

Definition at line 566 of file _airsupport.gsc.

References _shouldIgnoreStartGoalNoFlyZone(), crossesNoFlyZones(), and end().

Referenced by calculatePath().

◆ calculateReleaseTime()

function calculateReleaseTime ( flyTime  ,
flyHeight  ,
flySpeed  ,
bombSpeedScale   
)

Definition at line 155 of file _airsupport.gsc.

References calculateFallTime().

Referenced by callStrike().

◆ callStrike()

function callStrike ( flightPlan  )

Definition at line 197 of file _airsupport.gsc.

References calculateReleaseTime(), getStrikePath(), and planeStrike().

◆ canTargetPlayerWithSpecialty()

function canTargetPlayerWithSpecialty ( )

◆ clampTarget()

function clampTarget ( target  )

Definition at line 304 of file _airsupport.gsc.

References getMaxTargetHeight(), and getMinTargetHeight().

Referenced by determineTargetPoint().

◆ clearmonitoredspeed()

function clearmonitoredspeed ( )

Definition at line 1285 of file _airsupport.gsc.

◆ clearPath()

function clearPath ( start  ,
end  ,
startNoFlyZone  ,
goalNoFlyZone   
)

Definition at line 543 of file _airsupport.gsc.

References _shouldIgnoreStartGoalNoFlyZone(), crossesNoFlyZones(), and end().

◆ clearUpLocationSelection()

function clearUpLocationSelection ( )

Definition at line 127 of file _airsupport.gsc.

References waittill_any_return().

Referenced by endSelectionThink().

◆ crossesNoFlyZone()

◆ crossesNoFlyZones()

function crossesNoFlyZones ( start  ,
end   
)

Definition at line 410 of file _airsupport.gsc.

References closest_point_on_line(), and end().

Referenced by calculatePath_r(), clearPath(), and heli_protect().

◆ debug_airsupport_cylinder()

function debug_airsupport_cylinder ( origin  ,
radius  ,
height  ,
color  ,
mustRenderHeight  ,
time   
)

Definition at line 1175 of file _airsupport.gsc.

References debug_cylinder().

Referenced by debug_no_fly_zones().

◆ debug_circle()

function debug_circle ( origin  ,
radius  ,
color  ,
time   
)

Definition at line 1133 of file _airsupport.gsc.

◆ debug_cylinder()

function debug_cylinder ( origin  ,
radius  ,
height  ,
color  ,
mustRenderHeight  ,
time   
)

Definition at line 1187 of file _airsupport.gsc.

Referenced by debug_airsupport_cylinder().

◆ debug_draw_bomb_explosion()

function debug_draw_bomb_explosion ( prevpos  )

Definition at line 996 of file _airsupport.gsc.

References debug_line(), debug_star(), and WAIT_SERVER_FRAME.

Referenced by debug_draw_bomb_path().

◆ debug_draw_bomb_path()

function debug_draw_bomb_path ( projectile  ,
color  ,
time   
)

Definition at line 1008 of file _airsupport.gsc.

References debug_draw_bomb_explosion(), and debug_line().

Referenced by createKillcams(), and fireRockets().

◆ debug_line()

◆ debug_no_fly_zones()

function debug_no_fly_zones ( )

Definition at line 974 of file _airsupport.gsc.

References debug_airsupport_cylinder().

◆ debug_plane_line()

function debug_plane_line ( flyTime  ,
flyspeed  ,
pathStart  ,
pathEnd   
)

Definition at line 984 of file _airsupport.gsc.

References debug_line(), and debug_star().

Referenced by planeStrike().

◆ debug_print3d()

function debug_print3d ( message  ,
color  ,
ent  ,
origin_offset  ,
frames   
)

Definition at line 1078 of file _airsupport.gsc.

References draw_text().

◆ debug_print3d_simple()

function debug_print3d_simple ( message  ,
ent  ,
offset  ,
frames   
)

Definition at line 1038 of file _airsupport.gsc.

References draw_text().

◆ debug_sphere()

function debug_sphere ( origin  ,
radius  ,
color  ,
alpha  ,
time   
)

◆ debug_star()

function debug_star ( origin  ,
color  ,
time   
)

◆ determineGroundPoint()

function determineGroundPoint ( player  ,
position   
)

Definition at line 279 of file _airsupport.gsc.

References trace().

Referenced by determineTargetPoint().

◆ determineTargetPoint()

function determineTargetPoint ( player  ,
position   
)

Definition at line 287 of file _airsupport.gsc.

References clampTarget(), and determineGroundPoint().

◆ doGlassDamage()

function doGlassDamage ( pos  ,
radius  ,
max  ,
min  ,
mod   
)

Definition at line 691 of file _airsupport.gsc.

◆ draw_text()

function draw_text ( msg  ,
color  ,
ent  ,
offset  ,
frames   
)

Definition at line 1053 of file _airsupport.gsc.

References WAIT_SERVER_FRAME.

Referenced by debug_print3d(), and debug_print3d_simple().

◆ endSelectionOnGameEnd()

function endSelectionOnGameEnd ( )

Definition at line 78 of file _airsupport.gsc.

Referenced by endSelectionThink().

◆ endSelectionOnHostMigration()

function endSelectionOnHostMigration ( )

Definition at line 90 of file _airsupport.gsc.

Referenced by endSelectionThink().

◆ endSelectionThink()

◆ entLOSRadiusDamage()

function entLOSRadiusDamage ( ent  ,
pos  ,
radius  ,
max  ,
min  ,
owner  ,
eInflictor   
)

Definition at line 697 of file _airsupport.gsc.

References damage_trace(), debug_star(), and trace().

◆ finishDualHardpointLocationUsage()

function finishDualHardpointLocationUsage ( locationStart  ,
locationEnd  ,
usedCallback   
)

Definition at line 71 of file _airsupport.gsc.

References WAIT_SERVER_FRAME.

◆ finishHardpointLocationUsage()

function finishHardpointLocationUsage ( location  ,
usedCallback   
)

◆ FlattenRoll()

function FlattenRoll ( )

Definition at line 878 of file _airsupport.gsc.

References WAIT_SERVER_FRAME.

Referenced by Leave().

◆ FlattenYaw()

function FlattenYaw ( goal  )

Definition at line 862 of file _airsupport.gsc.

References increment(), and WAIT_SERVER_FRAME.

Referenced by Leave().

◆ followPath()

function followPath ( path  ,
doneNotify  ,
stopAtGoal   
)

Definition at line 501 of file _airsupport.gsc.

References debug_line().

Referenced by heliDeliverCrate(), and setGoalPosition().

◆ getHeliPath()

function getHeliPath ( start  ,
goal   
)

◆ GetMapCenter()

function GetMapCenter ( )

◆ GetMaxMapWidth()

function GetMaxMapWidth ( )

Definition at line 802 of file _airsupport.gsc.

Referenced by ActivateSatellite(), and InitHelicopterPositions().

◆ getMaxTargetHeight()

function getMaxTargetHeight ( )

Definition at line 299 of file _airsupport.gsc.

Referenced by clampTarget().

◆ getMinimumFlyHeight()

◆ getMinTargetHeight()

function getMinTargetHeight ( )

Definition at line 294 of file _airsupport.gsc.

Referenced by clampTarget().

◆ getNoFlyZoneHeight()

function getNoFlyZoneHeight ( point  )

◆ getNoFlyZoneHeightCrossed()

function getNoFlyZoneHeightCrossed ( start  ,
end  ,
minHeight   
)

◆ getPointOnLine()

function getPointOnLine ( startPoint  ,
endPoint  ,
ratio   
)

Definition at line 1219 of file _airsupport.gsc.

◆ GetRandomHelicopterStartOrigin()

function GetRandomHelicopterStartOrigin ( )

Definition at line 945 of file _airsupport.gsc.

◆ GetRandomMapPoint()

function GetRandomMapPoint ( x_offset  ,
y_offset  ,
map_x_percentage  ,
map_y_percentage   
)

Definition at line 777 of file _airsupport.gsc.

Referenced by GenerateRandomPoints().

◆ getStrikePath()

function getStrikePath ( target  ,
height  ,
halfDistance  ,
yaw   
)

Definition at line 654 of file _airsupport.gsc.

References _getStrikePathStartAndEnd(), and getNoFlyZoneHeight().

Referenced by callStrike().

◆ init()

function init ( )

Definition at line 18 of file _airsupport.gsc.

References error(), get_array(), and InitRotatingRig().

◆ InitRotatingRig()

function InitRotatingRig ( )

Definition at line 816 of file _airsupport.gsc.

References GetMapCenter(), RotateRig(), spawn(), SwayRig(), and VAL.

Referenced by init().

◆ insideNoFlyZones()

function insideNoFlyZones ( point  ,
disregardHeight   
)

Definition at line 375 of file _airsupport.gsc.

References _insideNoFlyZoneByIndex().

Referenced by getHeliPath(), and supplyDropHeliStartPath().

◆ Leave()

function Leave ( duration  )

Definition at line 889 of file _airsupport.gsc.

References crossesNoFlyZone(), FlattenRoll(), FlattenYaw(), MPH_TO_INCHES_PER_SEC, and StopRotation().

Referenced by OnTimeout().

◆ monitorSpeed()

function monitorSpeed ( spawnProtectionTime  )

Definition at line 1240 of file _airsupport.gsc.

References gracePeriod().

Referenced by initialSpawnProtection().

◆ planeStrike()

function planeStrike ( owner  ,
requiredDeathCount  ,
pathStart  ,
pathEnd  ,
bombTime  ,
flyTime  ,
flyspeed  ,
bombSpeedScale  ,
direction  ,
planeSpawnedFunction   
)

Definition at line 245 of file _airsupport.gsc.

References debug_plane_line().

Referenced by callStrike().

◆ RotateRig()

function RotateRig ( )

Definition at line 826 of file _airsupport.gsc.

Referenced by InitRotatingRig().

◆ setGoalPosition()

function setGoalPosition ( goal  ,
doneNotify  ,
stopAtGoal   
)

Definition at line 522 of file _airsupport.gsc.

References followPath(), and getHeliPath().

◆ stopLoopSoundAfterTime()

function stopLoopSoundAfterTime ( time  )

Definition at line 137 of file _airsupport.gsc.

◆ StopRotation()

function StopRotation ( time  )

Definition at line 855 of file _airsupport.gsc.

Referenced by Leave().

◆ SwayRig()

function SwayRig ( )

Definition at line 835 of file _airsupport.gsc.

Referenced by InitRotatingRig().