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

Go to the source code of this file.

Macros

#define CRATE_GOAL_RADIUS   39
 
#define CRATE_USE_RADIUS   62
 
#define MAX_LOCAL_PLAYERS   10
 
#define MAX_ONLINE_PLAYERS   18
 
#define MAX_ONLINE_PLAYERS_PER_TEAM   6
 
#define RESPAWN_DELAY   0.1
 
#define RESPAWN_INTERVAL   0.1
 

Functions

function __init__ ()
 
function add_balanced_bot (allies, maxAllies, axis, maxAxis)
 
function bot_idle ()
 
function bot_vehicle_weapon_ammo (weaponName)
 
function choose_class ()
 
function dive_to_prone (exit_stance)
 
function do_supplydrop (maxRange=1400)
 
function fill_balanced_teams (maxAllies, maxAxis)
 
function friend_goal_in_radius (goal_name, origin, radius)
 
function friend_in_radius (goal_name, origin, radius)
 
function get_bot_settings ()
 
function get_closest_enemy (origin, someFlag)
 
function get_enemies (on_radar)
 
function get_friends ()
 
function get_host_team ()
 
function has_minimap ()
 
function has_radar ()
 
function init ()
 
function init_bot_gametype ()
 
function is_bot_comp_stomp ()
 
function is_bot_soak ()
 
function monitor_bot_population (maxFree)
 
function monitor_bot_team_population (maxAllies, maxAxis)
 
function navmesh_points_visible (origin, point)
 
function on_bot_connect ()
 
function on_bot_killed ()
 
function on_bot_spawned ()
 
function populate_bots ()
 
function remove_best_bot (players)
 
function respawn ()
 
function set_rank ()
 
function use_killstreak ()
 
function wait_for_host ()
 
function watch_crate (crate)
 

Macro Definition Documentation

◆ CRATE_GOAL_RADIUS

#define CRATE_GOAL_RADIUS   39

Definition at line 212 of file _bot.gsc.

◆ CRATE_USE_RADIUS

#define CRATE_USE_RADIUS   62

Definition at line 213 of file _bot.gsc.

◆ MAX_LOCAL_PLAYERS

#define MAX_LOCAL_PLAYERS   10

Definition at line 33 of file _bot.gsc.

◆ MAX_ONLINE_PLAYERS

#define MAX_ONLINE_PLAYERS   18

Definition at line 34 of file _bot.gsc.

◆ MAX_ONLINE_PLAYERS_PER_TEAM

#define MAX_ONLINE_PLAYERS_PER_TEAM   6

Definition at line 35 of file _bot.gsc.

◆ RESPAWN_DELAY

#define RESPAWN_DELAY   0.1

Definition at line 37 of file _bot.gsc.

◆ RESPAWN_INTERVAL

#define RESPAWN_INTERVAL   0.1

Definition at line 38 of file _bot.gsc.

Function Documentation

◆ __init__()

◆ add_balanced_bot()

function add_balanced_bot ( allies  ,
maxAllies  ,
axis  ,
maxAxis   
)

Definition at line 371 of file _bot.gsc.

References add_bot().

Referenced by fill_balanced_teams(), and monitor_bot_team_population().

◆ bot_idle()

function bot_idle ( )

Definition at line 198 of file _bot.gsc.

References do_supplydrop(), navmesh_wander(), and sprint_to_goal().

Referenced by __init__().

◆ bot_vehicle_weapon_ammo()

function bot_vehicle_weapon_ammo ( weaponName  )

Definition at line 723 of file _bot.gsc.

◆ choose_class()

function choose_class ( )

Definition at line 465 of file _bot.gsc.

References get_current_class(), IS_TRUE, MENU_CHANGE_CLASS, and VAL.

Referenced by on_bot_connect(), and on_bot_killed().

◆ dive_to_prone()

function dive_to_prone ( exit_stance  )

Definition at line 733 of file _bot.gsc.

◆ do_supplydrop()

function do_supplydrop ( maxRange  = 1400)

Definition at line 215 of file _bot.gsc.

References CRATE_GOAL_RADIUS, CRATE_USE_RADIUS, has_minimap(), IS_TRUE, press_use_button(), and watch_crate().

Referenced by bot_idle().

◆ fill_balanced_teams()

function fill_balanced_teams ( maxAllies  ,
maxAxis   
)

Definition at line 356 of file _bot.gsc.

References add_balanced_bot(), and WAIT_SERVER_FRAME.

Referenced by monitor_bot_team_population().

◆ friend_goal_in_radius()

function friend_goal_in_radius ( goal_name  ,
origin  ,
radius   
)

Definition at line 703 of file _bot.gsc.

◆ friend_in_radius()

function friend_in_radius ( goal_name  ,
origin  ,
radius   
)

Definition at line 708 of file _bot.gsc.

◆ get_bot_settings()

function get_bot_settings ( )

Definition at line 680 of file _bot.gsc.

References get_script_bundle().

Referenced by __init__().

◆ get_closest_enemy()

function get_closest_enemy ( origin  ,
someFlag   
)

Definition at line 718 of file _bot.gsc.

◆ get_enemies()

function get_enemies ( on_radar  )

Definition at line 571 of file _bot.gsc.

References has_radar().

◆ get_friends()

function get_friends ( )

Definition at line 713 of file _bot.gsc.

◆ get_host_team()

function get_host_team ( )

Definition at line 109 of file _bot.gsc.

References getHostPlayerForBots().

◆ has_minimap()

function has_minimap ( )

Definition at line 556 of file _bot.gsc.

References has_radar(), and IS_TRUE.

Referenced by do_supplydrop().

◆ has_radar()

function has_radar ( )

Definition at line 546 of file _bot.gsc.

References HasSatellite(), and HasUAV().

Referenced by get_enemies(), and has_minimap().

◆ init()

function init ( )

Definition at line 67 of file _bot.gsc.

References init_bot_gametype(), is_bot_soak(), populate_bots(), and wait_for_host().

Referenced by __init__(), and init_bot_gametype().

◆ init_bot_gametype()

function init_bot_gametype ( )

Definition at line 658 of file _bot.gsc.

References init().

Referenced by init().

◆ is_bot_comp_stomp()

function is_bot_comp_stomp ( )

Definition at line 121 of file _bot.gsc.

Referenced by menuAutoAssign().

◆ is_bot_soak()

function is_bot_soak ( )

Definition at line 86 of file _bot.gsc.

Referenced by init().

◆ monitor_bot_population()

function monitor_bot_population ( maxFree  )

Definition at line 388 of file _bot.gsc.

References add_bot(), remove_best_bot(), and WAIT_SERVER_FRAME.

Referenced by populate_bots().

◆ monitor_bot_team_population()

function monitor_bot_team_population ( maxAllies  ,
maxAxis   
)

Definition at line 318 of file _bot.gsc.

References add_balanced_bot(), fill_balanced_teams(), and remove_best_bot().

Referenced by populate_bots().

◆ navmesh_points_visible()

function navmesh_points_visible ( origin  ,
point   
)

Definition at line 728 of file _bot.gsc.

◆ on_bot_connect()

function on_bot_connect ( )

◆ on_bot_killed()

function on_bot_killed ( )

Definition at line 167 of file _bot.gsc.

References choose_class(), respawn(), and RESPAWN_DELAY.

Referenced by __init__().

◆ on_bot_spawned()

function on_bot_spawned ( )

Definition at line 162 of file _bot.gsc.

Referenced by __init__().

◆ populate_bots()

function populate_bots ( )

Definition at line 299 of file _bot.gsc.

References monitor_bot_population(), and monitor_bot_team_population().

Referenced by init().

◆ remove_best_bot()

function remove_best_bot ( players  )

Definition at line 424 of file _bot.gsc.

References filter_bots(), has_threat(), and remove_bot().

Referenced by monitor_bot_population(), and monitor_bot_team_population().

◆ respawn()

function respawn ( )

Definition at line 184 of file _bot.gsc.

References RESPAWN_INTERVAL, and tap_use_button().

Referenced by add_skip_text(), calc_time(), killcam(), and on_bot_killed().

◆ set_rank()

function set_rank ( )

◆ use_killstreak()

function use_killstreak ( )

◆ wait_for_host()

function wait_for_host ( )

Definition at line 91 of file _bot.gsc.

References getHostPlayerForBots().

Referenced by init().

◆ watch_crate()

function watch_crate ( crate  )

Definition at line 282 of file _bot.gsc.

References has_threat().

Referenced by do_supplydrop().