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

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)
 

Macro Definition Documentation

◆ ANIMTREE

#define ANIMTREE   "generic"

Definition at line 19 of file vehicle_ai_shared.gsc.

◆ POINTS_MAX_DIST

#define POINTS_MAX_DIST   2000

Definition at line 1813 of file vehicle_ai_shared.gsc.

◆ STATE_PRIORITY_DEATH

#define STATE_PRIORITY_DEATH   100

Definition at line 20 of file vehicle_ai_shared.gsc.

◆ STATE_PRIORITY_DECREASE

#define STATE_PRIORITY_DECREASE   20

Definition at line 22 of file vehicle_ai_shared.gsc.

◆ STATE_PRIORITY_INCREASE

#define STATE_PRIORITY_INCREASE   50

Definition at line 21 of file vehicle_ai_shared.gsc.

Function Documentation

◆ __fire_for_rounds_internal()

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().

◆ __init__()

function __init__ ( )

Definition at line 32 of file vehicle_ai_shared.gsc.

◆ _cmp_val()

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().

◆ _less_than_val()

function _less_than_val ( left  ,
right   
)

Definition at line 2057 of file vehicle_ai_shared.gsc.

Referenced by _cmp_val().

◆ _sort_by_score()

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().

◆ add_interrupt_connection()

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().

◆ add_state()

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().

◆ add_utility_connection()

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().

◆ AddCooldownTime()

function AddCooldownTime ( name  ,
time_seconds   
)

Definition at line 1988 of file vehicle_ai_shared.gsc.

References CooldownInit(), GetCooldownTimeRaw(), and name.

Referenced by pain_update().

◆ blink_lights_for_time()

function blink_lights_for_time ( time  )

◆ burning_death()

function burning_death ( params  )

◆ burning_death_fx()

function burning_death_fx ( )

Definition at line 1218 of file vehicle_ai_shared.gsc.

Referenced by burning_death().

◆ burning_thread()

function burning_thread ( attacker  ,
inflictor   
)

◆ call_custom_add_state_callbacks()

function call_custom_add_state_callbacks ( )

Definition at line 1152 of file vehicle_ai_shared.gsc.

Referenced by defaultRole().

◆ Callback_VehicleKilled()

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().

◆ CanSeeEnemyFromPosition()

function CanSeeEnemyFromPosition ( position  ,
enemy  ,
sight_check_height   
)

Definition at line 1815 of file vehicle_ai_shared.gsc.

Referenced by path_update_interrupt().

◆ ClearAllCooldowns()

function ClearAllCooldowns ( )

Definition at line 1995 of file vehicle_ai_shared.gsc.

Referenced by shoot_at_target().

◆ ClearAllLookingAndTargeting()

◆ ClearAllMovement()

◆ ClearCooldown()

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().

◆ collision_fx()

function collision_fx ( normal  )

Definition at line 427 of file vehicle_ai_shared.gsc.

Referenced by fall_and_bounce(), and nudge_collision().

◆ Cooldown()

◆ CooldownInit()

function CooldownInit ( )

◆ death_radius_damage_special()

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().

◆ DebugScore()

function DebugScore ( entity  )

Definition at line 2024 of file vehicle_ai_shared.gsc.

References IS_TRUE, and name.

Referenced by PositionQuery_DebugScores().

◆ default_death()

function default_death ( params  )

◆ defaultstate_combat_enter()

function defaultstate_combat_enter ( params  )

Definition at line 1416 of file vehicle_ai_shared.gsc.

Referenced by init_state_machine_for_role().

◆ defaultstate_combat_exit()

function defaultstate_combat_exit ( params  )

Definition at line 1420 of file vehicle_ai_shared.gsc.

Referenced by init_state_machine_for_role().

◆ defaultstate_death_enter()

◆ defaultstate_death_update()

function defaultstate_death_update ( params  )

◆ defaultstate_driving_enter()

function defaultstate_driving_enter ( params  )

◆ defaultstate_driving_exit()

function defaultstate_driving_exit ( params  )

◆ defaultstate_emped_enter()

◆ defaultstate_emped_exit()

function defaultstate_emped_exit ( params  )

◆ defaultstate_emped_reenter()

function defaultstate_emped_reenter ( params  )

Definition at line 1507 of file vehicle_ai_shared.gsc.

Referenced by init_state_machine_for_role().

◆ defaultstate_emped_update()

function defaultstate_emped_update ( params  )

◆ defaultstate_off_enter()

◆ defaultstate_off_exit()

function defaultstate_off_exit ( params  )

◆ defaultstate_pain_enter()

function defaultstate_pain_enter ( params  )

◆ defaultstate_pain_exit()

function defaultstate_pain_exit ( params  )

◆ defaultstate_scripted_enter()

function defaultstate_scripted_enter ( params  )

◆ defaultstate_scripted_exit()

function defaultstate_scripted_exit ( params  )

◆ defaultstate_surge_enter()

function defaultstate_surge_enter ( params  )

Definition at line 1516 of file vehicle_ai_shared.gsc.

Referenced by init_state_machine_for_role().

◆ defaultstate_surge_exit()

function defaultstate_surge_exit ( params  )

Definition at line 1520 of file vehicle_ai_shared.gsc.

Referenced by init_state_machine_for_role().

◆ defaultstate_surge_update()

◆ detonate()

◆ DistancePointToEngagementHeight()

function DistancePointToEngagementHeight ( origin  ,
enemy  ,
engagementHeightMin  ,
engagementHeightMax   
)

Definition at line 2208 of file vehicle_ai_shared.gsc.

References result().

◆ emp_death_fx()

function emp_death_fx ( )

Definition at line 1231 of file vehicle_ai_shared.gsc.

Referenced by emped_death().

◆ emp_startup_fx()

function emp_startup_fx ( )

Definition at line 1457 of file vehicle_ai_shared.gsc.

Referenced by defaultstate_emped_update(), and state_emped_update().

◆ emped_death()

function emped_death ( params  )

◆ EntityIsArchetype()

function EntityIsArchetype ( entity  ,
archetype   
)

Definition at line 83 of file vehicle_ai_shared.gsc.

Referenced by do_melee(), and QuadtankCallback_VehicleDamage().

◆ evaluate_connections()

function evaluate_connections ( eval_func  ,
params   
)

Definition at line 921 of file vehicle_ai_shared.gsc.

Referenced by defaultstate_emped_update().

◆ FindNewPosition()

◆ fire_for_rounds()

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().

◆ fire_for_time()

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().

◆ FireTurret()

function FireTurret ( turretIdx  ,
isFake   
)

Definition at line 309 of file vehicle_ai_shared.gsc.

Referenced by __fire_for_rounds_internal().

◆ flash_team_switching_lights()

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().

◆ get_current_state()

function get_current_state ( )

◆ get_death_type()

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().

◆ get_next_state()

function get_next_state ( )

Definition at line 982 of file vehicle_ai_shared.gsc.

Referenced by defaultstate_off_exit(), and quadtank_disabletrophy().

◆ get_previous_state()

function get_previous_state ( )

◆ get_state_callbacks()

function get_state_callbacks ( statename  )

◆ get_state_callbacks_for_role()

function get_state_callbacks_for_role ( rolename  ,
statename   
)

Definition at line 944 of file vehicle_ai_shared.gsc.

◆ GetCooldownLeft()

function GetCooldownLeft ( name  )

◆ GetCooldownTimeRaw()

function GetCooldownTimeRaw ( name  )

Definition at line 1950 of file vehicle_ai_shared.gsc.

References CooldownInit(), and name.

Referenced by AddCooldownTime(), and GetCooldownLeft().

◆ GetEnemyTarget()

function GetEnemyTarget ( )

Definition at line 101 of file vehicle_ai_shared.gsc.

Referenced by raps_get_target_position(), and spider_get_target_position().

◆ GetTargetEyeOffset()

function GetTargetEyeOffset ( target  )

Definition at line 142 of file vehicle_ai_shared.gsc.

Referenced by turretFireUpdate().

◆ GetTargetPos()

function GetTargetPos ( target  ,
geteye   
)

◆ gibbed_death()

function gibbed_death ( params  )

◆ iff_notifyMeInNSec()

function iff_notifyMeInNSec ( time  ,
note   
)

Definition at line 586 of file vehicle_ai_shared.gsc.

Referenced by iff_override().

◆ iff_override()

function iff_override ( owner  ,
time  = 60 
)

◆ iff_override_team_switch_behavior()

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().

◆ immolate()

function immolate ( attacker  )

Definition at line 526 of file vehicle_ai_shared.gsc.

References burning_thread().

◆ init_state_machine_for_role()

◆ InitThreatBias()

function InitThreatBias ( )

◆ is_instate()

function is_instate ( statename  )

◆ IsCooldownReady()

◆ Javelin_LoseTargetAtRightTime()

function Javelin_LoseTargetAtRightTime ( target  )

Definition at line 314 of file vehicle_ai_shared.gsc.

References SQR.

Referenced by attack_javelin(), and Attack_Thread_rocket().

◆ level_out_for_landing()

function level_out_for_landing ( )

Definition at line 507 of file vehicle_ai_shared.gsc.

References WAIT_SERVER_FRAME.

Referenced by defaultstate_off_enter().

◆ nudge_collision()

◆ on_death_cleanup()

function on_death_cleanup ( )

Definition at line 1187 of file vehicle_ai_shared.gsc.

References clear().

Referenced by init_state_machine_for_role().

◆ owner_in_line_of_fire()

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().

◆ path_update_interrupt()

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().

◆ PositionQuery_DebugScores()

◆ PositionQuery_Filter_DistAwayFromTarget()

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().

◆ PositionQuery_Filter_EngagementDist()

function PositionQuery_Filter_EngagementDist ( queryResult  ,
enemy  ,
engagementDistanceMin  ,
engagementDistanceMax   
)

◆ PositionQuery_Filter_EngagementHeight()

function PositionQuery_Filter_EngagementHeight ( queryResult  ,
enemy  ,
engagementHeightMin  ,
engagementHeightMax   
)

Definition at line 2229 of file vehicle_ai_shared.gsc.

Referenced by GetNextMovePosition_tactical().

◆ PositionQuery_Filter_OutOfGoalAnchor()

◆ PositionQuery_Filter_Random()

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().

◆ PositionQuery_PostProcess_RemoveOutOfGoalRadius()

function PositionQuery_PostProcess_RemoveOutOfGoalRadius ( queryResult  ,
tolerance  = 1 
)

Definition at line 2251 of file vehicle_ai_shared.gsc.

◆ PositionQuery_PostProcess_SortScore()

function PositionQuery_PostProcess_SortScore ( queryResult  ,
descending  = true 
)

◆ predicted_collision()

function predicted_collision ( )

Definition at line 411 of file vehicle_ai_shared.gsc.

◆ register_custom_add_state_callback()

function register_custom_add_state_callback ( func  )

Definition at line 1142 of file vehicle_ai_shared.gsc.

Referenced by __main__().

◆ RegisterSharedInterfaceAttributes()

function RegisterSharedInterfaceAttributes ( archetype  )

Definition at line 36 of file vehicle_ai_shared.gsc.

References array, and RegisterMatchedInterface().

Referenced by RegisterInterfaceAttributes().

◆ set_role()

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().

◆ set_state()

function set_state ( name  ,
params   
)

◆ SetTurretTarget()

function SetTurretTarget ( target  ,
turretIdx  = 0,
offset  = (0,0,0) 
)

◆ shared_callback_damage()

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

◆ should_burn()

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().

◆ should_emp()

function should_emp ( vehicle  ,
weapon  ,
meansOfDeath  ,
eInflictor  ,
eAttacker   
)

◆ start_scripted()

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().

◆ StartInitialState()

function StartInitialState ( defaultState  = "combat")

Definition at line 866 of file vehicle_ai_shared.gsc.

References set_state().

Referenced by defaultRole(), InitFlakDrone(), and InitSentinel().

◆ stop_scripted()

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().

◆ swap_team_after_time()

function swap_team_after_time ( attacker  )

Definition at line 1627 of file vehicle_ai_shared.gsc.

Referenced by defaultstate_surge_update().

◆ target_hijackers()

function target_hijackers ( )

Definition at line 2312 of file vehicle_ai_shared.gsc.

Referenced by quadtank_initialize(), and siegebot_initialize().

◆ throw_off_balance()

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().

◆ TimeSince()

◆ try_detonate()

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().

◆ TurnOff()

function TurnOff ( )

Definition at line 668 of file vehicle_ai_shared.gsc.

◆ TurnOffAllAmbientAnims()

function TurnOffAllAmbientAnims ( )

◆ TurnOffAllLightsAndLaser()

function TurnOffAllLightsAndLaser ( )

◆ TurnOn()

function TurnOn ( )

Definition at line 673 of file vehicle_ai_shared.gsc.

◆ UpdatePersonalThreatBias_AttackerLockedOnToMe()

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().

◆ UpdatePersonalThreatBias_AttackerLockingOnToMe()

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().

◆ UpdatePersonalThreatBias_Bots()

function UpdatePersonalThreatBias_Bots ( threat_bias  ,
bias_duration   
)

Definition at line 2299 of file vehicle_ai_shared.gsc.

References is_bot().

◆ UpdatePersonalThreatBias_ViaClientFlags()

function UpdatePersonalThreatBias_ViaClientFlags ( client_flags  ,
threat_bias  ,
bias_duration  ,
get_perfect_info  = true,
update_last_seen  = true 
)

◆ waittill_asm_complete()

◆ waittill_asm_terminated()

function waittill_asm_terminated ( )

Definition at line 356 of file vehicle_ai_shared.gsc.

Referenced by waittill_asm_complete().

◆ waittill_asm_timeout()

function waittill_asm_timeout ( timeout  )

Definition at line 365 of file vehicle_ai_shared.gsc.

References timeout().

Referenced by waittill_asm_complete().

◆ waittill_pathing_done()

◆ waittill_pathresult()

function waittill_pathresult ( maxtime  = 0.5)