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

Go to the source code of this file.

Macros

#define HEAD_SIGHT_CHECK_RATING   3
 
#define MAX_TARGET_RATING   ( ORIGIN_SIGHT_CHECK_RATING + NOT_IN_BUILDING_RATING + HEAD_SIGHT_CHECK_RATING )
 
#define MIN_TARGET_RATING   3
 
#define NOT_IN_BUILDING_RATING   2
 
#define ORIGIN_SIGHT_CHECK_RATING   4
 

Functions

function check_target_lost (target)
 
function checkForEmp ()
 
function checkWeaponChange (hardpointType, team, killstreak_id)
 
function clearInvalidDroneTarget ()
 
function doMissileDrone (origin, weapon, killstreak_id, hardpointType, team)
 
function drone_target_acquired (hardpointType, target)
 
function drone_target_search (hardpointType)
 
function get_array_sorted_dot_prod (array, minCos)
 
function init ()
 
function killstreak_stop_think (killstreak_id, hardpointType, team)
 
function missile_drone_killstreak (killstreakType)
 
function missileDroneWatcher (hardpointType)
 
function projectile_death_think ()
 
function projectile_find_target (owner, minCos)
 
function projectile_find_target_killstreak (owner, minCos)
 
function projectile_find_target_player (owner, minCos)
 
function set_drone_target (hardpointType, target)
 
function updateTargetting ()
 
function useMissileDrone (hardpointType)
 
function vecscale (vec, scalar)
 
function waitThenDelete (waitTime)
 
function watchDamage ()
 
function watchOwnerDeath (hardpointType, team, killstreak_id)
 

Macro Definition Documentation

◆ HEAD_SIGHT_CHECK_RATING

#define HEAD_SIGHT_CHECK_RATING   3

Definition at line 433 of file _missile_drone.gsc.

◆ MAX_TARGET_RATING

Definition at line 435 of file _missile_drone.gsc.

◆ MIN_TARGET_RATING

#define MIN_TARGET_RATING   3

Definition at line 436 of file _missile_drone.gsc.

◆ NOT_IN_BUILDING_RATING

#define NOT_IN_BUILDING_RATING   2

Definition at line 434 of file _missile_drone.gsc.

◆ ORIGIN_SIGHT_CHECK_RATING

#define ORIGIN_SIGHT_CHECK_RATING   4

Definition at line 432 of file _missile_drone.gsc.

Function Documentation

◆ check_target_lost()

function check_target_lost ( target  )

Definition at line 306 of file _missile_drone.gsc.

References debug_line(), and debug_star().

Referenced by set_drone_target().

◆ checkForEmp()

function checkForEmp ( )

◆ checkWeaponChange()

function checkWeaponChange ( hardpointType  ,
team  ,
killstreak_id   
)

Definition at line 559 of file _missile_drone.gsc.

References killstreakStop(), MISSILE_DRONE_TARGET_DISABLED, and set_to_player().

Referenced by missileDroneWatcher().

◆ clearInvalidDroneTarget()

function clearInvalidDroneTarget ( )

Definition at line 730 of file _missile_drone.gsc.

References waittill_any().

Referenced by updateTargetting().

◆ doMissileDrone()

function doMissileDrone ( origin  ,
weapon  ,
killstreak_id  ,
hardpointType  ,
team   
)

◆ drone_target_acquired()

function drone_target_acquired ( hardpointType  ,
target   
)

Definition at line 192 of file _missile_drone.gsc.

References set(), and set_drone_target().

Referenced by drone_target_search().

◆ drone_target_search()

function drone_target_search ( hardpointType  )

◆ get_array_sorted_dot_prod()

function get_array_sorted_dot_prod ( array  ,
minCos   
)

Definition at line 628 of file _missile_drone.gsc.

References array, and change().

Referenced by projectile_find_target_killstreak(), and projectile_find_target_player().

◆ init()

function init ( )

Definition at line 33 of file _missile_drone.gsc.

References register(), and VERSION_SHIP.

◆ killstreak_stop_think()

function killstreak_stop_think ( killstreak_id  ,
hardpointType  ,
team   
)

Definition at line 552 of file _missile_drone.gsc.

References killstreakStop().

Referenced by doMissileDrone().

◆ missile_drone_killstreak()

function missile_drone_killstreak ( killstreakType  )

Definition at line 50 of file _missile_drone.gsc.

References result(), and useMissileDrone().

◆ missileDroneWatcher()

◆ projectile_death_think()

function projectile_death_think ( )

Definition at line 186 of file _missile_drone.gsc.

Referenced by doMissileDrone().

◆ projectile_find_target()

function projectile_find_target ( owner  ,
minCos   
)

◆ projectile_find_target_killstreak()

function projectile_find_target_killstreak ( owner  ,
minCos   
)

Definition at line 368 of file _missile_drone.gsc.

References dog_manager_get_dogs(), and get_array_sorted_dot_prod().

Referenced by projectile_find_target().

◆ projectile_find_target_player()

◆ set_drone_target()

function set_drone_target ( hardpointType  ,
target   
)

◆ updateTargetting()

◆ useMissileDrone()

function useMissileDrone ( hardpointType  )

◆ vecscale()

function vecscale ( vec  ,
scalar   
)

Definition at line 278 of file _missile_drone.gsc.

Referenced by drone_target_search().

◆ waitThenDelete()

function waitThenDelete ( waitTime  )

Definition at line 176 of file _missile_drone.gsc.

Referenced by missileDroneWatcher().

◆ watchDamage()

function watchDamage ( )

Definition at line 598 of file _missile_drone.gsc.

References addFlySwatterStat(), damage(), detonate(), and IsEnemyPlayer().

Referenced by doMissileDrone().

◆ watchOwnerDeath()

function watchOwnerDeath ( hardpointType  ,
team  ,
killstreak_id   
)

Definition at line 572 of file _missile_drone.gsc.

References killstreakStop().

Referenced by missileDroneWatcher().