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

Go to the source code of this file.

Macros

#define HUNTER_ATTACK_TARGET_RANGE   1200
 
#define HUNTER_CHANGE_POSITION_TOATTACK_TARGET_DELAY   0.5
 
#define HUNTER_COMBAT_SPEED_RATIO   1.0
 
#define HUNTER_DAMAGE_AMOUNT_TO_SHOW_PAIN   1000
 
#define HUNTER_DRONE_SPAWNER   "spawner_bo3_attack_drone_enemy"
 
#define HUNTER_ENABLE_ATTACK_DRONES   false
 
#define HUNTER_ENABLE_SCANNER_FX   false
 
#define HUNTER_ENABLE_SIDETURRETS_YIELD_MAINTURRET_TARGET   true
 
#define HUNTER_ENABLE_WEAKSPOTS   false
 
#define HUNTER_FOLLOWING_TARGET_RANGE   1200
 
#define HUNTER_GOAL_POINT_STEP   HUNTER_RADIUS * 4
 
#define HUNTER_HALFHEIGHT   100
 
#define HUNTER_MISSILE_LOCKON_DELAY   1.5
 
#define HUNTER_MISSILE_MINIMAL_INTERVAL   8
 
#define HUNTER_MISSILE_WEAPON   "hunter_rocket_turret"
 
#define HUNTER_MISSILE_WEAPON_PLAYER   "hunter_rocket_turret_player"
 
#define HUNTER_RADIUS   200
 
#define HUNTER_SCANNER_FOV   190
 
#define HUNTER_SCANNER_PITCH   50
 
#define HUNTER_SCANNER_RANGE_PITCH   20
 
#define HUNTER_SCANNER_RANGE_YAW   45
 
#define HUNTER_SCANNER_SCANSPEED   1
 
#define HUNTER_SCANNER_TAG   "tag_gunner_flash3"
 
#define HUNTER_SCANNER_VIEW_DISTANCE   10000
 
#define HUNTER_SEEK_ENEMY_DELAY   1.0
 
#define HUNTER_STRAFE_COOLDOWN   2.0
 
#define HUNTER_STRAFE_DISTANCE_TO_ENEMY_DISTANCE_RATIO   0.08
 
#define HUNTER_STRAFE_SPEED_RATIO   2.0
 
#define HUNTER_TURRET_RANGE   1500
 
#define HUNTER_UNAWARE_SPEED_RATIO   0.5
 
#define HUNTER_WAITTIME_BEFORE_DEPLOYDRONE   2.2
 

Functions

function __init__ ()
 
function Attack_Thread_MainTurret ()
 
function Attack_Thread_rocket ()
 
function defaultRole ()
 
function Delay_Target_ToEnemy_Thread (point, enemy, timeToHit)
 
function disable_turrets ()
 
function enable_turrets ()
 
function get_enemies_in_view (do_trace)
 
function getEnemyArray (include_ai, include_player)
 
function GetNextMovePosition_tactical (enemy)
 
function hunter_collision_player ()
 
function hunter_emped (params)
 
function hunter_exit_vehicle ()
 
function hunter_fire_one_missile (launcher_index, target, offset, blinkLights, waittimeAfterBlinkLights)
 
function hunter_frontScanning ()
 
function hunter_initialize ()
 
function hunter_initTagArrays ()
 
function hunter_level_out_for_landing ()
 
function hunter_lockon_fx ()
 
function hunter_pain_for_time (time, velocityStablizeParam, rotationStablizeParam, restoreLookPoint)
 
function hunter_pain_small (eAttacker, damageType, hitPoint, hitDirection, hitLocationInfo, partName)
 
function hunter_scanner_ClearLookTarget ()
 
function hunter_scanner_init ()
 
function hunter_scanner_SetTargetEntity (targetEnt, offset)
 
function hunter_scanner_SetTargetPosition (targetPos)
 
function hunter_scripted (params)
 
function hunter_self_destruct ()
 
function hunter_SpawnDrones ()
 
function hunter_update_rumble ()
 
function HunterCallback_VehicleDamage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, vDamageOrigin, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal)
 
function is_point_in_view (point, do_trace)
 
function is_valid_target (target, do_trace)
 
function kill_drones ()
 
function Movement_Thread_StayInDistance ()
 
function Movement_Thread_Wander ()
 
function player_fire_update_rocket ()
 
function player_fire_update_side_turret_1 ()
 
function player_fire_update_side_turret_2 ()
 
function RegisterInterfaceAttributes (archetype)
 
function remote_missile_life ()
 
function shut_off_fx ()
 
function side_turret_get_best_target (a_potential_targets, n_index)
 
function side_turrets_forward ()
 
function state_combat_enter (params)
 
function state_combat_exit (params)
 
function state_combat_update (params)
 
function state_death_enter (params)
 
function state_death_update (params)
 
function state_strafe_enter (params)
 
function state_strafe_exit (params)
 
function state_strafe_update (params)
 
function state_unaware_enter (params)
 
function state_unaware_exit (params)
 
function state_unaware_update (params)
 

Macro Definition Documentation

◆ HUNTER_ATTACK_TARGET_RANGE

#define HUNTER_ATTACK_TARGET_RANGE   1200

Definition at line 55 of file _hunter.gsc.

◆ HUNTER_CHANGE_POSITION_TOATTACK_TARGET_DELAY

#define HUNTER_CHANGE_POSITION_TOATTACK_TARGET_DELAY   0.5

Definition at line 57 of file _hunter.gsc.

◆ HUNTER_COMBAT_SPEED_RATIO

#define HUNTER_COMBAT_SPEED_RATIO   1.0

Definition at line 31 of file _hunter.gsc.

◆ HUNTER_DAMAGE_AMOUNT_TO_SHOW_PAIN

#define HUNTER_DAMAGE_AMOUNT_TO_SHOW_PAIN   1000

Definition at line 61 of file _hunter.gsc.

◆ HUNTER_DRONE_SPAWNER

#define HUNTER_DRONE_SPAWNER   "spawner_bo3_attack_drone_enemy"

Definition at line 51 of file _hunter.gsc.

◆ HUNTER_ENABLE_ATTACK_DRONES

#define HUNTER_ENABLE_ATTACK_DRONES   false

Definition at line 67 of file _hunter.gsc.

◆ HUNTER_ENABLE_SCANNER_FX

#define HUNTER_ENABLE_SCANNER_FX   false

Definition at line 64 of file _hunter.gsc.

◆ HUNTER_ENABLE_SIDETURRETS_YIELD_MAINTURRET_TARGET

#define HUNTER_ENABLE_SIDETURRETS_YIELD_MAINTURRET_TARGET   true

Definition at line 65 of file _hunter.gsc.

◆ HUNTER_ENABLE_WEAKSPOTS

#define HUNTER_ENABLE_WEAKSPOTS   false

Definition at line 66 of file _hunter.gsc.

◆ HUNTER_FOLLOWING_TARGET_RANGE

#define HUNTER_FOLLOWING_TARGET_RANGE   1200

Definition at line 56 of file _hunter.gsc.

◆ HUNTER_GOAL_POINT_STEP

#define HUNTER_GOAL_POINT_STEP   HUNTER_RADIUS * 4

Definition at line 58 of file _hunter.gsc.

◆ HUNTER_HALFHEIGHT

#define HUNTER_HALFHEIGHT   100

Definition at line 27 of file _hunter.gsc.

◆ HUNTER_MISSILE_LOCKON_DELAY

#define HUNTER_MISSILE_LOCKON_DELAY   1.5

Definition at line 47 of file _hunter.gsc.

◆ HUNTER_MISSILE_MINIMAL_INTERVAL

#define HUNTER_MISSILE_MINIMAL_INTERVAL   8

Definition at line 48 of file _hunter.gsc.

◆ HUNTER_MISSILE_WEAPON

#define HUNTER_MISSILE_WEAPON   "hunter_rocket_turret"

Definition at line 44 of file _hunter.gsc.

◆ HUNTER_MISSILE_WEAPON_PLAYER

#define HUNTER_MISSILE_WEAPON_PLAYER   "hunter_rocket_turret_player"

Definition at line 45 of file _hunter.gsc.

◆ HUNTER_RADIUS

#define HUNTER_RADIUS   200

Definition at line 26 of file _hunter.gsc.

◆ HUNTER_SCANNER_FOV

#define HUNTER_SCANNER_FOV   190

Definition at line 40 of file _hunter.gsc.

◆ HUNTER_SCANNER_PITCH

#define HUNTER_SCANNER_PITCH   50

Definition at line 37 of file _hunter.gsc.

◆ HUNTER_SCANNER_RANGE_PITCH

#define HUNTER_SCANNER_RANGE_PITCH   20

Definition at line 38 of file _hunter.gsc.

◆ HUNTER_SCANNER_RANGE_YAW

#define HUNTER_SCANNER_RANGE_YAW   45

Definition at line 39 of file _hunter.gsc.

◆ HUNTER_SCANNER_SCANSPEED

#define HUNTER_SCANNER_SCANSPEED   1

Definition at line 36 of file _hunter.gsc.

◆ HUNTER_SCANNER_TAG

#define HUNTER_SCANNER_TAG   "tag_gunner_flash3"

Definition at line 35 of file _hunter.gsc.

◆ HUNTER_SCANNER_VIEW_DISTANCE

#define HUNTER_SCANNER_VIEW_DISTANCE   10000

Definition at line 41 of file _hunter.gsc.

◆ HUNTER_SEEK_ENEMY_DELAY

#define HUNTER_SEEK_ENEMY_DELAY   1.0

Definition at line 69 of file _hunter.gsc.

◆ HUNTER_STRAFE_COOLDOWN

#define HUNTER_STRAFE_COOLDOWN   2.0

Definition at line 71 of file _hunter.gsc.

◆ HUNTER_STRAFE_DISTANCE_TO_ENEMY_DISTANCE_RATIO

#define HUNTER_STRAFE_DISTANCE_TO_ENEMY_DISTANCE_RATIO   0.08

Definition at line 72 of file _hunter.gsc.

◆ HUNTER_STRAFE_SPEED_RATIO

#define HUNTER_STRAFE_SPEED_RATIO   2.0

Definition at line 32 of file _hunter.gsc.

◆ HUNTER_TURRET_RANGE

#define HUNTER_TURRET_RANGE   1500

Definition at line 46 of file _hunter.gsc.

◆ HUNTER_UNAWARE_SPEED_RATIO

#define HUNTER_UNAWARE_SPEED_RATIO   0.5

Definition at line 30 of file _hunter.gsc.

◆ HUNTER_WAITTIME_BEFORE_DEPLOYDRONE

#define HUNTER_WAITTIME_BEFORE_DEPLOYDRONE   2.2

Definition at line 52 of file _hunter.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 83 of file _hunter.gsc.

References hunter_initialize(), and RegisterInterfaceAttributes().

◆ Attack_Thread_MainTurret()

function Attack_Thread_MainTurret ( )

Definition at line 892 of file _hunter.gsc.

References Delay_Target_ToEnemy_Thread(), fire_for_time(), and FLAT_ORIGIN.

Referenced by state_combat_update().

◆ Attack_Thread_rocket()

◆ defaultRole()

◆ Delay_Target_ToEnemy_Thread()

function Delay_Target_ToEnemy_Thread ( point  ,
enemy  ,
timeToHit   
)

#debugstar( self.fakeTargetEnt.origin, 1000, (0,1,0) ); #/

Definition at line 854 of file _hunter.gsc.

References Spawn(), and WAIT_SERVER_FRAME.

Referenced by Attack_Thread_MainTurret().

◆ disable_turrets()

function disable_turrets ( )

Definition at line 449 of file _hunter.gsc.

References disable(), and side_turrets_forward().

Referenced by state_unaware_update().

◆ enable_turrets()

function enable_turrets ( )

Definition at line 442 of file _hunter.gsc.

References enable().

Referenced by state_combat_enter().

◆ get_enemies_in_view()

function get_enemies_in_view ( do_trace  )

Definition at line 1203 of file _hunter.gsc.

References ARRAY_ADD, getEnemyArray(), and is_valid_target().

Referenced by hunter_frontScanning().

◆ getEnemyArray()

function getEnemyArray ( include_ai  ,
include_player   
)

Definition at line 1128 of file _hunter.gsc.

References IS_TRUE.

Referenced by get_enemies_in_view().

◆ GetNextMovePosition_tactical()

◆ hunter_collision_player()

function hunter_collision_player ( )

Definition at line 1479 of file _hunter.gsc.

Referenced by hunter_scripted().

◆ hunter_emped()

function hunter_emped ( params  )

Definition at line 1587 of file _hunter.gsc.

References evaluate_connections().

Referenced by defaultRole().

◆ hunter_exit_vehicle()

function hunter_exit_vehicle ( )

Definition at line 1357 of file _hunter.gsc.

Referenced by hunter_scripted().

◆ hunter_fire_one_missile()

function hunter_fire_one_missile ( launcher_index  ,
target  ,
offset  ,
blinkLights  ,
waittimeAfterBlinkLights   
)

Definition at line 1064 of file _hunter.gsc.

References blink_lights_for_time(), HUNTER_MISSILE_WEAPON, and IS_TRUE.

Referenced by Attack_Thread_rocket().

◆ hunter_frontScanning()

◆ hunter_initialize()

◆ hunter_initTagArrays()

function hunter_initTagArrays ( )

Definition at line 107 of file _hunter.gsc.

References ARRAY_ADD, HUNTER_ENABLE_ATTACK_DRONES, and HUNTER_ENABLE_WEAKSPOTS.

Referenced by hunter_initialize().

◆ hunter_level_out_for_landing()

function hunter_level_out_for_landing ( )

Definition at line 1570 of file _hunter.gsc.

References emped(), and WAIT_SERVER_FRAME.

◆ hunter_lockon_fx()

function hunter_lockon_fx ( )

Definition at line 1121 of file _hunter.gsc.

References blink_lights_for_time().

Referenced by Attack_Thread_rocket(), and state_combat_enter().

◆ hunter_pain_for_time()

function hunter_pain_for_time ( time  ,
velocityStablizeParam  ,
rotationStablizeParam  ,
restoreLookPoint   
)

Definition at line 1620 of file _hunter.gsc.

References IS_TRUE, and Spawn().

Referenced by hunter_pain_small().

◆ hunter_pain_small()

function hunter_pain_small ( eAttacker  ,
damageType  ,
hitPoint  ,
hitDirection  ,
hitLocationInfo  ,
partName   
)

Definition at line 1655 of file _hunter.gsc.

References hunter_pain_for_time(), IS_TRUE, set_state(), and sign().

Referenced by HunterCallback_VehicleDamage().

◆ hunter_scanner_ClearLookTarget()

function hunter_scanner_ClearLookTarget ( )

Definition at line 1261 of file _hunter.gsc.

◆ hunter_scanner_init()

function hunter_scanner_init ( )

Definition at line 1220 of file _hunter.gsc.

References HUNTER_ENABLE_SCANNER_FX, HUNTER_SCANNER_TAG, spawn(), and Spawn().

Referenced by hunter_frontScanning().

◆ hunter_scanner_SetTargetEntity()

function hunter_scanner_SetTargetEntity ( targetEnt  ,
offset   
)

Definition at line 1245 of file _hunter.gsc.

◆ hunter_scanner_SetTargetPosition()

function hunter_scanner_SetTargetPosition ( targetPos  )

Definition at line 1268 of file _hunter.gsc.

Referenced by hunter_frontScanning().

◆ hunter_scripted()

◆ hunter_self_destruct()

function hunter_self_destruct ( )

Definition at line 1522 of file _hunter.gsc.

References WAIT_SERVER_FRAME.

◆ hunter_SpawnDrones()

function hunter_SpawnDrones ( )

Definition at line 135 of file _hunter.gsc.

References ARRAY_ADD, HUNTER_DRONE_SPAWNER, and HUNTER_ENABLE_ATTACK_DRONES.

◆ hunter_update_rumble()

function hunter_update_rumble ( )

Definition at line 1498 of file _hunter.gsc.

◆ HunterCallback_VehicleDamage()

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

◆ is_point_in_view()

function is_point_in_view ( point  ,
do_trace   
)

◆ is_valid_target()

function is_valid_target ( target  ,
do_trace   
)

Definition at line 1179 of file _hunter.gsc.

References is_dead_sentient(), is_point_in_view(), and IS_TRUE.

Referenced by get_enemies_in_view().

◆ kill_drones()

function kill_drones ( )

Definition at line 299 of file _hunter.gsc.

References SQR.

◆ Movement_Thread_StayInDistance()

function Movement_Thread_StayInDistance ( )

◆ Movement_Thread_Wander()

◆ player_fire_update_rocket()

function player_fire_update_rocket ( )

Definition at line 1449 of file _hunter.gsc.

References HUNTER_MISSILE_WEAPON_PLAYER.

Referenced by hunter_scripted().

◆ player_fire_update_side_turret_1()

function player_fire_update_side_turret_1 ( )

Definition at line 1411 of file _hunter.gsc.

Referenced by hunter_scripted().

◆ player_fire_update_side_turret_2()

function player_fire_update_side_turret_2 ( )

Definition at line 1430 of file _hunter.gsc.

Referenced by hunter_scripted().

◆ RegisterInterfaceAttributes()

function RegisterInterfaceAttributes ( archetype  )

Definition at line 89 of file _hunter.gsc.

References RegisterNumericInterface(), and RegisterSharedInterfaceAttributes().

Referenced by __init__().

◆ remote_missile_life()

function remote_missile_life ( )

Definition at line 1110 of file _hunter.gsc.

References waitLongDurationWithHostMigrationPause().

◆ shut_off_fx()

function shut_off_fx ( )

Definition at line 286 of file _hunter.gsc.

Referenced by state_death_enter().

◆ side_turret_get_best_target()

function side_turret_get_best_target ( a_potential_targets  ,
n_index   
)

◆ side_turrets_forward()

function side_turrets_forward ( )

Definition at line 457 of file _hunter.gsc.

Referenced by disable_turrets(), and hunter_initialize().

◆ state_combat_enter()

function state_combat_enter ( params  )

Definition at line 463 of file _hunter.gsc.

References enable_turrets(), HUNTER_COMBAT_SPEED_RATIO, and hunter_lockon_fx().

Referenced by defaultRole().

◆ state_combat_exit()

function state_combat_exit ( params  )

Definition at line 495 of file _hunter.gsc.

Referenced by defaultRole().

◆ state_combat_update()

function state_combat_update ( params  )

◆ state_death_enter()

function state_death_enter ( params  )

Definition at line 313 of file _hunter.gsc.

References defaultstate_death_enter(), and shut_off_fx().

Referenced by defaultRole().

◆ state_death_update()

function state_death_update ( params  )

◆ state_strafe_enter()

function state_strafe_enter ( params  )

Definition at line 506 of file _hunter.gsc.

References get_behavior_attribute(), and HUNTER_STRAFE_SPEED_RATIO.

Referenced by defaultRole().

◆ state_strafe_exit()

function state_strafe_exit ( params  )

Definition at line 603 of file _hunter.gsc.

References Cooldown(), and HUNTER_STRAFE_COOLDOWN.

Referenced by defaultRole().

◆ state_strafe_update()

◆ state_unaware_enter()

function state_unaware_enter ( params  )

Definition at line 355 of file _hunter.gsc.

References HUNTER_UNAWARE_SPEED_RATIO.

◆ state_unaware_exit()

function state_unaware_exit ( params  )

Definition at line 383 of file _hunter.gsc.

Referenced by defaultRole().

◆ state_unaware_update()

function state_unaware_update ( params  )

Definition at line 362 of file _hunter.gsc.

References disable_turrets(), Movement_Thread_Wander(), and set_state().

Referenced by defaultRole().