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

Go to the source code of this file.

Macros

#define EXPLOSION_RADIUS_FLASH   650
 
#define EXPLOSION_RADIUS_FRAG   256
 

Functions

function aim_grenade (weapon, target)
 
function angleError (angleMin, angleMax)
 
function bot_post_combat ()
 
function bot_pre_combat ()
 
function chase_threat ()
 
function clear_damage ()
 
function clear_threat ()
 
function clear_threat_aim ()
 
function combat_strafe (radiusMin, radiusMax, spacing, sideDotMin, sideDotMax)
 
function combat_think ()
 
function engage_threat ()
 
function fire_weapon ()
 
function get_ai_threats ()
 
function get_aim_offset (entity)
 
function get_bot_threats (maxDistance)
 
function get_greatest_threat (maxDistance)
 
function get_lethal_grenade ()
 
function get_new_threat (maxDistance)
 
function get_threat_goal_radius ()
 
function get_throw_velocity (weapon)
 
function has_threat ()
 
function ignore_non_sentient (entity)
 
function ignore_none (entity)
 
function is_alive (entity)
 
function melee_attack ()
 
function press_grenade_button (weapon)
 
function reload_weapon ()
 
function set_threat (entity)
 
function start_threat_aim ()
 
function switch_weapon ()
 
function threat_is_alive ()
 
function threat_switch_weapon ()
 
function threat_visible ()
 
function throw_grenade (weapon, target)
 
function update_threat (newThreat)
 
function update_threat_goal ()
 
function update_weapon_ads ()
 
function update_weapon_aim ()
 
function wait_damage_loop ()
 
function weapon_ads_dot (weapon)
 
function weapon_clip_frac (weapon)
 
function weapon_fire_dot (weapon)
 
function weapon_range (weapon)
 
function weapon_range_close (weapon)
 
function will_hit_target (weapon, target)
 

Macro Definition Documentation

◆ EXPLOSION_RADIUS_FLASH

#define EXPLOSION_RADIUS_FLASH   650

Definition at line 13 of file _bot_combat.gsc.

◆ EXPLOSION_RADIUS_FRAG

#define EXPLOSION_RADIUS_FRAG   256

Definition at line 12 of file _bot_combat.gsc.

Function Documentation

◆ aim_grenade()

function aim_grenade ( weapon  ,
target   
)

Definition at line 902 of file _bot_combat.gsc.

Referenced by throw_grenade().

◆ angleError()

function angleError ( angleMin  ,
angleMax   
)

Definition at line 495 of file _bot_combat.gsc.

Referenced by start_threat_aim().

◆ bot_post_combat()

function bot_post_combat ( )

Definition at line 551 of file _bot_combat.gsc.

◆ bot_pre_combat()

function bot_pre_combat ( )

◆ chase_threat()

function chase_threat ( )

Definition at line 408 of file _bot_combat.gsc.

References clear_threat(), clear_threat_aim(), navmesh_wander(), sprint_to_goal(), and VAL.

Referenced by __init__().

◆ clear_damage()

function clear_damage ( )

Definition at line 996 of file _bot_combat.gsc.

Referenced by bot_pre_combat().

◆ clear_threat()

function clear_threat ( )

◆ clear_threat_aim()

function clear_threat_aim ( )

Definition at line 512 of file _bot_combat.gsc.

Referenced by chase_threat(), clear_threat(), engage_threat(), and update_threat().

◆ combat_strafe()

function combat_strafe ( radiusMin  ,
radiusMax  ,
spacing  ,
sideDotMin  ,
sideDotMax   
)

Definition at line 1010 of file _bot_combat.gsc.

References DEFAULT, end_sprint_to_goal(), and VAL.

Referenced by update_threat_goal().

◆ combat_think()

function combat_think ( )

Definition at line 20 of file _bot_combat.gsc.

References get_new_threat(), has_threat(), threat_is_alive(), threat_visible(), and update_threat().

Referenced by __init__(), and bot_combat().

◆ engage_threat()

function engage_threat ( )

◆ fire_weapon()

function fire_weapon ( )

Definition at line 351 of file _bot_combat.gsc.

References press_attack_button(), press_throw_button(), and weapon_fire_dot().

Referenced by engage_threat().

◆ get_ai_threats()

function get_ai_threats ( )

Definition at line 75 of file _bot_combat.gsc.

◆ get_aim_offset()

function get_aim_offset ( entity  )

Definition at line 445 of file _bot_combat.gsc.

References VAL.

Referenced by engage_threat(), and set_threat().

◆ get_bot_threats()

function get_bot_threats ( maxDistance  )

Definition at line 68 of file _bot_combat.gsc.

References DEFAULT.

Referenced by __init__().

◆ get_greatest_threat()

function get_greatest_threat ( maxDistance  )

Definition at line 205 of file _bot_combat.gsc.

Referenced by bot_combat(), and get_new_threat().

◆ get_lethal_grenade()

function get_lethal_grenade ( )

Definition at line 957 of file _bot_combat.gsc.

◆ get_new_threat()

function get_new_threat ( maxDistance  )

Definition at line 191 of file _bot_combat.gsc.

References get_greatest_threat(), and set_threat().

Referenced by combat_think().

◆ get_threat_goal_radius()

function get_threat_goal_radius ( )

Definition at line 334 of file _bot_combat.gsc.

Referenced by update_threat_goal().

◆ get_throw_velocity()

function get_throw_velocity ( weapon  )

Definition at line 932 of file _bot_combat.gsc.

Referenced by will_hit_target().

◆ has_threat()

◆ ignore_non_sentient()

function ignore_non_sentient ( entity  )

Definition at line 85 of file _bot_combat.gsc.

Referenced by __init__().

◆ ignore_none()

function ignore_none ( entity  )

Definition at line 80 of file _bot_combat.gsc.

◆ is_alive()

function is_alive ( entity  )

Definition at line 62 of file _bot_combat.gsc.

◆ melee_attack()

function melee_attack ( )

Definition at line 385 of file _bot_combat.gsc.

References tap_melee_button().

Referenced by engage_threat().

◆ press_grenade_button()

function press_grenade_button ( weapon  )

Definition at line 890 of file _bot_combat.gsc.

References press_frag_button(), and press_offhand_button().

Referenced by throw_grenade().

◆ reload_weapon()

function reload_weapon ( )

Definition at line 827 of file _bot_combat.gsc.

References tap_reload_button(), and weapon_clip_frac().

Referenced by coop_pre_combat(), and mp_pre_combat().

◆ set_threat()

function set_threat ( entity  )

Definition at line 118 of file _bot_combat.gsc.

References get_aim_offset(), and update_threat().

Referenced by get_new_threat().

◆ start_threat_aim()

function start_threat_aim ( )

Definition at line 484 of file _bot_combat.gsc.

References angleError(), and VAL.

Referenced by update_weapon_aim().

◆ switch_weapon()

function switch_weapon ( )

Definition at line 697 of file _bot_combat.gsc.

References activate_hero_gadget(), get_ready_gadget(), and weapon_clip_frac().

Referenced by coop_pre_combat(), and mp_pre_combat().

◆ threat_is_alive()

function threat_is_alive ( )

Definition at line 103 of file _bot_combat.gsc.

References has_threat().

Referenced by combat_think().

◆ threat_switch_weapon()

function threat_switch_weapon ( )

Definition at line 770 of file _bot_combat.gsc.

Referenced by mp_pre_combat().

◆ threat_visible()

function threat_visible ( )

Definition at line 98 of file _bot_combat.gsc.

References has_threat().

Referenced by check_stuck(), and combat_think().

◆ throw_grenade()

function throw_grenade ( weapon  ,
target   
)

Definition at line 868 of file _bot_combat.gsc.

References aim_grenade(), press_grenade_button(), and will_hit_target().

Referenced by engage_threat().

◆ update_threat()

function update_threat ( newThreat  )

Definition at line 138 of file _bot_combat.gsc.

References clear_threat_aim(), fwd_dot(), IS_TRUE, VAL, weapon_range(), and weapon_range_close().

Referenced by combat_think(), and set_threat().

◆ update_threat_goal()

function update_threat_goal ( )

Definition at line 310 of file _bot_combat.gsc.

References combat_strafe(), and get_threat_goal_radius().

◆ update_weapon_ads()

function update_weapon_ads ( )

Definition at line 559 of file _bot_combat.gsc.

References press_ads_button(), and weapon_ads_dot().

Referenced by engage_threat().

◆ update_weapon_aim()

function update_weapon_aim ( )

Definition at line 455 of file _bot_combat.gsc.

References start_threat_aim().

Referenced by engage_threat().

◆ wait_damage_loop()

function wait_damage_loop ( )

Definition at line 976 of file _bot_combat.gsc.

References damage().

Referenced by on_player_spawned().

◆ weapon_ads_dot()

function weapon_ads_dot ( weapon  )

Definition at line 585 of file _bot_combat.gsc.

Referenced by update_weapon_ads().

◆ weapon_clip_frac()

function weapon_clip_frac ( weapon  )

Definition at line 852 of file _bot_combat.gsc.

Referenced by reload_weapon(), and switch_weapon().

◆ weapon_fire_dot()

function weapon_fire_dot ( weapon  )

Definition at line 613 of file _bot_combat.gsc.

Referenced by fire_weapon().

◆ weapon_range()

function weapon_range ( weapon  )

Definition at line 641 of file _bot_combat.gsc.

Referenced by update_threat().

◆ weapon_range_close()

function weapon_range_close ( weapon  )

Definition at line 669 of file _bot_combat.gsc.

Referenced by update_threat().

◆ will_hit_target()

function will_hit_target ( weapon  ,
target   
)

Definition at line 914 of file _bot_combat.gsc.

References get_throw_velocity().

Referenced by throw_grenade().