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

Go to the source code of this file.

Macros

#define BOT_ALLOCATION_MAX   10
 
#define BOT_ALLOCATION_UNLOCK_MAX   3
 
#define BOT_RANK_ALL_OPTIONS_AVAILABLE   20
 
#define BOT_RANK_OPTIONS_MULTIPLIER   4
 

Functions

function build_claimed_list (items)
 
function build_classes ()
 
function build_item_list ()
 
function build_weapon_options_list (optionType)
 
function choose_primary_attachments (weaponclass, weapon, allocation, allocation_max)
 
function choose_secondary_attachments (weaponclass, weapon, allocation, allocation_max)
 
function choose_weapon (weaponclass, items)
 
function choose_weapon_option (weaponclass, optionType, primary)
 
function chose_action (action1, chance1, action2, chance2, action3, chance3, action4, chance4)
 
function construct_class (constructclass, items, allocation_max)
 
function construct_loadout (allocation_max)
 
function get_available_items (filterGroup, filterSlot)
 
function get_current_class ()
 
function get_item_name (itemReference)
 
function in_whitelist (itemName)
 
function init ()
 
function item_is_banned (slot, item)
 
function item_is_claimed (item)
 
function make_choice (chance, claimed, max_claim)
 
function on_bot_connect ()
 
function pick_classes ()
 
function pick_hero_ability ()
 
function pick_hero_gadget ()
 
function pick_hero_weapon ()
 
function pick_killstreaks ()
 

Variables

function pick_item pickedItems
 

Macro Definition Documentation

◆ BOT_ALLOCATION_MAX

#define BOT_ALLOCATION_MAX   10

Definition at line 11 of file _bot_loadout.gsc.

◆ BOT_ALLOCATION_UNLOCK_MAX

#define BOT_ALLOCATION_UNLOCK_MAX   3

Definition at line 12 of file _bot_loadout.gsc.

◆ BOT_RANK_ALL_OPTIONS_AVAILABLE

#define BOT_RANK_ALL_OPTIONS_AVAILABLE   20

Definition at line 13 of file _bot_loadout.gsc.

◆ BOT_RANK_OPTIONS_MULTIPLIER

#define BOT_RANK_OPTIONS_MULTIPLIER   4

Definition at line 14 of file _bot_loadout.gsc.

Function Documentation

◆ build_claimed_list()

function build_claimed_list ( items  )

Definition at line 865 of file _bot_loadout.gsc.

Referenced by construct_class().

◆ build_classes()

function build_classes ( )

Definition at line 125 of file _bot_loadout.gsc.

References get_available_items(), IS_TRUE, and pickedItems.

Referenced by on_bot_connect().

◆ build_item_list()

function build_item_list ( )

◆ build_weapon_options_list()

function build_weapon_options_list ( optionType  )

◆ choose_primary_attachments()

function choose_primary_attachments ( weaponclass  ,
weapon  ,
allocation  ,
allocation_max   
)

Definition at line 683 of file _bot_loadout.gsc.

References a, and chose_action().

◆ choose_secondary_attachments()

function choose_secondary_attachments ( weaponclass  ,
weapon  ,
allocation  ,
allocation_max   
)

Definition at line 748 of file _bot_loadout.gsc.

References a, and chose_action().

◆ choose_weapon()

function choose_weapon ( weaponclass  ,
items   
)

Definition at line 604 of file _bot_loadout.gsc.

References item_is_claimed().

Referenced by construct_class(), and construct_loadout().

◆ choose_weapon_option()

function choose_weapon_option ( weaponclass  ,
optionType  ,
primary   
)

◆ chose_action()

function chose_action ( action1  ,
chance1  ,
action2  ,
chance2  ,
action3  ,
chance3  ,
action4  ,
chance4   
)

Definition at line 559 of file _bot_loadout.gsc.

Referenced by choose_primary_attachments(), and choose_secondary_attachments().

◆ construct_class()

function construct_class ( constructclass  ,
items  ,
allocation_max   
)

Definition at line 537 of file _bot_loadout.gsc.

References build_claimed_list(), choose_weapon(), and choose_weapon_option().

Referenced by construct_loadout().

◆ construct_loadout()

function construct_loadout ( allocation_max  )

Definition at line 493 of file _bot_loadout.gsc.

References build_item_list(), choose_weapon(), and construct_class().

Referenced by on_bot_connect().

◆ get_available_items()

◆ get_current_class()

function get_current_class ( )

Definition at line 244 of file _bot_loadout.gsc.

Referenced by choose_class().

◆ get_item_name()

function get_item_name ( itemReference  )

◆ in_whitelist()

function in_whitelist ( itemName  )

Definition at line 21 of file _bot_loadout.gsc.

Referenced by get_available_items().

◆ init()

function init ( )

Definition at line 417 of file _bot_loadout.gsc.

References on_bot_connect().

◆ item_is_banned()

function item_is_banned ( slot  ,
item   
)

Definition at line 837 of file _bot_loadout.gsc.

◆ item_is_claimed()

function item_is_claimed ( item  )

Definition at line 591 of file _bot_loadout.gsc.

Referenced by choose_weapon().

◆ make_choice()

function make_choice ( chance  ,
claimed  ,
max_claim   
)

Definition at line 554 of file _bot_loadout.gsc.

◆ on_bot_connect()

function on_bot_connect ( )

◆ pick_classes()

function pick_classes ( )

Definition at line 202 of file _bot_loadout.gsc.

Referenced by on_bot_connect().

◆ pick_hero_ability()

function pick_hero_ability ( )

Definition at line 289 of file _bot_loadout.gsc.

References get_item_name().

Referenced by pick_hero_gadget().

◆ pick_hero_gadget()

function pick_hero_gadget ( )

Definition at line 266 of file _bot_loadout.gsc.

References pick_hero_ability(), and pick_hero_weapon().

Referenced by on_bot_connect().

◆ pick_hero_weapon()

function pick_hero_weapon ( )

Definition at line 274 of file _bot_loadout.gsc.

References get_item_name().

Referenced by pick_hero_gadget().

◆ pick_killstreaks()

function pick_killstreaks ( )

Definition at line 307 of file _bot_loadout.gsc.

References get_available_items().

Referenced by on_bot_connect().

Variable Documentation

◆ pickedItems

function pick_item pickedItems
Initial value:
{
if ( !isdefined( items ) || items.size <= 0 )
{
return;
}
‪pickedItems[‪pickedItems.size] = array::random( items )

Definition at line 193 of file _bot_loadout.gsc.

Referenced by build_classes().

‪pickedItems
‪function pick_item pickedItems
Definition: _bot_loadout.gsc:193