![]() |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
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 () |
| #define DEBUG_ON false |
Definition at line 51 of file _siegebot_theia.gsc.
| #define IGNORE_COOLDOWN 12 |
Definition at line 49 of file _siegebot_theia.gsc.
| #define JUMP_COOLDOWN 11 |
Definition at line 48 of file _siegebot_theia.gsc.
| #define SIEGEBOT_THEIA_BUNDLE "siegebot_theia" |
Definition at line 53 of file _siegebot_theia.gsc.
| #define WEAPON_GUN_NORMAL "siegebot_gun_turret" |
Definition at line 44 of file _siegebot_theia.gsc.
| #define WEAPON_GUN_SPRAY "siegebot_gun_turret_spray" |
Definition at line 45 of file _siegebot_theia.gsc.
| #define WEAPON_JAVELIN "siegebot_javelin_turret" |
Definition at line 46 of file _siegebot_theia.gsc.
| function __init__ | ( | ) |
Definition at line 64 of file _siegebot_theia.gsc.
References register(), siegebot_initialize(), and VERSION_SHIP.
| function _sort_by_distance2d | ( | left | , |
| right | , | ||
| point | |||
| ) |
Definition at line 1590 of file _siegebot_theia.gsc.
Referenced by get_enemy(), and get_jumpon_target().
| function add_player_threat_boost | ( | player | , |
| boost | , | ||
| timeSeconds | |||
| ) |
Definition at line 1047 of file _siegebot_theia.gsc.
| function add_player_threat_damage | ( | player | , |
| damage | |||
| ) |
Definition at line 1040 of file _siegebot_theia.gsc.
References damage().
| function attack_javelin | ( | ) |
Definition at line 1811 of file _siegebot_theia.gsc.
References Javelin_LoseTargetAtRightTime(), javeline_incoming(), locomotion_start(), waittill_any_timeout(), waittill_asm_complete(), and WEAPON_JAVELIN.
Referenced by state_balconyCombat_update().
| function attack_minigun_sweep | ( | ) |
Definition at line 2164 of file _siegebot_theia.gsc.
References Delay_Target_ToEnemy_Thread(), fire_for_time(), FLAT_ORIGIN, get_enemy(), locomotion_start(), set(), SetTurretTarget(), stopTime, trace(), and waittill_any_timeout().
Referenced by state_balconyCombat_update().
| function attack_spike_minefield | ( | ) |
Definition at line 1998 of file _siegebot_theia.gsc.
References DEBUG_ON, FLAT_ORIGIN, init_fake_targets(), locomotion_start(), pin_spike_to_ground(), spike_group_score(), SQR, waittill_any_timeout(), and waittill_asm_complete().
Referenced by state_balconyCombat_update().
| function Attack_Thread_Gun | ( | ) |
Definition at line 1176 of file _siegebot_theia.gsc.
References fire_for_time(), SetTurretTarget(), shoulder_light_focus(), SQR, and TimeSince().
Referenced by prepare_death_update(), and state_groundCombat_update().
| function Attack_Thread_Rocket | ( | ) |
Definition at line 1246 of file _siegebot_theia.gsc.
References clamp(), Cooldown(), Debug_line_to_target(), DEBUG_ON, FLAT_ORIGIN, IsCooldownReady(), Pin_first_three_spikes_to_ground(), spike_score(), SQR, TimeSince(), and toggle_rocketaim().
Referenced by prepare_death_update(), and state_groundCombat_update().
| 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().
| 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().
| 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().
| function clean_up_spawned | ( | ) |
Definition at line 233 of file _siegebot_theia.gsc.
Referenced by state_death_update().
| 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().
| function defaultRole | ( | ) |
Definition at line 150 of file _siegebot_theia.gsc.
References add_interrupt_connection(), add_state(), add_utility_connection(), can_jump_down(), can_jump_ground_to_ground(), can_jump_up(), Cooldown(), get_state_callbacks(), init_state_machine_for_role(), JUMP_COOLDOWN, pain_enter(), pain_exit(), pain_update(), prepare_death_update(), scripted_exit(), should_prepare_death(), StartInitialState(), state_balconyCombat_enter(), state_balconyCombat_exit(), state_balconyCombat_update(), state_death_update(), state_groundCombat_exit(), state_groundCombat_update(), state_jump_exit(), state_jump_update(), state_jumpDown_enter(), state_jumpDown_exit(), and state_jumpUp_enter().
| function Delay_Target_ToEnemy_Thread | ( | point | , |
| enemy | , | ||
| timeToHit | |||
| ) |
Definition at line 2096 of file _siegebot_theia.gsc.
References DEBUG_ON, SetTurretTarget(), SQR, WAIT_SERVER_FRAME, and waittill_any_timeout().
Referenced by attack_minigun_sweep().
| function face_target | ( | position | , |
| targetAngleDiff | |||
| ) |
Definition at line 1739 of file _siegebot_theia.gsc.
References DEBUG_ON, FLAT_ORIGIN, locomotion_start(), TimeSince(), and WAIT_SERVER_FRAME.
Referenced by state_balconyCombat_update(), and state_jump_update().
| function footstep_damage | ( | tag_name | ) |
Definition at line 836 of file _siegebot_theia.gsc.
Referenced by footstep_left_monitor(), and footstep_right_monitor().
| function footstep_left_monitor | ( | ) |
Definition at line 860 of file _siegebot_theia.gsc.
References footstep_damage().
Referenced by state_groundCombat_update().
| function footstep_right_monitor | ( | ) |
Definition at line 874 of file _siegebot_theia.gsc.
References footstep_damage().
Referenced by state_groundCombat_update().
| 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().
| function get_jumpon_target | ( | distanceLimitMin | , |
| distanceLimitMax | , | ||
| idealDist | , | ||
| includingAI | , | ||
| minAngleDiffCos | , | ||
| mustJump | |||
| ) |
Definition at line 1611 of file _siegebot_theia.gsc.
References _sort_by_distance2d(), FLAT_ORIGIN, is_valid_target(), SQR, and too_close_to_high_ground().
Referenced by can_jump_down(), and can_jump_ground_to_ground().
| function get_player_and_vehicle_array | ( | ) |
Definition at line 954 of file _siegebot_theia.gsc.
References ARRAY_ADD, and get_player_vehicle().
| 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().
| function get_player_vehicle | ( | player | ) |
Definition at line 941 of file _siegebot_theia.gsc.
Referenced by get_player_and_vehicle_array().
| function Get_Strong_Target | ( | ) |
Definition at line 1402 of file _siegebot_theia.gsc.
References is_valid_target(), and SQR.
Referenced by Movement_Thread().
| function GetNextMovePosition | ( | enemy | ) |
Definition at line 1510 of file _siegebot_theia.gsc.
References PositionQuery_DebugScores(), PositionQuery_Filter_EngagementDist(), PositionQuery_Filter_OutOfGoalAnchor(), PositionQuery_PostProcess_SortScore(), and SQR.
Referenced by Movement_Thread().
| function highGroundPoint | ( | distanceLimitMin | , |
| distanceLimitMax | , | ||
| pointsArray | , | ||
| idealDist | |||
| ) |
Definition at line 888 of file _siegebot_theia.gsc.
Referenced by can_jump_up().
| function init_clientfields | ( | ) |
Definition at line 141 of file _siegebot_theia.gsc.
References lights_on(), set(), and toggle_lights_group().
Referenced by siegebot_initialize().
| 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().
| 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().
| function init_player_threat_all | ( | ) |
Definition at line 995 of file _siegebot_theia.gsc.
References init_player_threat(), on_laststand(), on_player_killed(), and on_spawned().
Referenced by siegebot_initialize().
| function initJumpStruct | ( | ) |
Definition at line 367 of file _siegebot_theia.gsc.
References get(), get_array(), Spawn(), and SQR.
Referenced by siegebot_initialize().
| function is_valid_target | ( | target | ) |
Definition at line 2123 of file _siegebot_theia.gsc.
References IS_TRUE, and player_is_in_laststand().
Referenced by get_enemy(), get_jumpon_target(), get_player_threat(), and Get_Strong_Target().
| function javeline_incoming | ( | projectile | ) |
Definition at line 1865 of file _siegebot_theia.gsc.
Referenced by attack_javelin().
| function locomotion_start | ( | ) |
Definition at line 1388 of file _siegebot_theia.gsc.
Referenced by attack_javelin(), attack_minigun_sweep(), attack_spike_minefield(), face_target(), Movement_Thread(), prepare_death_update(), side_step(), siegebot_initialize(), and toggle_rocketaim().
| function Movement_Thread | ( | ) |
Definition at line 1429 of file _siegebot_theia.gsc.
References Cooldown(), Get_Strong_Target(), GetNextMovePosition(), IGNORE_COOLDOWN, IsCooldownReady(), locomotion_start(), path_update_interrupt(), update_target_player(), WAIT_SERVER_FRAME, and waittill_pathing_done().
Referenced by state_groundCombat_update().
| function pain_canenter | ( | ) |
Definition at line 263 of file _siegebot_theia.gsc.
References get_current_state().
Referenced by theia_callback_damage().
| function pain_enter | ( | params | ) |
Definition at line 269 of file _siegebot_theia.gsc.
References stopMovementAndSetBrake().
Referenced by defaultRole().
| function pain_exit | ( | params | ) |
Definition at line 274 of file _siegebot_theia.gsc.
Referenced by defaultRole().
| function pain_toggle | ( | enabled | ) |
Definition at line 258 of file _siegebot_theia.gsc.
Referenced by siegebot_initialize(), state_jump_exit(), state_jumpDown_enter(), state_jumpDown_exit(), and state_jumpUp_enter().
| function pain_update | ( | params | ) |
Definition at line 279 of file _siegebot_theia.gsc.
References AddCooldownTime(), evaluate_connections(), get_previous_state(), JUMP_COOLDOWN, set_state(), and waittill_asm_complete().
Referenced by defaultRole().
| function path_update_interrupt | ( | ) |
Definition at line 1489 of file _siegebot_theia.gsc.
References SQR.
Referenced by Movement_Thread().
| 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().
| 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().
| 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().
| function prepare_death_update | ( | params | ) |
Definition at line 318 of file _siegebot_theia.gsc.
References Attack_Thread_Gun(), Attack_Thread_Rocket(), Cooldown(), locomotion_start(), startTime, state_balconyCombat_update(), state_jump_update(), state_jumpUp_enter(), and TimeSince().
Referenced by defaultRole().
| function reset_player_threat | ( | player | ) |
Definition at line 1008 of file _siegebot_theia.gsc.
Referenced by init_player_threat().
| function scripted_exit | ( | params | ) |
Definition at line 357 of file _siegebot_theia.gsc.
References Cooldown(), and JUMP_COOLDOWN.
Referenced by defaultRole().
| function should_prepare_death | ( | from_state | , |
| to_state | , | ||
| connection | |||
| ) |
Definition at line 307 of file _siegebot_theia.gsc.
Referenced by defaultRole().
| function shoulder_light_focus | ( | target | ) |
Definition at line 1133 of file _siegebot_theia.gsc.
References SetTurretTarget().
Referenced by Attack_Thread_Gun().
| function side_step | ( | ) |
Definition at line 751 of file _siegebot_theia.gsc.
References cointoss(), DEBUG_ON, locomotion_start(), PHYSICS_TRACE_MASK_VEHICLE, trace(), and waittill_asm_complete().
Referenced by state_balconyCombat_update().
| function siegebot_initialize | ( | ) |
Definition at line 72 of file _siegebot_theia.gsc.
References CreateBlackBoardForEntity(), friendly_fire_shield(), get_max_health(), get_script_bundle(), init_clientfields(), init_fake_targets(), init_player_threat_all(), initJumpStruct(), InitThreatBias(), locomotion_start(), pain_toggle(), register_killstreak_bundle(), RegisterVehicleBlackBoardAttributes(), SIEGEBOT_THEIA_BUNDLE, SQR, and theia_callback_damage().
Referenced by __init__().
| 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().
| function spike_score | ( | target | ) |
Definition at line 1958 of file _siegebot_theia.gsc.
Referenced by Attack_Thread_Rocket(), and spike_group_score().
| function state_balconyCombat_enter | ( | params | ) |
Definition at line 678 of file _siegebot_theia.gsc.
References ClearAllLookingAndTargeting().
Referenced by defaultRole().
| function state_balconyCombat_exit | ( | params | ) |
Definition at line 798 of file _siegebot_theia.gsc.
References ClearAllLookingAndTargeting().
Referenced by defaultRole().
| function state_balconyCombat_update | ( | params | ) |
Definition at line 688 of file _siegebot_theia.gsc.
References attack_javelin(), attack_minigun_sweep(), attack_spike_minefield(), ClearCooldown(), evaluate_connections(), face_target(), side_step(), and SQR.
Referenced by defaultRole(), and prepare_death_update().
| function state_death_update | ( | params | ) |
Definition at line 216 of file _siegebot_theia.gsc.
References clean_up_spawned(), death_fx(), set_damage_fx_level(), set_death_model(), and stopMovementAndSetBrake().
Referenced by defaultRole().
| function state_groundCombat_exit | ( | params | ) |
Definition at line 933 of file _siegebot_theia.gsc.
Referenced by defaultRole().
| function state_groundCombat_update | ( | params | ) |
Definition at line 812 of file _siegebot_theia.gsc.
References Attack_Thread_Gun(), Attack_Thread_Rocket(), Cooldown(), evaluate_connections(), footstep_left_monitor(), footstep_right_monitor(), get_previous_state(), and Movement_Thread().
Referenced by defaultRole().
| function state_jump_exit | ( | params | ) |
Definition at line 516 of file _siegebot_theia.gsc.
References pain_toggle().
Referenced by defaultRole().
| function state_jump_update | ( | params | ) |
Definition at line 527 of file _siegebot_theia.gsc.
References Cooldown(), DEBUG_ON, evaluate_connections(), face_target(), FLAT_ORIGIN, IGNORE_COOLDOWN, impact_fx(), increment(), JUMP_COOLDOWN, SQR, stopMovementAndSetBrake(), TimeSince(), WAIT_SERVER_FRAME, and waittill_asm_complete().
Referenced by defaultRole(), and prepare_death_update().
| function state_jumpDown_enter | ( | params | ) |
Definition at line 469 of file _siegebot_theia.gsc.
References DEBUG_ON, pain_toggle(), PHYSICS_TRACE_MASK_VEHICLE, stopMovementAndSetBrake(), and trace().
Referenced by defaultRole().
| function state_jumpDown_exit | ( | params | ) |
Definition at line 521 of file _siegebot_theia.gsc.
References Cooldown(), JUMP_COOLDOWN, and pain_toggle().
Referenced by defaultRole().
| function state_jumpUp_enter | ( | params | ) |
Definition at line 422 of file _siegebot_theia.gsc.
References DEBUG_ON, pain_toggle(), PHYSICS_TRACE_MASK_VEHICLE, stopMovementAndSetBrake(), and trace().
Referenced by defaultRole(), and prepare_death_update().
| function stopMovementAndSetBrake | ( | ) |
Definition at line 1728 of file _siegebot_theia.gsc.
Referenced by pain_enter(), state_death_update(), state_jump_update(), state_jumpDown_enter(), and state_jumpUp_enter().
| function theia_callback_damage | ( | eInflictor | , |
| eAttacker | , | ||
| iDamage | , | ||
| iDFlags | , | ||
| sMeansOfDeath | , | ||
| weapon | , | ||
| vPoint | , | ||
| vDir | , | ||
| sHitLoc | , | ||
| psOffsetTime | , | ||
| damageFromUnderneath | , | ||
| modelIndex | , | ||
| partName | , | ||
| vSurfaceNormal | |||
| ) |
Definition at line 1774 of file _siegebot_theia.gsc.
References OnDamagePerWeapon(), pain_canenter(), set_damage_fx_level(), should_update_damage_fx_level(), SIEGEBOT_THEIA_BUNDLE, and toggle_lights_group().
Referenced by siegebot_initialize().
| function toggle_rocketaim | ( | is_aiming | ) |
Definition at line 1382 of file _siegebot_theia.gsc.
References locomotion_start().
Referenced by Attack_Thread_Rocket().
| function too_close_to_high_ground | ( | point | , |
| minDistance | |||
| ) |
Definition at line 1597 of file _siegebot_theia.gsc.
References SQR.
Referenced by get_jumpon_target().
| function update_target_player | ( | ) |
Definition at line 1118 of file _siegebot_theia.gsc.
References get_player_threat().
Referenced by Movement_Thread().