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

Go to the source code of this file.

Macros

#define PROTOTYPE_SCOUT_HP_MOD   1
 
#define SCOUT_BASE_SPEED_MODIFIER   0.33
 
#define SCOUT_DEFAULT_RADIUS_FOR_DEFEND_ROLE   64
 
#define SCOUT_DEFAULT_RADIUS_FOR_GUARD_ROLE   64
 
#define SCOUT_DEFAULT_RADIUS_FOR_LOITER_ROLE   64
 
#define SCOUT_DEFEND_HEIGHT   300
 
#define SCOUT_LOITER_HEIGHT   300
 
#define SCOUT_PATROL_HEIGHT   300
 
#define SCOUT_TRACK_DISTANCE   256
 
#define SCOUT_TRACK_HEIGHT   128
 
#define SCOUT_TRACK_TETHER   512
 

Functions

function __init__ ()
 
function _track_target_position (target)
 
function defend (s_centerpoint, n_radius)
 
function get_custom_damage_effect (health_pct)
 
function guard (v_centerpoint)
 
function loiter (v_center, n_radius)
 
function patrol (start_node)
 
function scout_callback_damage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, psOffsetTime, damageFromUnderneath, modelIndex, partName)
 
function scout_drone_initialize ()
 
function scout_find_new_position ()
 
function set_patrol_path (patrol_path_start_node)
 
function state_alert_update ()
 
function state_combat_enter ()
 
function state_combat_update ()
 
function state_highalert_enter ()
 
function state_lowalert_enter ()
 
function state_unaware_enter ()
 
function state_unaware_update ()
 

Macro Definition Documentation

◆ PROTOTYPE_SCOUT_HP_MOD

#define PROTOTYPE_SCOUT_HP_MOD   1

Definition at line 16 of file _scout_drone.gsc.

◆ SCOUT_BASE_SPEED_MODIFIER

#define SCOUT_BASE_SPEED_MODIFIER   0.33

Definition at line 26 of file _scout_drone.gsc.

◆ SCOUT_DEFAULT_RADIUS_FOR_DEFEND_ROLE

#define SCOUT_DEFAULT_RADIUS_FOR_DEFEND_ROLE   64

Definition at line 17 of file _scout_drone.gsc.

◆ SCOUT_DEFAULT_RADIUS_FOR_GUARD_ROLE

#define SCOUT_DEFAULT_RADIUS_FOR_GUARD_ROLE   64

Definition at line 18 of file _scout_drone.gsc.

◆ SCOUT_DEFAULT_RADIUS_FOR_LOITER_ROLE

#define SCOUT_DEFAULT_RADIUS_FOR_LOITER_ROLE   64

Definition at line 19 of file _scout_drone.gsc.

◆ SCOUT_DEFEND_HEIGHT

#define SCOUT_DEFEND_HEIGHT   300

Definition at line 21 of file _scout_drone.gsc.

◆ SCOUT_LOITER_HEIGHT

#define SCOUT_LOITER_HEIGHT   300

Definition at line 22 of file _scout_drone.gsc.

◆ SCOUT_PATROL_HEIGHT

#define SCOUT_PATROL_HEIGHT   300

Definition at line 23 of file _scout_drone.gsc.

◆ SCOUT_TRACK_DISTANCE

#define SCOUT_TRACK_DISTANCE   256

Definition at line 20 of file _scout_drone.gsc.

◆ SCOUT_TRACK_HEIGHT

#define SCOUT_TRACK_HEIGHT   128

Definition at line 24 of file _scout_drone.gsc.

◆ SCOUT_TRACK_TETHER

#define SCOUT_TRACK_TETHER   512

Definition at line 25 of file _scout_drone.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 34 of file _scout_drone.gsc.

References scout_drone_initialize().

◆ _track_target_position()

function _track_target_position ( target  )

Definition at line 326 of file _scout_drone.gsc.

References SCOUT_TRACK_DISTANCE, and SCOUT_TRACK_HEIGHT.

Referenced by state_combat_enter(), and state_combat_update().

◆ defend()

function defend ( s_centerpoint  ,
n_radius   
)

Definition at line 73 of file _scout_drone.gsc.

◆ get_custom_damage_effect()

function get_custom_damage_effect ( health_pct  )

Definition at line 383 of file _scout_drone.gsc.

Referenced by scout_callback_damage().

◆ guard()

function guard ( v_centerpoint  )

Definition at line 78 of file _scout_drone.gsc.

◆ loiter()

function loiter ( v_center  ,
n_radius   
)

Definition at line 83 of file _scout_drone.gsc.

◆ patrol()

◆ scout_callback_damage()

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

Definition at line 405 of file _scout_drone.gsc.

References get_custom_damage_effect(), and throw_off_balance().

Referenced by scout_drone_initialize().

◆ scout_drone_initialize()

function scout_drone_initialize ( )

◆ scout_find_new_position()

function scout_find_new_position ( )

Definition at line 422 of file _scout_drone.gsc.

◆ set_patrol_path()

function set_patrol_path ( patrol_path_start_node  )

Definition at line 112 of file _scout_drone.gsc.

Referenced by patrol().

◆ state_alert_update()

function state_alert_update ( )

Definition at line 275 of file _scout_drone.gsc.

References waittill_pathing_done().

Referenced by patrol().

◆ state_combat_enter()

function state_combat_enter ( )

Definition at line 310 of file _scout_drone.gsc.

References _track_target_position(), and set_state().

Referenced by patrol().

◆ state_combat_update()

function state_combat_update ( )

Definition at line 332 of file _scout_drone.gsc.

References _track_target_position(), SCOUT_TRACK_TETHER, SQR, and waittill_pathing_done().

Referenced by patrol().

◆ state_highalert_enter()

function state_highalert_enter ( )

Definition at line 270 of file _scout_drone.gsc.

Referenced by patrol().

◆ state_lowalert_enter()

function state_lowalert_enter ( )

Definition at line 265 of file _scout_drone.gsc.

Referenced by patrol().

◆ state_unaware_enter()

function state_unaware_enter ( )

Definition at line 117 of file _scout_drone.gsc.

Referenced by patrol().

◆ state_unaware_update()

function state_unaware_update ( )

Definition at line 139 of file _scout_drone.gsc.

References RANDOM, SCOUT_PATROL_HEIGHT, script_wait(), and waittill_pathing_done().

Referenced by patrol().