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

Go to the source code of this file.

Macros

#define DEBUG_ON   false
 
#define IGNORE_COOLDOWN   12
 
#define JUMP_COOLDOWN   11
 
#define SIEGEBOT_THEIA_BUNDLE   "siegebot_theia"
 
#define WEAPON_GUN_NORMAL   "siegebot_gun_turret"
 
#define WEAPON_GUN_SPRAY   "siegebot_gun_turret_spray"
 
#define WEAPON_JAVELIN   "siegebot_javelin_turret"
 

Functions

function __init__ ()
 
function _sort_by_distance2d (left, right, point)
 
function add_player_threat_boost (player, boost, timeSeconds)
 
function add_player_threat_damage (player, damage)
 
function attack_javelin ()
 
function attack_minigun_sweep ()
 
function attack_spike_minefield ()
 
function Attack_Thread_Gun ()
 
function Attack_Thread_Rocket ()
 
function can_jump_down (from_state, to_state, connection)
 
function can_jump_ground_to_ground (from_state, to_state, connection)
 
function can_jump_up (from_state, to_state, connection)
 
function clean_up_spawned ()
 
function Debug_line_to_target (target, time, color)
 
function defaultRole ()
 
function Delay_Target_ToEnemy_Thread (point, enemy, timeToHit)
 
function face_target (position, targetAngleDiff)
 
function footstep_damage (tag_name)
 
function footstep_left_monitor ()
 
function footstep_right_monitor ()
 
function get_enemy ()
 
function get_jumpon_target (distanceLimitMin, distanceLimitMax, idealDist, includingAI, minAngleDiffCos, mustJump)
 
function get_player_and_vehicle_array ()
 
function get_player_threat (player)
 
function get_player_vehicle (player)
 
function Get_Strong_Target ()
 
function GetNextMovePosition (enemy)
 
function highGroundPoint (distanceLimitMin, distanceLimitMax, pointsArray, idealDist)
 
function init_clientfields ()
 
function init_fake_targets ()
 
function init_player_threat (player)
 
function init_player_threat_all ()
 
function initJumpStruct ()
 
function is_valid_target (target)
 
function javeline_incoming (projectile)
 
function locomotion_start ()
 
function Movement_Thread ()
 
function pain_canenter ()
 
function pain_enter (params)
 
function pain_exit (params)
 
function pain_toggle (enabled)
 
function pain_update (params)
 
function path_update_interrupt ()
 
function Pin_first_three_spikes_to_ground (delay)
 
function pin_spike_to_ground ()
 
function pin_to_ground ()
 
function prepare_death_update (params)
 
function reset_player_threat (player)
 
function scripted_exit (params)
 
function should_prepare_death (from_state, to_state, connection)
 
function shoulder_light_focus (target)
 
function side_step ()
 
function siegebot_initialize ()
 
function spike_group_score (target, targetList, radius)
 
function spike_score (target)
 
function state_balconyCombat_enter (params)
 
function state_balconyCombat_exit (params)
 
function state_balconyCombat_update (params)
 
function state_death_update (params)
 
function state_groundCombat_exit (params)
 
function state_groundCombat_update (params)
 
function state_jump_exit (params)
 
function state_jump_update (params)
 
function state_jumpDown_enter (params)
 
function state_jumpDown_exit (params)
 
function state_jumpUp_enter (params)
 
function stopMovementAndSetBrake ()
 
function theia_callback_damage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal)
 
function toggle_rocketaim (is_aiming)
 
function too_close_to_high_ground (point, minDistance)
 
function update_target_player ()
 

Macro Definition Documentation

◆ DEBUG_ON

#define DEBUG_ON   false

Definition at line 51 of file _siegebot_theia.gsc.

◆ IGNORE_COOLDOWN

#define IGNORE_COOLDOWN   12

Definition at line 49 of file _siegebot_theia.gsc.

◆ JUMP_COOLDOWN

#define JUMP_COOLDOWN   11

Definition at line 48 of file _siegebot_theia.gsc.

◆ SIEGEBOT_THEIA_BUNDLE

#define SIEGEBOT_THEIA_BUNDLE   "siegebot_theia"

Definition at line 53 of file _siegebot_theia.gsc.

◆ WEAPON_GUN_NORMAL

#define WEAPON_GUN_NORMAL   "siegebot_gun_turret"

Definition at line 44 of file _siegebot_theia.gsc.

◆ WEAPON_GUN_SPRAY

#define WEAPON_GUN_SPRAY   "siegebot_gun_turret_spray"

Definition at line 45 of file _siegebot_theia.gsc.

◆ WEAPON_JAVELIN

#define WEAPON_JAVELIN   "siegebot_javelin_turret"

Definition at line 46 of file _siegebot_theia.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 64 of file _siegebot_theia.gsc.

References register(), siegebot_initialize(), and VERSION_SHIP.

◆ _sort_by_distance2d()

function _sort_by_distance2d ( left  ,
right  ,
point   
)

Definition at line 1590 of file _siegebot_theia.gsc.

Referenced by get_enemy(), and get_jumpon_target().

◆ add_player_threat_boost()

function add_player_threat_boost ( player  ,
boost  ,
timeSeconds   
)

Definition at line 1047 of file _siegebot_theia.gsc.

◆ add_player_threat_damage()

function add_player_threat_damage ( player  ,
damage   
)

Definition at line 1040 of file _siegebot_theia.gsc.

References damage().

◆ attack_javelin()

◆ attack_minigun_sweep()

◆ attack_spike_minefield()

◆ Attack_Thread_Gun()

function Attack_Thread_Gun ( )

◆ Attack_Thread_Rocket()

◆ can_jump_down()

function can_jump_down ( from_state  ,
to_state  ,
connection   
)

Definition at line 451 of file _siegebot_theia.gsc.

References get_jumpon_target(), and IsCooldownReady().

Referenced by defaultRole().

◆ can_jump_ground_to_ground()

function can_jump_ground_to_ground ( from_state  ,
to_state  ,
connection   
)

Definition at line 498 of file _siegebot_theia.gsc.

References get_jumpon_target(), and IsCooldownReady().

Referenced by defaultRole().

◆ can_jump_up()

function can_jump_up ( from_state  ,
to_state  ,
connection   
)

Definition at line 404 of file _siegebot_theia.gsc.

References highGroundPoint(), and IsCooldownReady().

Referenced by defaultRole().

◆ clean_up_spawned()

function clean_up_spawned ( )

Definition at line 233 of file _siegebot_theia.gsc.

Referenced by state_death_update().

◆ Debug_line_to_target()

function Debug_line_to_target ( target  ,
time  ,
color   
)

Definition at line 1147 of file _siegebot_theia.gsc.

References DEBUG_ON, stopTime, and WAIT_SERVER_FRAME.

Referenced by Attack_Thread_Rocket().

◆ defaultRole()

◆ Delay_Target_ToEnemy_Thread()

function Delay_Target_ToEnemy_Thread ( point  ,
enemy  ,
timeToHit   
)

◆ face_target()

function face_target ( position  ,
targetAngleDiff   
)

◆ footstep_damage()

function footstep_damage ( tag_name  )

Definition at line 836 of file _siegebot_theia.gsc.

References SQR, and tag_name.

Referenced by footstep_left_monitor(), and footstep_right_monitor().

◆ footstep_left_monitor()

function footstep_left_monitor ( )

Definition at line 860 of file _siegebot_theia.gsc.

References footstep_damage().

Referenced by state_groundCombat_update().

◆ footstep_right_monitor()

function footstep_right_monitor ( )

Definition at line 874 of file _siegebot_theia.gsc.

References footstep_damage().

Referenced by state_groundCombat_update().

◆ get_enemy()

function get_enemy ( )

Definition at line 2141 of file _siegebot_theia.gsc.

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

Referenced by attack_minigun_sweep().

◆ get_jumpon_target()

function get_jumpon_target ( distanceLimitMin  ,
distanceLimitMax  ,
idealDist  ,
includingAI  ,
minAngleDiffCos  ,
mustJump   
)

◆ get_player_and_vehicle_array()

function get_player_and_vehicle_array ( )

Definition at line 954 of file _siegebot_theia.gsc.

References ARRAY_ADD, and get_player_vehicle().

◆ get_player_threat()

function get_player_threat ( player  )

Definition at line 1061 of file _siegebot_theia.gsc.

References is_valid_target(), and SQR.

Referenced by update_target_player().

◆ get_player_vehicle()

function get_player_vehicle ( player  )

Definition at line 941 of file _siegebot_theia.gsc.

Referenced by get_player_and_vehicle_array().

◆ Get_Strong_Target()

function Get_Strong_Target ( )

Definition at line 1402 of file _siegebot_theia.gsc.

References is_valid_target(), and SQR.

Referenced by Movement_Thread().

◆ GetNextMovePosition()

◆ highGroundPoint()

function highGroundPoint ( distanceLimitMin  ,
distanceLimitMax  ,
pointsArray  ,
idealDist   
)

Definition at line 888 of file _siegebot_theia.gsc.

References result(), and SQR.

Referenced by can_jump_up().

◆ init_clientfields()

function init_clientfields ( )

Definition at line 141 of file _siegebot_theia.gsc.

References lights_on(), set(), and toggle_lights_group().

Referenced by siegebot_initialize().

◆ init_fake_targets()

function init_fake_targets ( )

Definition at line 1900 of file _siegebot_theia.gsc.

References ARRAY_ADD, and Spawn().

Referenced by attack_spike_minefield(), and siegebot_initialize().

◆ init_player_threat()

function init_player_threat ( player  )

Definition at line 972 of file _siegebot_theia.gsc.

References damage(), and reset_player_threat().

Referenced by init_player_threat_all().

◆ init_player_threat_all()

function init_player_threat_all ( )

◆ initJumpStruct()

function initJumpStruct ( )

Definition at line 367 of file _siegebot_theia.gsc.

References get(), get_array(), Spawn(), and SQR.

Referenced by siegebot_initialize().

◆ is_valid_target()

function is_valid_target ( target  )

◆ javeline_incoming()

function javeline_incoming ( projectile  )

Definition at line 1865 of file _siegebot_theia.gsc.

Referenced by attack_javelin().

◆ locomotion_start()

◆ Movement_Thread()

◆ pain_canenter()

function pain_canenter ( )

Definition at line 263 of file _siegebot_theia.gsc.

References get_current_state().

Referenced by theia_callback_damage().

◆ pain_enter()

function pain_enter ( params  )

Definition at line 269 of file _siegebot_theia.gsc.

References stopMovementAndSetBrake().

Referenced by defaultRole().

◆ pain_exit()

function pain_exit ( params  )

Definition at line 274 of file _siegebot_theia.gsc.

Referenced by defaultRole().

◆ pain_toggle()

function pain_toggle ( enabled  )

◆ pain_update()

function pain_update ( params  )

◆ path_update_interrupt()

function path_update_interrupt ( )

Definition at line 1489 of file _siegebot_theia.gsc.

References SQR.

Referenced by Movement_Thread().

◆ Pin_first_three_spikes_to_ground()

function Pin_first_three_spikes_to_ground ( delay  )

Definition at line 1163 of file _siegebot_theia.gsc.

References delay(), and pin_to_ground().

Referenced by Attack_Thread_Rocket().

◆ pin_spike_to_ground()

function pin_spike_to_ground ( )

Definition at line 1935 of file _siegebot_theia.gsc.

References DEBUG_ON, and pin_to_ground().

Referenced by attack_spike_minefield().

◆ pin_to_ground()

function pin_to_ground ( )

Definition at line 1921 of file _siegebot_theia.gsc.

References trace().

Referenced by Pin_first_three_spikes_to_ground(), and pin_spike_to_ground().

◆ prepare_death_update()

◆ reset_player_threat()

function reset_player_threat ( player  )

Definition at line 1008 of file _siegebot_theia.gsc.

Referenced by init_player_threat().

◆ scripted_exit()

function scripted_exit ( params  )

Definition at line 357 of file _siegebot_theia.gsc.

References Cooldown(), and JUMP_COOLDOWN.

Referenced by defaultRole().

◆ should_prepare_death()

function should_prepare_death ( from_state  ,
to_state  ,
connection   
)

Definition at line 307 of file _siegebot_theia.gsc.

Referenced by defaultRole().

◆ shoulder_light_focus()

function shoulder_light_focus ( target  )

Definition at line 1133 of file _siegebot_theia.gsc.

References SetTurretTarget().

Referenced by Attack_Thread_Gun().

◆ side_step()

function side_step ( )

◆ siegebot_initialize()

◆ spike_group_score()

function spike_group_score ( target  ,
targetList  ,
radius   
)

Definition at line 1983 of file _siegebot_theia.gsc.

References spike_score(), and SQR.

Referenced by attack_spike_minefield().

◆ spike_score()

function spike_score ( target  )

Definition at line 1958 of file _siegebot_theia.gsc.

Referenced by Attack_Thread_Rocket(), and spike_group_score().

◆ state_balconyCombat_enter()

function state_balconyCombat_enter ( params  )

Definition at line 678 of file _siegebot_theia.gsc.

References ClearAllLookingAndTargeting().

Referenced by defaultRole().

◆ state_balconyCombat_exit()

function state_balconyCombat_exit ( params  )

Definition at line 798 of file _siegebot_theia.gsc.

References ClearAllLookingAndTargeting().

Referenced by defaultRole().

◆ state_balconyCombat_update()

function state_balconyCombat_update ( params  )

◆ state_death_update()

function state_death_update ( params  )

◆ state_groundCombat_exit()

function state_groundCombat_exit ( params  )

Definition at line 933 of file _siegebot_theia.gsc.

Referenced by defaultRole().

◆ state_groundCombat_update()

◆ state_jump_exit()

function state_jump_exit ( params  )

Definition at line 516 of file _siegebot_theia.gsc.

References pain_toggle().

Referenced by defaultRole().

◆ state_jump_update()

◆ state_jumpDown_enter()

function state_jumpDown_enter ( params  )

◆ state_jumpDown_exit()

function state_jumpDown_exit ( params  )

Definition at line 521 of file _siegebot_theia.gsc.

References Cooldown(), JUMP_COOLDOWN, and pain_toggle().

Referenced by defaultRole().

◆ state_jumpUp_enter()

function state_jumpUp_enter ( params  )

◆ stopMovementAndSetBrake()

function stopMovementAndSetBrake ( )

◆ theia_callback_damage()

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

◆ toggle_rocketaim()

function toggle_rocketaim ( is_aiming  )

Definition at line 1382 of file _siegebot_theia.gsc.

References locomotion_start().

Referenced by Attack_Thread_Rocket().

◆ too_close_to_high_ground()

function too_close_to_high_ground ( point  ,
minDistance   
)

Definition at line 1597 of file _siegebot_theia.gsc.

References SQR.

Referenced by get_jumpon_target().

◆ update_target_player()

function update_target_player ( )

Definition at line 1118 of file _siegebot_theia.gsc.

References get_player_threat().

Referenced by Movement_Thread().