![]() |
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 | ANIMTREE "generic" |
#define | POINTS_MAX_DIST 2000 |
#define | STATE_PRIORITY_DEATH 100 |
#define | STATE_PRIORITY_DECREASE 20 |
#define | STATE_PRIORITY_INCREASE 50 |
Functions | |
function | __fire_for_rounds_internal (fireCount, fireInterval, turretIdx, target) |
function | __init__ () |
function | _cmp_val (left, right, descending) |
function | _less_than_val (left, right) |
function | _sort_by_score (left, right, descending) |
function | add_interrupt_connection (from_state_name, to_state_name, on_notify, checkfunc) |
function | add_state (name, enter_func, update_func, exit_func) |
function | add_utility_connection (from_state_name, to_state_name, checkfunc, defaultScore) |
function | AddCooldownTime (name, time_seconds) |
function | blink_lights_for_time (time) |
function | burning_death (params) |
function | burning_death_fx () |
function | burning_thread (attacker, inflictor) |
function | call_custom_add_state_callbacks () |
function | Callback_VehicleKilled (eInflictor, eAttacker, iDamage, sMeansOfDeath, weapon, vDir, sHitLoc, psOffsetTime) |
function | CanSeeEnemyFromPosition (position, enemy, sight_check_height) |
function | ClearAllCooldowns () |
function | ClearAllLookingAndTargeting () |
function | ClearAllMovement (zeroOutSpeed=false) |
function | ClearCooldown (name) |
function | collision_fx (normal) |
function | Cooldown (name, time_seconds) |
function | CooldownInit () |
function | death_radius_damage_special (radiusScale, meansOfDamage) |
function | DebugScore (entity) |
function | default_death (params) |
function | defaultstate_combat_enter (params) |
function | defaultstate_combat_exit (params) |
function | defaultstate_death_enter (params) |
function | defaultstate_death_update (params) |
function | defaultstate_driving_enter (params) |
function | defaultstate_driving_exit (params) |
function | defaultstate_emped_enter (params) |
function | defaultstate_emped_exit (params) |
function | defaultstate_emped_reenter (params) |
function | defaultstate_emped_update (params) |
function | defaultstate_off_enter (params) |
function | defaultstate_off_exit (params) |
function | defaultstate_pain_enter (params) |
function | defaultstate_pain_exit (params) |
function | defaultstate_scripted_enter (params) |
function | defaultstate_scripted_exit (params) |
function | defaultstate_surge_enter (params) |
function | defaultstate_surge_exit (params) |
function | defaultstate_surge_update (params) |
function | detonate (attacker) |
function | DistancePointToEngagementHeight (origin, enemy, engagementHeightMin, engagementHeightMax) |
function | emp_death_fx () |
function | emp_startup_fx () |
function | emped_death (params) |
function | EntityIsArchetype (entity, archetype) |
function | evaluate_connections (eval_func, params) |
function | FindNewPosition (sight_check_height) |
function | fire_for_rounds (fireCount, turretIdx, target) |
function | fire_for_time (totalFireTime, turretIdx, target, intervalScale=1.0) |
function | FireTurret (turretIdx, isFake) |
function | flash_team_switching_lights () |
function | get_current_state () |
function | get_death_type (params) |
function | get_next_state () |
function | get_previous_state () |
function | get_state_callbacks (statename) |
function | get_state_callbacks_for_role (rolename, statename) |
function | GetCooldownLeft (name) |
function | GetCooldownTimeRaw (name) |
function | GetEnemyTarget () |
function | GetTargetEyeOffset (target) |
function | GetTargetPos (target, geteye) |
function | gibbed_death (params) |
function | iff_notifyMeInNSec (time, note) |
function | iff_override (owner, time=60) |
function | iff_override_team_switch_behavior (team) |
function | immolate (attacker) |
function | init_state_machine_for_role (rolename) |
function | InitThreatBias () |
function | is_instate (statename) |
function | IsCooldownReady (name, timeForward_seconds) |
function | Javelin_LoseTargetAtRightTime (target) |
function | level_out_for_landing () |
function | nudge_collision () |
function | on_death_cleanup () |
function | owner_in_line_of_fire () |
function | path_update_interrupt (closest, attacker) |
function | PositionQuery_DebugScores (queryResult) |
function | PositionQuery_Filter_DistAwayFromTarget (queryResult, targetArray, distance, tooClosePenalty) |
function | PositionQuery_Filter_EngagementDist (queryResult, enemy, engagementDistanceMin, engagementDistanceMax) |
function | PositionQuery_Filter_EngagementHeight (queryResult, enemy, engagementHeightMin, engagementHeightMax) |
function | PositionQuery_Filter_OutOfGoalAnchor (queryResult, tolerance=1) |
function | PositionQuery_Filter_Random (queryResult, min, max) |
function | PositionQuery_PostProcess_RemoveOutOfGoalRadius (queryResult, tolerance=1) |
function | PositionQuery_PostProcess_SortScore (queryResult, descending=true) |
function | predicted_collision () |
function | register_custom_add_state_callback (func) |
function | RegisterSharedInterfaceAttributes (archetype) |
function | set_role (rolename) |
function | set_state (name, params) |
function | SetTurretTarget (target, turretIdx=0, offset=(0, 0, 0)) |
function | shared_callback_damage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, vDamageOrigin, psOffsetTime, damageFromUnderneath, modelIndex, partName, vSurfaceNormal) |
function | should_burn (vehicle, weapon, meansOfDeath, eInflictor, eAttacker) |
function | should_emp (vehicle, weapon, meansOfDeath, eInflictor, eAttacker) |
function | start_scripted (disable_death_state, no_clear_movement) |
function | StartInitialState (defaultState="combat") |
function | stop_scripted (statename) |
function | swap_team_after_time (attacker) |
function | target_hijackers () |
function | throw_off_balance (damageType, hitPoint, hitDirection, hitLocationInfo) |
function | TimeSince (startTimeInMilliseconds) |
function | try_detonate (closest, attacker) |
function | TurnOff () |
function | TurnOffAllAmbientAnims () |
function | TurnOffAllLightsAndLaser () |
function | TurnOn () |
function | UpdatePersonalThreatBias_AttackerLockedOnToMe (threat_bias, bias_duration, get_perfect_info, update_last_seen) |
function | UpdatePersonalThreatBias_AttackerLockingOnToMe (threat_bias, bias_duration, get_perfect_info, update_last_seen) |
function | UpdatePersonalThreatBias_Bots (threat_bias, bias_duration) |
function | UpdatePersonalThreatBias_ViaClientFlags (client_flags, threat_bias, bias_duration, get_perfect_info=true, update_last_seen=true) |
function | waittill_asm_complete (substate_to_wait, timeout=10) |
function | waittill_asm_terminated () |
function | waittill_asm_timeout (timeout) |
function | waittill_pathing_done (maxtime=15) |
function | waittill_pathresult (maxtime=0.5) |
#define ANIMTREE "generic" |
Definition at line 19 of file vehicle_ai_shared.gsc.
#define POINTS_MAX_DIST 2000 |
Definition at line 1813 of file vehicle_ai_shared.gsc.
#define STATE_PRIORITY_DEATH 100 |
Definition at line 20 of file vehicle_ai_shared.gsc.
#define STATE_PRIORITY_DECREASE 20 |
Definition at line 22 of file vehicle_ai_shared.gsc.
#define STATE_PRIORITY_INCREASE 50 |
Definition at line 21 of file vehicle_ai_shared.gsc.
function __fire_for_rounds_internal | ( | fireCount | , |
fireInterval | , | ||
turretIdx | , | ||
target | |||
) |
Definition at line 215 of file vehicle_ai_shared.gsc.
References FireTurret(), and owner_in_line_of_fire().
Referenced by fire_for_rounds(), and fire_for_time().
function __init__ | ( | ) |
Definition at line 32 of file vehicle_ai_shared.gsc.
function _cmp_val | ( | left | , |
right | , | ||
descending | |||
) |
Definition at line 2071 of file vehicle_ai_shared.gsc.
References _less_than_val().
Referenced by _sort_by_score().
function _less_than_val | ( | left | , |
right | |||
) |
Definition at line 2057 of file vehicle_ai_shared.gsc.
Referenced by _cmp_val().
function _sort_by_score | ( | left | , |
right | , | ||
descending | |||
) |
Definition at line 2083 of file vehicle_ai_shared.gsc.
References _cmp_val().
Referenced by PositionQuery_PostProcess_SortScore().
function add_interrupt_connection | ( | from_state_name | , |
to_state_name | , | ||
on_notify | , | ||
checkfunc | |||
) |
Definition at line 1022 of file vehicle_ai_shared.gsc.
Referenced by init_state_machine_for_role().
function add_state | ( | name | , |
enter_func | , | ||
update_func | , | ||
exit_func | |||
) |
Definition at line 1005 of file vehicle_ai_shared.gsc.
References name.
Referenced by init_state_machine_for_role().
function add_utility_connection | ( | from_state_name | , |
to_state_name | , | ||
checkfunc | , | ||
defaultScore | |||
) |
Definition at line 1028 of file vehicle_ai_shared.gsc.
Referenced by init_state_machine_for_role().
function AddCooldownTime | ( | name | , |
time_seconds | |||
) |
Definition at line 1988 of file vehicle_ai_shared.gsc.
References CooldownInit(), GetCooldownTimeRaw(), and name.
Referenced by pain_update().
function blink_lights_for_time | ( | time | ) |
Definition at line 648 of file vehicle_ai_shared.gsc.
References lights_off(), lights_on(), and startTime.
Referenced by bootup(), hunter_fire_one_missile(), hunter_lockon_fx(), iff_override_team_switch_behavior(), and quadtank_set_team().
function burning_death | ( | params | ) |
Definition at line 1266 of file vehicle_ai_shared.gsc.
References burning_death_fx(), death_radius_damage_special(), DeleteWhenSafe(), do_death_dynents(), and set_death_model().
Referenced by defaultstate_death_update().
function burning_death_fx | ( | ) |
Definition at line 1218 of file vehicle_ai_shared.gsc.
Referenced by burning_death().
function burning_thread | ( | attacker | , |
inflictor | |||
) |
Definition at line 533 of file vehicle_ai_shared.gsc.
References damage(), startTime, TimeSince(), and toggle_burn_fx().
Referenced by immolate(), raps_callback_damage(), and shared_callback_damage().
function call_custom_add_state_callbacks | ( | ) |
Definition at line 1152 of file vehicle_ai_shared.gsc.
Referenced by defaultRole().
function Callback_VehicleKilled | ( | eInflictor | , |
eAttacker | , | ||
iDamage | , | ||
sMeansOfDeath | , | ||
weapon | , | ||
vDir | , | ||
sHitLoc | , | ||
psOffsetTime | |||
) |
Definition at line 1167 of file vehicle_ai_shared.gsc.
References IS_TRUE, and set_state().
Referenced by init_state_machine_for_role().
function CanSeeEnemyFromPosition | ( | position | , |
enemy | , | ||
sight_check_height | |||
) |
Definition at line 1815 of file vehicle_ai_shared.gsc.
Referenced by path_update_interrupt().
function ClearAllCooldowns | ( | ) |
Definition at line 1995 of file vehicle_ai_shared.gsc.
Referenced by shoot_at_target().
function ClearAllLookingAndTargeting | ( | ) |
Definition at line 697 of file vehicle_ai_shared.gsc.
Referenced by death_suicide_crash(), defaultstate_death_enter(), defaultstate_driving_enter(), defaultstate_driving_exit(), defaultstate_emped_enter(), defaultstate_off_enter(), defaultstate_pain_enter(), defaultstate_pain_exit(), defaultstate_scripted_enter(), defaultstate_scripted_exit(), state_balconyCombat_enter(), state_balconyCombat_exit(), state_death_update(), state_idgun_crush_enter(), state_stationary_enter(), state_stationary_exit(), state_stationary_update(), and state_surge_exit().
function ClearAllMovement | ( | zeroOutSpeed | = false | ) |
Definition at line 707 of file vehicle_ai_shared.gsc.
Referenced by death_suicide_crash(), defaultstate_death_enter(), defaultstate_driving_enter(), defaultstate_driving_exit(), defaultstate_emped_enter(), defaultstate_off_enter(), defaultstate_pain_enter(), defaultstate_pain_exit(), defaultstate_scripted_enter(), defaultstate_scripted_exit(), do_melee_attack(), do_ranged_attack(), state_death_update(), state_idgun_crush_enter(), state_idgun_flying_crush_enter(), state_melee_combat_update(), state_range_combat_update(), state_stationary_enter(), state_stationary_exit(), state_stationary_update(), and state_surge_exit().
function ClearCooldown | ( | name | ) |
Definition at line 1981 of file vehicle_ai_shared.gsc.
References CooldownInit(), and name.
Referenced by quadtank_disabletrophy(), and state_balconyCombat_update().
function collision_fx | ( | normal | ) |
Definition at line 427 of file vehicle_ai_shared.gsc.
Referenced by fall_and_bounce(), and nudge_collision().
function Cooldown | ( | name | , |
time_seconds | |||
) |
Definition at line 1943 of file vehicle_ai_shared.gsc.
References CooldownInit(), and name.
Referenced by aim_and_fire_rocket_launcher(), amws_initialize(), attack_thread(), Attack_Thread_rocket(), Attack_Thread_Rocket(), defaultRole(), defaultstate_emped_update(), do_ranged_attack(), Movement_Thread(), path_update_interrupt(), prepare_death_update(), quadtank_disabletrophy(), quadtank_emped(), quadtank_weapon_think_cannon(), repulsor_fx(), scripted_exit(), state_combat_update(), state_emped_update(), state_groundCombat_update(), state_jump_update(), state_jumpDown_exit(), state_melee_combat_update(), state_range_combat_update(), state_stationary_exit(), state_stationary_update(), and state_strafe_exit().
function CooldownInit | ( | ) |
Definition at line 1935 of file vehicle_ai_shared.gsc.
Referenced by AddCooldownTime(), ClearCooldown(), Cooldown(), GetCooldownLeft(), GetCooldownTimeRaw(), and IsCooldownReady().
function death_radius_damage_special | ( | radiusScale | , |
meansOfDamage | |||
) |
Definition at line 1244 of file vehicle_ai_shared.gsc.
References WAIT_SERVER_FRAME.
Referenced by burning_death(), and emped_death().
function DebugScore | ( | entity | ) |
Definition at line 2024 of file vehicle_ai_shared.gsc.
Referenced by PositionQuery_DebugScores().
function default_death | ( | params | ) |
Definition at line 1298 of file vehicle_ai_shared.gsc.
References death_fx(), death_radius_damage(), FreeWhenSafe(), set_death_model(), VAL, and waitForTime().
Referenced by defaultstate_death_update().
function defaultstate_combat_enter | ( | params | ) |
Definition at line 1416 of file vehicle_ai_shared.gsc.
Referenced by init_state_machine_for_role().
function defaultstate_combat_exit | ( | params | ) |
Definition at line 1420 of file vehicle_ai_shared.gsc.
Referenced by init_state_machine_for_role().
function defaultstate_death_enter | ( | params | ) |
Definition at line 1200 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), ClearAllMovement(), death_cleanup_level_variables(), toggle_exhaust_fx(), toggle_sounds(), toggle_tread_fx(), TurnOffAllAmbientAnims(), and TurnOffAllLightsAndLaser().
Referenced by init_state_machine_for_role(), and state_death_enter().
function defaultstate_death_update | ( | params | ) |
Definition at line 1355 of file vehicle_ai_shared.gsc.
References burning_death(), default_death(), delete_on_death(), DeleteWhenSafe(), emped_death(), get_death_type(), gibbed_death(), and VAL.
Referenced by init_state_machine_for_role(), and state_death_update().
function defaultstate_driving_enter | ( | params | ) |
Definition at line 1742 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), ClearAllMovement(), and monitor_damage_as_occupant().
Referenced by driving_enter(), and init_state_machine_for_role().
function defaultstate_driving_exit | ( | params | ) |
Definition at line 1774 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), ClearAllMovement(), and stop_monitor_damage_as_occupant().
Referenced by init_state_machine_for_role().
function defaultstate_emped_enter | ( | params | ) |
Definition at line 1427 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), ClearAllMovement(), lights_off(), toggle_emp_fx(), toggle_exhaust_fx(), toggle_sounds(), and toggle_tread_fx().
Referenced by init_state_machine_for_role(), and state_emped_enter().
function defaultstate_emped_exit | ( | params | ) |
Definition at line 1488 of file vehicle_ai_shared.gsc.
References lights_on(), nudge_collision(), toggle_exhaust_fx(), toggle_sounds(), and toggle_tread_fx().
Referenced by init_state_machine_for_role(), and state_emped_exit().
function defaultstate_emped_reenter | ( | params | ) |
Definition at line 1507 of file vehicle_ai_shared.gsc.
Referenced by init_state_machine_for_role().
function defaultstate_emped_update | ( | params | ) |
Definition at line 1465 of file vehicle_ai_shared.gsc.
References Cooldown(), emp_startup_fx(), evaluate_connections(), GetCooldownLeft(), IsCooldownReady(), and toggle_emp_fx().
Referenced by init_state_machine_for_role(), and state_emped_update().
function defaultstate_off_enter | ( | params | ) |
Definition at line 1681 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), ClearAllMovement(), level_out_for_landing(), toggle_exhaust_fx(), toggle_sounds(), toggle_tread_fx(), TurnOffAllAmbientAnims(), and TurnOffAllLightsAndLaser().
Referenced by init_state_machine_for_role(), and state_off_enter().
function defaultstate_off_exit | ( | params | ) |
Definition at line 1711 of file vehicle_ai_shared.gsc.
References get_next_state(), lights_on(), nudge_collision(), toggle_exhaust_fx(), toggle_sounds(), and toggle_tread_fx().
Referenced by init_state_machine_for_role(), and state_off_exit().
function defaultstate_pain_enter | ( | params | ) |
Definition at line 1798 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), and ClearAllMovement().
Referenced by init_state_machine_for_role().
function defaultstate_pain_exit | ( | params | ) |
Definition at line 1804 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), and ClearAllMovement().
Referenced by init_state_machine_for_role().
function defaultstate_scripted_enter | ( | params | ) |
Definition at line 1388 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), and ClearAllMovement().
Referenced by init_state_machine_for_role().
function defaultstate_scripted_exit | ( | params | ) |
Definition at line 1404 of file vehicle_ai_shared.gsc.
References ClearAllLookingAndTargeting(), and ClearAllMovement().
Referenced by init_state_machine_for_role().
function defaultstate_surge_enter | ( | params | ) |
Definition at line 1516 of file vehicle_ai_shared.gsc.
Referenced by init_state_machine_for_role().
function defaultstate_surge_exit | ( | params | ) |
Definition at line 1520 of file vehicle_ai_shared.gsc.
Referenced by init_state_machine_for_role().
function defaultstate_surge_update | ( | params | ) |
Definition at line 1524 of file vehicle_ai_shared.gsc.
References detonate(), flash_team_switching_lights(), path_update_interrupt(), startTime, swap_team_after_time(), try_detonate(), and waittill_pathing_done().
Referenced by init_state_machine_for_role(), and state_surge_update().
function detonate | ( | attacker | ) |
Definition at line 1650 of file vehicle_ai_shared.gsc.
References kill().
Referenced by _missileDetonate(), check_octobomb_on_train(), defaultstate_surge_update(), DestroyActiveVehicles(), placeable_mine_damage(), proximity_detonate(), RapsDetonateCountdown(), SpawnFlakRocket(), stuck_to_player_team_change(), stuckToPlayerTeamChange(), swarm_killstreak_end(), try_detonate(), wait_and_detonate(), and watchDamage().
function DistancePointToEngagementHeight | ( | origin | , |
enemy | , | ||
engagementHeightMin | , | ||
engagementHeightMax | |||
) |
Definition at line 2208 of file vehicle_ai_shared.gsc.
References result().
function emp_death_fx | ( | ) |
Definition at line 1231 of file vehicle_ai_shared.gsc.
Referenced by emped_death().
function emp_startup_fx | ( | ) |
Definition at line 1457 of file vehicle_ai_shared.gsc.
Referenced by defaultstate_emped_update(), and state_emped_update().
function emped_death | ( | params | ) |
Definition at line 1277 of file vehicle_ai_shared.gsc.
References death_radius_damage_special(), DeleteWhenSafe(), do_death_dynents(), emp_death_fx(), and set_death_model().
Referenced by defaultstate_death_update().
function EntityIsArchetype | ( | entity | , |
archetype | |||
) |
Definition at line 83 of file vehicle_ai_shared.gsc.
Referenced by do_melee(), and QuadtankCallback_VehicleDamage().
function evaluate_connections | ( | eval_func | , |
params | |||
) |
Definition at line 921 of file vehicle_ai_shared.gsc.
Referenced by defaultstate_emped_update().
function FindNewPosition | ( | sight_check_height | ) |
Definition at line 1821 of file vehicle_ai_shared.gsc.
References get_target(), has_turret(), POINTS_MAX_DIST, PositionQuery_DebugScores(), PositionQuery_Filter_EngagementDist(), and PositionQuery_Filter_OutOfGoalAnchor().
Referenced by quadtank_movementupdate().
function fire_for_rounds | ( | fireCount | , |
turretIdx | , | ||
target | |||
) |
Description:
"Function Name: fire_for_rounds( <fireCount>, [turretIdx], [target] )"
"Summary: fire a weapon for a set of period" "CallOn: a vehicle"
"Mandatory Argument(s): <fireCount> : how many rounds should the weapon fire"
"Optional Argument(s): [turretIdx] : which weapon to use. use number to get turret on vehicle. if undefined the vehicle will try to use it's main weapon."
"Optional Argument(s): [target] : what target it is shooting at. this will affect hit chance."
"Example:vehicle vehicle_ai::fire_for_rounds( 5 ); "
Definition at line 197 of file vehicle_ai_shared.gsc.
References __fire_for_rounds_internal().
Referenced by FireRocketLauncher().
function fire_for_time | ( | totalFireTime | , |
turretIdx | , | ||
target | , | ||
intervalScale | = 1.0 |
||
) |
Description:
"Function Name: fire_for_time( <totalFireTime>, [turretIdx], [target] )"
"Summary: fire a weapon for a set of period" "CallOn: a vehicle"
"Mandatory Argument(s): <totalFireTime> : how long should the weapon fire"
"Optional Argument(s): [turretIdx] : which weapon to use. use number to get turret on vehicle. if undefined the vehicle will try to use it's main weapon."
"Optional Argument(s): [target] : what target it is shooting at. this will affect hit chance."
"Example:vehicle vehicle_ai::fire_for_time( RandomFloatRange( 0.3, 0.6 ) ); "
Definition at line 164 of file vehicle_ai_shared.gsc.
References __fire_for_rounds_internal().
function FireTurret | ( | turretIdx | , |
isFake | |||
) |
Definition at line 309 of file vehicle_ai_shared.gsc.
Referenced by __fire_for_rounds_internal().
function flash_team_switching_lights | ( | ) |
Definition at line 1660 of file vehicle_ai_shared.gsc.
References lights_off(), and lights_on().
Referenced by defaultstate_surge_update().
function get_current_state | ( | ) |
Definition at line 960 of file vehicle_ai_shared.gsc.
Referenced by nudge_collision(), pain_canenter(), quadtank_disabletrophy(), special_attractor_spawn(), and start_timed_vortex().
function get_death_type | ( | params | ) |
Definition at line 1323 of file vehicle_ai_shared.gsc.
References delete_on_death().
Referenced by defaultstate_death_update(), and state_death_update().
function get_next_state | ( | ) |
Definition at line 982 of file vehicle_ai_shared.gsc.
Referenced by defaultstate_off_exit(), and quadtank_disabletrophy().
function get_previous_state | ( | ) |
Definition at line 971 of file vehicle_ai_shared.gsc.
Referenced by pain_update(), state_groundCombat_update(), and state_strafe_update().
function get_state_callbacks | ( | statename | ) |
Definition at line 927 of file vehicle_ai_shared.gsc.
Referenced by croc_think(), defaultRole(), InitFlakDrone(), InitSentinel(), patrol(), start_timed_vortex(), and state_idgun_flying_crush_update().
function get_state_callbacks_for_role | ( | rolename | , |
statename | |||
) |
Definition at line 944 of file vehicle_ai_shared.gsc.
function GetCooldownLeft | ( | name | ) |
Definition at line 1961 of file vehicle_ai_shared.gsc.
References CooldownInit(), GetCooldownTimeRaw(), and name.
Referenced by defaultstate_emped_update(), quadtank_disabletrophy(), quadtank_emped(), and state_emped_update().
function GetCooldownTimeRaw | ( | name | ) |
Definition at line 1950 of file vehicle_ai_shared.gsc.
References CooldownInit(), and name.
Referenced by AddCooldownTime(), and GetCooldownLeft().
function GetEnemyTarget | ( | ) |
Definition at line 101 of file vehicle_ai_shared.gsc.
Referenced by raps_get_target_position(), and spider_get_target_position().
function GetTargetEyeOffset | ( | target | ) |
Definition at line 142 of file vehicle_ai_shared.gsc.
Referenced by turretFireUpdate().
function GetTargetPos | ( | target | , |
geteye | |||
) |
Definition at line 115 of file vehicle_ai_shared.gsc.
References IS_TRUE.
Referenced by go_to_near_owner(), go_to_owner(), raps_get_target_position(), spider_get_target_position(), and state_combat_update().
function gibbed_death | ( | params | ) |
Definition at line 1288 of file vehicle_ai_shared.gsc.
References death_fx(), death_radius_damage(), DeleteWhenSafe(), do_death_dynents(), and set_death_model().
Referenced by defaultstate_death_update().
function iff_notifyMeInNSec | ( | time | , |
note | |||
) |
Definition at line 586 of file vehicle_ai_shared.gsc.
Referenced by iff_override().
function iff_override | ( | owner | , |
time | = 60 |
||
) |
Definition at line 592 of file vehicle_ai_shared.gsc.
References iff_notifyMeInNSec(), iff_override_team_switch_behavior(), IS_TRUE, timeout(), and waittill_any_timeout().
function iff_override_team_switch_behavior | ( | team | ) |
Definition at line 625 of file vehicle_ai_shared.gsc.
References blink_lights_for_time(), lights_off(), start_scripted(), and stop_scripted().
Referenced by iff_override().
function immolate | ( | attacker | ) |
Definition at line 526 of file vehicle_ai_shared.gsc.
References burning_thread().
function init_state_machine_for_role | ( | rolename | ) |
Definition at line 1034 of file vehicle_ai_shared.gsc.
References add_interrupt_connection(), add_state(), add_utility_connection(), Callback_VehicleKilled(), create(), defaultstate_combat_enter(), defaultstate_combat_exit(), defaultstate_death_enter(), defaultstate_death_update(), defaultstate_driving_enter(), defaultstate_driving_exit(), defaultstate_emped_enter(), defaultstate_emped_exit(), defaultstate_emped_reenter(), defaultstate_emped_update(), defaultstate_off_enter(), defaultstate_off_exit(), defaultstate_pain_enter(), defaultstate_pain_exit(), defaultstate_scripted_enter(), defaultstate_scripted_exit(), defaultstate_surge_enter(), defaultstate_surge_exit(), defaultstate_surge_update(), on_death_cleanup(), set_role(), and set_state().
Referenced by croc_think(), defaultRole(), InitFlakDrone(), InitSentinel(), and patrol().
function InitThreatBias | ( | ) |
Definition at line 60 of file vehicle_ai_shared.gsc.
Referenced by hunter_initialize(), quadtank_initialize(), siegebot_initialize(), turret_initialze(), and wasp_initialize().
function is_instate | ( | statename | ) |
Definition at line 994 of file vehicle_ai_shared.gsc.
Referenced by quadtank_set_team(), sentinel_IntroCompleted(), and stop_scripted().
function IsCooldownReady | ( | name | , |
timeForward_seconds | |||
) |
Definition at line 1968 of file vehicle_ai_shared.gsc.
References CooldownInit(), and name.
Referenced by attack_thread(), Attack_Thread_rocket(), Attack_Thread_Rocket(), can_jump_down(), can_jump_ground_to_ground(), can_jump_up(), defaultstate_emped_update(), Movement_Thread(), path_update_interrupt(), quadtank_disabletrophy(), quadtank_emped(), quadtank_weapon_think_cannon(), repulsor_fx(), should_switch_to_melee(), should_switch_to_range(), state_combat_update(), state_emped_update(), state_range_combat_attack(), and state_stationary_update().
function Javelin_LoseTargetAtRightTime | ( | target | ) |
Definition at line 314 of file vehicle_ai_shared.gsc.
References SQR.
Referenced by attack_javelin(), and Attack_Thread_rocket().
function level_out_for_landing | ( | ) |
Definition at line 507 of file vehicle_ai_shared.gsc.
References WAIT_SERVER_FRAME.
Referenced by defaultstate_off_enter().
function nudge_collision | ( | ) |
Definition at line 437 of file vehicle_ai_shared.gsc.
References clamp(), collision_fx(), death_fire_loop_audio(), get_current_state(), and sign().
Referenced by amws_initialize(), defaultstate_emped_exit(), defaultstate_off_exit(), hunter_initialize(), InitFlakDrone(), InitSentinel(), parasite_initialize(), scout_drone_initialize(), sentinel_drone_initialize(), set_movement_and_accel(), and wasp_initialize().
function on_death_cleanup | ( | ) |
Definition at line 1187 of file vehicle_ai_shared.gsc.
References clear().
Referenced by init_state_machine_for_role().
function owner_in_line_of_fire | ( | ) |
Definition at line 264 of file vehicle_ai_shared.gsc.
References VAL.
Referenced by __fire_for_rounds_internal(), and turretFireUpdate().
function path_update_interrupt | ( | closest | , |
attacker | |||
) |
Definition at line 1603 of file vehicle_ai_shared.gsc.
References SQR, and try_detonate().
Referenced by defaultstate_surge_update().
function PositionQuery_DebugScores | ( | queryResult | ) |
Definition at line 2010 of file vehicle_ai_shared.gsc.
References DebugScore(), and IS_TRUE.
Referenced by FindNewPosition(), GetNextMovePosition(), GetNextMovePosition_evasive(), GetNextMovePosition_forwardjuke(), GetNextMovePosition_ranged(), GetNextMovePosition_tactical(), GetNextMovePosition_unaware(), GetNextMovePosition_wander(), go_to_near_owner(), Movement_Thread_Wander(), sentinel_GetNextMovePositionTactical(), state_combat_update(), state_melee_combat_update(), state_off_update(), and state_strafe_update().
function PositionQuery_Filter_DistAwayFromTarget | ( | queryResult | , |
targetArray | , | ||
distance | , | ||
tooClosePenalty | |||
) |
Definition at line 2168 of file vehicle_ai_shared.gsc.
References SQR.
Referenced by GetNextMovePosition_ranged(), and GetNextMovePosition_tactical().
function PositionQuery_Filter_EngagementDist | ( | queryResult | , |
enemy | , | ||
engagementDistanceMin | , | ||
engagementDistanceMax | |||
) |
Definition at line 2116 of file vehicle_ai_shared.gsc.
References FLAT_ORIGIN, and SQR.
Referenced by FindNewPosition(), GetNextMovePosition(), GetNextMovePosition_forwardjuke(), GetNextMovePosition_ranged(), GetNextMovePosition_tactical(), and sentinel_GetNextMovePositionTactical().
function PositionQuery_Filter_EngagementHeight | ( | queryResult | , |
enemy | , | ||
engagementHeightMin | , | ||
engagementHeightMax | |||
) |
Definition at line 2229 of file vehicle_ai_shared.gsc.
Referenced by GetNextMovePosition_tactical().
function PositionQuery_Filter_OutOfGoalAnchor | ( | queryResult | , |
tolerance | = 1 |
||
) |
Definition at line 2104 of file vehicle_ai_shared.gsc.
Referenced by FindNewPosition(), GetNextMovePosition(), GetNextMovePosition_forwardjuke(), GetNextMovePosition_ranged(), GetNextMovePosition_tactical(), GetNextMovePosition_unaware(), GetNextMovePosition_wander(), Movement_Thread_Wander(), sentinel_GetNextMovePositionTactical(), state_combat_update(), state_off_update(), and state_strafe_update().
function PositionQuery_Filter_Random | ( | queryResult | , |
min | , | ||
max | |||
) |
Definition at line 2088 of file vehicle_ai_shared.gsc.
Referenced by GetNextMovePosition_tactical(), and Movement_Thread_Wander().
function PositionQuery_PostProcess_RemoveOutOfGoalRadius | ( | queryResult | , |
tolerance | = 1 |
||
) |
Definition at line 2251 of file vehicle_ai_shared.gsc.
function PositionQuery_PostProcess_SortScore | ( | queryResult | , |
descending | = true |
||
) |
Definition at line 2097 of file vehicle_ai_shared.gsc.
References _sort_by_score().
Referenced by GetNextMovePosition(), GetNextMovePosition_tactical(), GetNextMovePosition_unaware(), go_to_near_owner(), Movement_Thread_Wander(), and state_strafe_update().
function predicted_collision | ( | ) |
Definition at line 411 of file vehicle_ai_shared.gsc.
function register_custom_add_state_callback | ( | func | ) |
Definition at line 1142 of file vehicle_ai_shared.gsc.
Referenced by __main__().
function RegisterSharedInterfaceAttributes | ( | archetype | ) |
Definition at line 36 of file vehicle_ai_shared.gsc.
References array, and RegisterMatchedInterface().
Referenced by RegisterInterfaceAttributes().
function set_role | ( | rolename | ) |
Definition at line 910 of file vehicle_ai_shared.gsc.
Referenced by croc_think(), init_state_machine_for_role(), and patrol().
function set_state | ( | name | , |
params | |||
) |
Definition at line 916 of file vehicle_ai_shared.gsc.
References name.
Referenced by Callback_VehicleKilled(), init_state_machine_for_role(), start_scripted(), StartInitialState(), and stop_scripted().
function SetTurretTarget | ( | target | , |
turretIdx | = 0 , |
||
offset | = (0,0,0) |
||
) |
Definition at line 277 of file vehicle_ai_shared.gsc.
Referenced by attack_minigun_sweep(), Attack_Thread_Gun(), Attack_Thread_rocket(), Delay_Target_ToEnemy_Thread(), and shoulder_light_focus().
function shared_callback_damage | ( | eInflictor | , |
eAttacker | , | ||
iDamage | , | ||
iDFlags | , | ||
sMeansOfDeath | , | ||
weapon | , | ||
vPoint | , | ||
vDir | , | ||
sHitLoc | , | ||
vDamageOrigin | , | ||
psOffsetTime | , | ||
damageFromUnderneath | , | ||
modelIndex | , | ||
partName | , | ||
vSurfaceNormal | |||
) |
Definition at line 726 of file vehicle_ai_shared.gsc.
References burning_thread(), set_damage_fx_level(), should_burn(), should_emp(), and should_update_damage_fx_level().
Referenced by drone_callback_damage(), QuadtankCallback_VehicleDamage(), and turretCallback_VehicleDamage().
function should_burn | ( | vehicle | , |
weapon | , | ||
meansOfDeath | , | ||
eInflictor | , | ||
eAttacker | |||
) |
Definition at line 803 of file vehicle_ai_shared.gsc.
Referenced by raps_callback_damage(), and shared_callback_damage().
function should_emp | ( | vehicle | , |
weapon | , | ||
meansOfDeath | , | ||
eInflictor | , | ||
eAttacker | |||
) |
Definition at line 765 of file vehicle_ai_shared.gsc.
Referenced by HunterCallback_VehicleDamage(), raps_callback_damage(), shared_callback_damage(), and siegebot_callback_damage().
function start_scripted | ( | disable_death_state | , |
no_clear_movement | |||
) |
Definition at line 886 of file vehicle_ai_shared.gsc.
References set_state().
Referenced by iff_override_team_switch_behavior().
function StartInitialState | ( | defaultState | = "combat" | ) |
Definition at line 866 of file vehicle_ai_shared.gsc.
References set_state().
Referenced by defaultRole(), InitFlakDrone(), and InitSentinel().
function stop_scripted | ( | statename | ) |
Definition at line 894 of file vehicle_ai_shared.gsc.
References is_instate(), and set_state().
Referenced by iff_override_team_switch_behavior().
function swap_team_after_time | ( | attacker | ) |
Definition at line 1627 of file vehicle_ai_shared.gsc.
Referenced by defaultstate_surge_update().
function target_hijackers | ( | ) |
Definition at line 2312 of file vehicle_ai_shared.gsc.
Referenced by quadtank_initialize(), and siegebot_initialize().
function throw_off_balance | ( | damageType | , |
hitPoint | , | ||
hitDirection | , | ||
hitLocationInfo | |||
) |
Definition at line 391 of file vehicle_ai_shared.gsc.
References sign().
Referenced by scout_callback_damage().
function TimeSince | ( | startTimeInMilliseconds | ) |
Definition at line 1930 of file vehicle_ai_shared.gsc.
Referenced by Attack_Thread_Gun(), Attack_Thread_Rocket(), burning_thread(), do_ranged_attack(), face_target(), fall_and_bounce(), Movement_Thread(), path_update_interrupt(), prepare_death_update(), state_emped_update(), state_guard_update(), state_jump_update(), state_stationary_update(), and turretFireUpdate().
function try_detonate | ( | closest | , |
attacker | |||
) |
Definition at line 1636 of file vehicle_ai_shared.gsc.
References detonate(), and SQR.
Referenced by defaultstate_surge_update(), and path_update_interrupt().
function TurnOff | ( | ) |
Definition at line 668 of file vehicle_ai_shared.gsc.
function TurnOffAllAmbientAnims | ( | ) |
Definition at line 690 of file vehicle_ai_shared.gsc.
References toggle_ambient_anim_group().
Referenced by defaultstate_death_enter(), defaultstate_off_enter(), and state_off_enter().
function TurnOffAllLightsAndLaser | ( | ) |
Definition at line 678 of file vehicle_ai_shared.gsc.
References lights_off(), toggle_burn_fx(), toggle_emp_fx(), and toggle_lights_group().
Referenced by defaultstate_death_enter(), defaultstate_off_enter(), and state_off_enter().
function TurnOn | ( | ) |
Definition at line 673 of file vehicle_ai_shared.gsc.
function UpdatePersonalThreatBias_AttackerLockedOnToMe | ( | threat_bias | , |
bias_duration | , | ||
get_perfect_info | , | ||
update_last_seen | |||
) |
Definition at line 2264 of file vehicle_ai_shared.gsc.
References UpdatePersonalThreatBias_ViaClientFlags().
Referenced by state_combat_update().
function UpdatePersonalThreatBias_AttackerLockingOnToMe | ( | threat_bias | , |
bias_duration | , | ||
get_perfect_info | , | ||
update_last_seen | |||
) |
Definition at line 2269 of file vehicle_ai_shared.gsc.
References UpdatePersonalThreatBias_ViaClientFlags().
Referenced by state_combat_update().
function UpdatePersonalThreatBias_Bots | ( | threat_bias | , |
bias_duration | |||
) |
Definition at line 2299 of file vehicle_ai_shared.gsc.
References is_bot().
function UpdatePersonalThreatBias_ViaClientFlags | ( | client_flags | , |
threat_bias | , | ||
bias_duration | , | ||
get_perfect_info | = true , |
||
update_last_seen | = true |
||
) |
Definition at line 2274 of file vehicle_ai_shared.gsc.
Referenced by UpdatePersonalThreatBias_AttackerLockedOnToMe(), and UpdatePersonalThreatBias_AttackerLockingOnToMe().
function waittill_asm_complete | ( | substate_to_wait | , |
timeout | = 10 |
||
) |
Definition at line 374 of file vehicle_ai_shared.gsc.
References timeout(), waittill_asm_terminated(), and waittill_asm_timeout().
Referenced by attack_javelin(), attack_spike_minefield(), cobra_raise(), cobra_retract(), do_melee_attack(), do_ranged_attack(), emped_update(), fire_pod_logic(), pain_update(), quadtank_death(), quadtank_weapon_think_cannon(), sentinel_FireLogic(), side_step(), state_death_update(), state_jump_update(), state_melee_combat_update(), and state_range_combat_update().
function waittill_asm_terminated | ( | ) |
Definition at line 356 of file vehicle_ai_shared.gsc.
Referenced by waittill_asm_complete().
function waittill_asm_timeout | ( | timeout | ) |
Definition at line 365 of file vehicle_ai_shared.gsc.
References timeout().
Referenced by waittill_asm_complete().
function waittill_pathing_done | ( | maxtime | = 15 | ) |
Definition at line 340 of file vehicle_ai_shared.gsc.
References waittill_any_ex().
Referenced by defaultstate_surge_update(), go_back_on_navvolume(), Movement_Thread(), Movement_Thread_Unaware(), sentinel_NavigateTheWorld(), state_alert_update(), state_combat_update(), state_guard_update(), state_melee_combat_update(), state_power_up_update(), state_range_combat_update(), and state_unaware_update().
function waittill_pathresult | ( | maxtime | = 0.5 | ) |
Definition at line 347 of file vehicle_ai_shared.gsc.
References result(), and waittill_any_timeout().
Referenced by state_combat_update(), state_melee_combat_update(), and state_power_up_update().