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

Go to the source code of this file.

Macros

#define COLOR_FIXED_NODE_RADIUS   64
 
#define COLOR_NODE_BIG_RADIUS   1024
 

Functions

function __init__ ()
 
function __main__ ()
 
function activate_color_trigger (team)
 
function activate_color_trigger_internal (colorCodes, colors, team, colorCodesByColorIndex)
 
function add_cover_node (type)
 
function add_node_to_global_arrays (colorCode, team)
 
function add_path_node (type)
 
function add_volume_to_global_arrays (colorCode, team)
 
function ai_sets_goal (node)
 
function ai_sets_goal_with_delay (node)
 
function careful_logic (node, volume)
 
function color_force_goal (node)
 
function color_node_finds_a_user ()
 
function color_node_finds_user_for_colorCode (colorCode, team)
 
function color_node_finds_user_from_colorcodes (colorCodeString, team)
 
function colorIsLegit (color)
 
function colorNode_replace_on_death ()
 
function colorNode_spawn_reinforcement (classname, fromColor)
 
function convert_color_to_short_string ()
 
function decrementColorUsers (node)
 
function disable (stop_being_careful)
 
function enable ()
 
function friendly_spawner_vision_checker ()
 
function get_all_force_color_friendlies ()
 
function get_best_available_colored_node ()
 
function get_best_available_new_colored_node ()
 
function get_color_from_order (color, color_order)
 
function get_color_list ()
 
function get_color_spawner (classname, fromColor)
 
function get_colorcodes_and_activate_trigger (color_team, team)
 
function get_colorcodes_from_trigger (color_team, team)
 
function get_force_color ()
 
function get_force_color_guys (team, color)
 
function get_prioritized_colorCoded_nodes (team, colorCode, color)
 
function getClassColorHash (classname, fromcolor)
 
function GetColorNumberArray ()
 
function goto_current_ColorIndex ()
 
function has_color ()
 
function hero_catch_up_teleport (s_teleport, n_min_dist_from_player=400.0, b_disable_colors=false, func_callback)
 
function is_color_ai ()
 
function private is_target_visible (target)
 
function issue_color_order_to_ai (colorCode, color, team, ai)
 
function issue_leave_node_order_to_ai_and_get_ai (colorCode, color, team)
 
function kill_color_replacements ()
 
function left_color_node ()
 
function lock_spawner_for_awhile ()
 
function my_current_node_delays ()
 
function new_color_being_set (color)
 
function occupies_colorCode (colorCode)
 
function player_color_node ()
 
function player_init_color_grouping ()
 
function player_sees_spawner ()
 
function prioritize_colorCoded_nodes (team, colorCode, color)
 
function process_color_order_to_ai (node, trigger, counter)
 
function process_cover_node (node, null)
 
function process_cover_node_with_last_in_mind_allies (node, lastColor)
 
function process_cover_node_with_last_in_mind_axis (node, lastColor)
 
function process_path_node (node, null)
 
function process_stop_short_of_node (node)
 
function reached_node_but_could_not_claim_it (node)
 
function recover_from_careful_disable (node)
 
function remove_colorForced_ai_when_dead (ai)
 
function remove_replace_on_death ()
 
function removeSpawnerFromColorNumberArray ()
 
function same_color_code_as_last_time (team, color)
 
function set_force_color (_color)
 
function set_force_color_spawner (color)
 
function set_goal_and_volume (node)
 
function shortenColor (color)
 
function take_color_node (node, colorCode, trigger, counter)
 
function trigger_auto_disable ()
 
function trigger_issues_orders (color_team, team)
 
function update_debug_friendlycolor ()
 
function update_debug_friendlycolor_on_death ()
 
function use_big_goal_until_goal_is_safe (node, volume)
 
function wait_for_killanimscript_or_time (timer)
 
function wait_until_an_enemy_is_in_safe_area (node, volume)
 

Macro Definition Documentation

◆ COLOR_FIXED_NODE_RADIUS

#define COLOR_FIXED_NODE_RADIUS   64

Definition at line 14 of file colors_shared.gsc.

◆ COLOR_NODE_BIG_RADIUS

#define COLOR_NODE_BIG_RADIUS   1024

Definition at line 13 of file colors_shared.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

◆ __main__()

function __main__ ( )

Definition at line 150 of file colors_shared.gsc.

References get_all(), and trigger_issues_orders().

◆ activate_color_trigger()

function activate_color_trigger ( team  )

Definition at line 352 of file colors_shared.gsc.

References get_colorcodes_and_activate_trigger().

◆ activate_color_trigger_internal()

function activate_color_trigger_internal ( colorCodes  ,
colors  ,
team  ,
colorCodesByColorIndex   
)

◆ add_cover_node()

function add_cover_node ( type  )

◆ add_node_to_global_arrays()

function add_node_to_global_arrays ( colorCode  ,
team   
)

Definition at line 1297 of file colors_shared.gsc.

References ARRAY_ADD.

Referenced by __init__().

◆ add_path_node()

function add_path_node ( type  )

Definition at line 1385 of file colors_shared.gsc.

References process_path_node().

Referenced by __init__().

◆ add_volume_to_global_arrays()

function add_volume_to_global_arrays ( colorCode  ,
team   
)

Definition at line 1285 of file colors_shared.gsc.

Referenced by __init__().

◆ ai_sets_goal()

function ai_sets_goal ( node  )

Definition at line 932 of file colors_shared.gsc.

References set_goal_and_volume().

Referenced by ai_sets_goal_with_delay(), and process_color_order_to_ai().

◆ ai_sets_goal_with_delay()

function ai_sets_goal_with_delay ( node  )

Definition at line 921 of file colors_shared.gsc.

References ai_sets_goal(), delay(), and my_current_node_delays().

Referenced by goto_current_ColorIndex().

◆ careful_logic()

function careful_logic ( node  ,
volume   
)

◆ color_force_goal()

function color_force_goal ( node  )

Definition at line 989 of file colors_shared.gsc.

References force_goal(), and waittill_either().

Referenced by set_goal_and_volume().

◆ color_node_finds_a_user()

function color_node_finds_a_user ( )

Definition at line 849 of file colors_shared.gsc.

References color_node_finds_user_from_colorcodes().

Referenced by player_color_node().

◆ color_node_finds_user_for_colorCode()

function color_node_finds_user_for_colorCode ( colorCode  ,
team   
)

◆ color_node_finds_user_from_colorcodes()

function color_node_finds_user_from_colorcodes ( colorCodeString  ,
team   
)

Definition at line 862 of file colors_shared.gsc.

References color_node_finds_user_for_colorCode().

Referenced by color_node_finds_a_user().

◆ colorIsLegit()

function colorIsLegit ( color  )

Definition at line 1273 of file colors_shared.gsc.

Referenced by color_node_finds_user_for_colorCode(), and set_force_color().

◆ colorNode_replace_on_death()

◆ colorNode_spawn_reinforcement()

◆ convert_color_to_short_string()

function convert_color_to_short_string ( )

Definition at line 175 of file colors_shared.gsc.

◆ decrementColorUsers()

function decrementColorUsers ( node  )

Definition at line 1263 of file colors_shared.gsc.

Referenced by goto_current_ColorIndex(), and process_color_order_to_ai().

◆ disable()

function disable ( stop_being_careful  )

Description:
"Function Name: disable()"
"Summary: disables an ai's force color. Essentially takes him off the color chain." "Module: Color" "CallOn: An AI"
"Example:guy colors::disable();"
"Single Player / Multi Player: singleplayer"

Definition at line 1997 of file colors_shared.gsc.

References IS_TRUE, and left_color_node().

Referenced by hero_catch_up_teleport().

◆ enable()

function enable ( )

Description:
"Function Name: enable()"
"Summary: Re-enables an ai's force color. Only works on guys that have had a forceColor set previously." "Module: Color" "CallOn: An AI"
"Example:guy colors::enable();"
"Single Player / Multi Player: singleplayer"

Definition at line 2046 of file colors_shared.gsc.

References set_force_color().

◆ friendly_spawner_vision_checker()

function friendly_spawner_vision_checker ( )

Definition at line 1613 of file colors_shared.gsc.

References player_sees_spawner(), set(), and wait_till_clear().

Referenced by colorNode_spawn_reinforcement().

◆ get_all_force_color_friendlies()

function get_all_force_color_friendlies ( )

Definition at line 1971 of file colors_shared.gsc.

◆ get_best_available_colored_node()

function get_best_available_colored_node ( )

Definition at line 1161 of file colors_shared.gsc.

References get_prioritized_colorCoded_nodes().

◆ get_best_available_new_colored_node()

function get_best_available_new_colored_node ( )

Definition at line 1179 of file colors_shared.gsc.

References get_prioritized_colorCoded_nodes().

Referenced by process_color_order_to_ai().

◆ get_color_from_order()

function get_color_from_order ( color  ,
color_order   
)

◆ get_color_list()

function get_color_list ( )

Definition at line 223 of file colors_shared.gsc.

Referenced by get_colorcodes_from_trigger().

◆ get_color_spawner()

function get_color_spawner ( classname  ,
fromColor   
)

Definition at line 1672 of file colors_shared.gsc.

Referenced by colorNode_spawn_reinforcement().

◆ get_colorcodes_and_activate_trigger()

function get_colorcodes_and_activate_trigger ( color_team  ,
team   
)

◆ get_colorcodes_from_trigger()

function get_colorcodes_from_trigger ( color_team  ,
team   
)

Definition at line 238 of file colors_shared.gsc.

References array, and get_color_list().

Referenced by get_colorcodes_and_activate_trigger(), and trigger_issues_orders().

◆ get_force_color()

function get_force_color ( )

Description:
"Function Name: get_force_color()"
"Summary: Returns a guy's force color" "Module: Color" "CallOn: An AI"
"Example:color = guy get_force_color()"
"Single Player / Multi Player: singleplayer"

Definition at line 1932 of file colors_shared.gsc.

Referenced by _force_goal().

◆ get_force_color_guys()

function get_force_color_guys ( team  ,
color   
)

Description:
"Function Name: get_force_color_guys( <team>, <color> )"
"Summary: Returns all alive ai of a certain force color." "Module: AI" "CallOn: "
"Example:red_guys = get_force_color_guys( "allies", "r" );"
"Mandatory Argument(s): <team> : the team of the guys to check"
"Mandatory Argument(s): <color> : the color value of the guys you want to collect"
"Single Player / Multi Player: singleplayer"

Definition at line 1949 of file colors_shared.gsc.

Referenced by color_node_finds_user_for_colorCode(), and colorNode_replace_on_death().

◆ get_prioritized_colorCoded_nodes()

function get_prioritized_colorCoded_nodes ( team  ,
colorCode  ,
color   
)

◆ getClassColorHash()

function getClassColorHash ( classname  ,
fromcolor   
)

◆ GetColorNumberArray()

function GetColorNumberArray ( )

Definition at line 1335 of file colors_shared.gsc.

References array.

Referenced by removeSpawnerFromColorNumberArray().

◆ goto_current_ColorIndex()

function goto_current_ColorIndex ( )

◆ has_color()

function has_color ( )

Definition at line 1912 of file colors_shared.gsc.

Referenced by goto_current_ColorIndex().

◆ hero_catch_up_teleport()

function hero_catch_up_teleport ( s_teleport  ,
n_min_dist_from_player  = 400.0,
b_disable_colors  = false,
func_callback   
)

◆ is_color_ai()

function is_color_ai ( )

Definition at line 2062 of file colors_shared.gsc.

Referenced by get_in(), and set_goal().

◆ is_target_visible()

function private is_target_visible ( target  )

Definition at line 374 of file colors_shared.gsc.

Referenced by hero_catch_up_teleport().

◆ issue_color_order_to_ai()

function issue_color_order_to_ai ( colorCode  ,
color  ,
team  ,
ai   
)

◆ issue_leave_node_order_to_ai_and_get_ai()

function issue_leave_node_order_to_ai_and_get_ai ( colorCode  ,
color  ,
team   
)

Definition at line 735 of file colors_shared.gsc.

References left_color_node().

Referenced by activate_color_trigger_internal().

◆ kill_color_replacements()

function kill_color_replacements ( )

Definition at line 1775 of file colors_shared.gsc.

References clear(), and remove_replace_on_death().

◆ left_color_node()

function left_color_node ( )

◆ lock_spawner_for_awhile()

function lock_spawner_for_awhile ( )

Definition at line 1762 of file colors_shared.gsc.

References clear(), and set().

Referenced by colorNode_spawn_reinforcement().

◆ my_current_node_delays()

function my_current_node_delays ( )

Definition at line 1092 of file colors_shared.gsc.

References script_delay().

Referenced by ai_sets_goal_with_delay(), and process_color_order_to_ai().

◆ new_color_being_set()

function new_color_being_set ( color  )

Definition at line 1860 of file colors_shared.gsc.

References goto_current_ColorIndex(), and left_color_node().

Referenced by set_force_color().

◆ occupies_colorCode()

function occupies_colorCode ( colorCode  )

Definition at line 911 of file colors_shared.gsc.

Referenced by color_node_finds_user_for_colorCode().

◆ player_color_node()

function player_color_node ( )

Definition at line 813 of file colors_shared.gsc.

References color_node_finds_a_user(), and WAIT_SERVER_FRAME.

Referenced by player_init_color_grouping().

◆ player_init_color_grouping()

function player_init_color_grouping ( )

Definition at line 170 of file colors_shared.gsc.

References player_color_node().

◆ player_sees_spawner()

function player_sees_spawner ( )

Definition at line 1769 of file colors_shared.gsc.

References clear().

Referenced by friendly_spawner_vision_checker().

◆ prioritize_colorCoded_nodes()

function prioritize_colorCoded_nodes ( team  ,
colorCode  ,
color   
)

Definition at line 690 of file colors_shared.gsc.

Referenced by issue_color_order_to_ai().

◆ process_color_order_to_ai()

function process_color_order_to_ai ( node  ,
trigger  ,
counter   
)

◆ process_cover_node()

function process_cover_node ( node  ,
null   
)

Definition at line 680 of file colors_shared.gsc.

Referenced by add_cover_node().

◆ process_cover_node_with_last_in_mind_allies()

function process_cover_node_with_last_in_mind_allies ( node  ,
lastColor   
)

Definition at line 654 of file colors_shared.gsc.

Referenced by add_cover_node().

◆ process_cover_node_with_last_in_mind_axis()

function process_cover_node_with_last_in_mind_axis ( node  ,
lastColor   
)

Definition at line 667 of file colors_shared.gsc.

Referenced by add_cover_node().

◆ process_path_node()

function process_path_node ( node  ,
null   
)

Definition at line 685 of file colors_shared.gsc.

Referenced by add_path_node().

◆ process_stop_short_of_node()

function process_stop_short_of_node ( node  )

◆ reached_node_but_could_not_claim_it()

function reached_node_but_could_not_claim_it ( node  )

Definition at line 1237 of file colors_shared.gsc.

Referenced by process_stop_short_of_node().

◆ recover_from_careful_disable()

function recover_from_careful_disable ( node  )

Definition at line 1013 of file colors_shared.gsc.

References set_goal_and_volume().

Referenced by careful_logic().

◆ remove_colorForced_ai_when_dead()

function remove_colorForced_ai_when_dead ( ai  )

Definition at line 1838 of file colors_shared.gsc.

References remove_undefined().

Referenced by set_force_color().

◆ remove_replace_on_death()

function remove_replace_on_death ( )

Definition at line 1786 of file colors_shared.gsc.

Referenced by kill_color_replacements().

◆ removeSpawnerFromColorNumberArray()

function removeSpawnerFromColorNumberArray ( )

Definition at line 1358 of file colors_shared.gsc.

References GetColorNumberArray().

◆ same_color_code_as_last_time()

function same_color_code_as_last_time ( team  ,
color   
)

Definition at line 643 of file colors_shared.gsc.

Referenced by activate_color_trigger_internal().

◆ set_force_color()

function set_force_color ( _color  )

Description:
"Function Name: set_force_color( <_color> )"
"Summary: Sets a guy's force color" "Module: Color" "CallOn: An AI"
"Example:guy set_force_color( "p" );"
"Single Player / Multi Player: singleplayer"

Definition at line 1800 of file colors_shared.gsc.

References ARRAY_ADD, COLOR_FIXED_NODE_RADIUS, colorIsLegit(), new_color_being_set(), remove_colorForced_ai_when_dead(), set_force_color_spawner(), and shortenColor().

Referenced by colorNode_replace_on_death(), colorNode_spawn_reinforcement(), enable(), hero_catch_up_teleport(), and spawn_think_action().

◆ set_force_color_spawner()

function set_force_color_spawner ( color  )

Definition at line 1854 of file colors_shared.gsc.

Referenced by set_force_color().

◆ set_goal_and_volume()

function set_goal_and_volume ( node  )

◆ shortenColor()

function shortenColor ( color  )

Definition at line 1848 of file colors_shared.gsc.

Referenced by set_force_color().

◆ take_color_node()

function take_color_node ( node  ,
colorCode  ,
trigger  ,
counter   
)

◆ trigger_auto_disable()

function trigger_auto_disable ( )

Definition at line 332 of file colors_shared.gsc.

References IS_TRUE.

Referenced by trigger_issues_orders().

◆ trigger_issues_orders()

function trigger_issues_orders ( color_team  ,
team   
)

◆ update_debug_friendlycolor()

function update_debug_friendlycolor ( )

Definition at line 1895 of file colors_shared.gsc.

References update_debug_friendlycolor_on_death().

◆ update_debug_friendlycolor_on_death()

function update_debug_friendlycolor_on_death ( )

Definition at line 1884 of file colors_shared.gsc.

Referenced by update_debug_friendlycolor().

◆ use_big_goal_until_goal_is_safe()

function use_big_goal_until_goal_is_safe ( node  ,
volume   
)

Definition at line 1022 of file colors_shared.gsc.

References COLOR_NODE_BIG_RADIUS.

Referenced by careful_logic().

◆ wait_for_killanimscript_or_time()

function wait_for_killanimscript_or_time ( timer  )

Definition at line 1230 of file colors_shared.gsc.

References timer().

Referenced by process_stop_short_of_node().

◆ wait_until_an_enemy_is_in_safe_area()

function wait_until_an_enemy_is_in_safe_area ( node  ,
volume   
)

Definition at line 1059 of file colors_shared.gsc.

Referenced by careful_logic().