![]() |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
Go to the source code of this file.
Macros | |
#define | MELEE_RANGE_SQ (72 * 72) |
#define | MELEE_RANGE_Z (64) |
#define | MELEE_VIEW_DOT 0.5 |
#define | N_MAX_WASPS 16 |
#define | N_MAX_WASPS_PER_PLAYER 5 |
#define | N_MSEC 1000 |
#define | N_NUM_WASPS_PER_ROUND 10 |
#define | N_SPAWN_HEIGHT_MIN 60 |
#define | N_SWARM_SIZE 1 |
#define | N_WASP_HAS_MOVE_DIST 100 |
#define | N_WASP_HEALTH_INCREASE 50 |
#define | N_WASP_HEALTH_MAX 1600 |
#define | N_WASP_KILL_POINTS 70 |
#define | N_WASP_MAX_LIFE_TIMEOUT 150 |
#define | N_WASP_NOT_MOVED_TIMEOUT 20 |
#define | N_WASP_PLAYER_SCALAR 0.75 |
#define | WASP_SPAWN_DIST_MAX 600 |
#define | WASP_SPAWN_DIST_MIN 400 |
Functions | |
function | create_global_wasp_spawn_locations_list () |
function | enable_wasp_rounds () |
function | get_current_wasp_count () |
function | get_favorite_enemy () |
function | init () |
function | parasite_drop_item (v_parasite_origin) |
function | parasite_round_fx () |
function | play_wasp_round () |
function | ready_to_spawn_wasp () |
function | show_hit_marker () |
function | spawn_wasp () |
function | special_wasp_spawn (n_to_spawn=1, spawn_point, n_radius=32, n_half_height=32, b_non_round, spawn_fx=true, b_return_ai=false, spawner_override=undefined) |
function | stop_wasp_sound_on_death () |
function | wasp_add_to_spawn_pool (optional_player_target) |
function | wasp_behind_audio () |
function | wasp_cleanup_failsafe () |
function | wasp_death () |
function | wasp_find_closest_in_global_pool (favorite_enemy) |
function | wasp_health_increase () |
function | wasp_init () |
function | wasp_round_aftermath () |
function | wasp_round_spawning () |
function | wasp_round_start () |
function | wasp_round_stop () |
function | wasp_round_tracker () |
function | wasp_round_wait_func () |
function | wasp_run_think () |
function | wasp_spawn_init (ai, origin, should_spawn_fx=true) |
function | wasp_spawn_logic (favorite_enemy) |
function | wasp_spawner_init () |
function | wasp_stalk_audio () |
function | wasp_thundergun_knockdown (e_player, gib) |
function | waspDamage (inflictor, attacker, damage, dFlags, mod, weapon, point, dir, hitLoc, offsetTime, boneIndex, modelIndex) |
function | watch_player_melee () |
function | watch_player_melee_events () |
function | zombie_setup_attack_properties_wasp () |
#define MELEE_RANGE_SQ (72 * 72) |
Definition at line 1278 of file _zm_ai_wasp.gsc.
#define MELEE_RANGE_Z (64) |
Definition at line 1279 of file _zm_ai_wasp.gsc.
#define MELEE_VIEW_DOT 0.5 |
Definition at line 1280 of file _zm_ai_wasp.gsc.
#define N_MAX_WASPS 16 |
Definition at line 43 of file _zm_ai_wasp.gsc.
#define N_MAX_WASPS_PER_PLAYER 5 |
Definition at line 44 of file _zm_ai_wasp.gsc.
#define N_MSEC 1000 |
Definition at line 979 of file _zm_ai_wasp.gsc.
#define N_NUM_WASPS_PER_ROUND 10 |
Definition at line 49 of file _zm_ai_wasp.gsc.
#define N_SPAWN_HEIGHT_MIN 60 |
Definition at line 52 of file _zm_ai_wasp.gsc.
#define N_SWARM_SIZE 1 |
Definition at line 46 of file _zm_ai_wasp.gsc.
#define N_WASP_HAS_MOVE_DIST 100 |
Definition at line 978 of file _zm_ai_wasp.gsc.
#define N_WASP_HEALTH_INCREASE 50 |
Definition at line 53 of file _zm_ai_wasp.gsc.
#define N_WASP_HEALTH_MAX 1600 |
Definition at line 54 of file _zm_ai_wasp.gsc.
#define N_WASP_KILL_POINTS 70 |
Definition at line 55 of file _zm_ai_wasp.gsc.
#define N_WASP_MAX_LIFE_TIMEOUT 150 |
Definition at line 977 of file _zm_ai_wasp.gsc.
#define N_WASP_NOT_MOVED_TIMEOUT 20 |
Definition at line 976 of file _zm_ai_wasp.gsc.
#define N_WASP_PLAYER_SCALAR 0.75 |
Definition at line 50 of file _zm_ai_wasp.gsc.
#define WASP_SPAWN_DIST_MAX 600 |
Definition at line 623 of file _zm_ai_wasp.gsc.
#define WASP_SPAWN_DIST_MIN 400 |
Definition at line 622 of file _zm_ai_wasp.gsc.
function create_global_wasp_spawn_locations_list | ( | ) |
Definition at line 584 of file _zm_ai_wasp.gsc.
References ARRAY_ADD.
Referenced by wasp_spawn_logic().
function enable_wasp_rounds | ( | ) |
Definition at line 105 of file _zm_ai_wasp.gsc.
References wasp_round_tracker().
function get_current_wasp_count | ( | ) |
Definition at line 148 of file _zm_ai_wasp.gsc.
Referenced by ready_to_spawn_wasp(), and wasp_death().
function get_favorite_enemy | ( | ) |
Definition at line 709 of file _zm_ai_wasp.gsc.
References get_parasite_enemy().
Referenced by spawn_wasp(), and special_wasp_spawn().
function init | ( | ) |
Definition at line 60 of file _zm_ai_wasp.gsc.
References ARCHETYPE_PARASITE, DEFAULT, on_connect(), PARASITE_ROUND_RING_FX, ramp_in_out_thread(), register(), register_immunity(), register_info(), VERSION_SHIP, wasp_spawner_init(), watch_player_melee_events(), ZM_AAT_BLAST_FURNACE_NAME, ZM_AAT_DEAD_WIRE_NAME, ZM_AAT_FIRE_WORKS_NAME, ZM_AAT_THUNDER_WALL_NAME, ZM_AAT_TURNED_NAME, ZM_WASP_ROUND_VISIONSET, ZM_WASP_VISION_LERP_COUNT, and ZM_WASP_VISION_OVERLAY_PRIORITY.
function parasite_drop_item | ( | v_parasite_origin | ) |
Definition at line 446 of file _zm_ai_wasp.gsc.
References check_point_in_enabled_zone(), get_current_zone(), specific_powerup_drop(), and trace().
Referenced by wasp_round_aftermath().
function parasite_round_fx | ( | ) |
Definition at line 369 of file _zm_ai_wasp.gsc.
References increment_to_player(), and PARASITE_ROUND_RING_FX.
Referenced by wasp_round_spawning().
function play_wasp_round | ( | ) |
Definition at line 863 of file _zm_ai_wasp.gsc.
References create_and_play_dialog().
Referenced by wasp_round_spawning().
function ready_to_spawn_wasp | ( | ) |
Definition at line 399 of file _zm_ai_wasp.gsc.
References get(), get_current_wasp_count(), N_MAX_WASPS, and N_MAX_WASPS_PER_PLAYER.
Referenced by spawn_wasp().
function show_hit_marker | ( | ) |
Definition at line 378 of file _zm_ai_wasp.gsc.
Referenced by waspDamage().
function spawn_wasp | ( | ) |
Definition at line 255 of file _zm_ai_wasp.gsc.
References ARRAY_ADD, get_favorite_enemy(), GROUNDPOS, N_SPAWN_HEIGHT_MIN, N_SWARM_SIZE, ready_to_spawn_wasp(), set_parasite_enemy(), spawn_zombie(), WAIT_ABOUT, wait_network_frame(), wasp_spawn_init(), and wasp_spawn_logic().
Referenced by wasp_round_spawning().
function special_wasp_spawn | ( | n_to_spawn | = 1 , |
spawn_point | , | ||
n_radius | = 32 , |
||
n_half_height | = 32 , |
||
b_non_round | , | ||
spawn_fx | = true , |
||
b_return_ai | = false , |
||
spawner_override | = undefined |
||
) |
Description:
"Function Name: special_wasp_spawn(<n_to_spawn>, <spawn_point>, <radius> , <half-height> )"
"Summary: Allows wasp to be spawned independent of the round spawning. Can return spawned AI or boolean." "Module: zm_ai_wasp"
"Mandatory Argument(s): <spawn_point> - position where parasite will be spawned"
"Optional Argument(s): <n_to_spawn> - Number to spawn, if left undefined, 1 will spawn."
"Optional Argument(s): <radius> - Radius horizontally that the parasite can spawn in from the spawn_point. Defaults to 32 units"
"Optional Argument(s): <half_height> - Vertical offset that the parasite can spawn in from the spawn_point. Defaults to 32 units"
"Optional Argument(s): <b_non_round> - If true, parasite will not count to completing a parasite round, nor will it drop Xenomatter"
"Optional Argument(s): <spawn_fx> - Whether to use the parasite spawn fx or not. Defaults to true"
"Optional Argument(s): <b_return_ai> - If true, returns the wasp entity. Defaults to false"
"Optional Argument(s): <spawner_override> - Specify a spawner to use instead of the default level wasp spawner. Defaults to undefined"
"Example:self zm_ai_wasp::special_wasp_spawn( s_temp, 1 );"
"Single Player / Multi Player: Zombie"
Definition at line 1169 of file _zm_ai_wasp.gsc.
References get_favorite_enemy(), set_parasite_enemy(), spawn_zombie(), wasp_spawn_init(), and wasp_spawn_logic().
function stop_wasp_sound_on_death | ( | ) |
Definition at line 1113 of file _zm_ai_wasp.gsc.
Referenced by wasp_behind_audio().
function wasp_add_to_spawn_pool | ( | optional_player_target | ) |
Definition at line 1337 of file _zm_ai_wasp.gsc.
References add().
function wasp_behind_audio | ( | ) |
Definition at line 1119 of file _zm_ai_wasp.gsc.
References stop_wasp_sound_on_death(), and waittill_any().
Referenced by zombie_setup_attack_properties_wasp().
function wasp_cleanup_failsafe | ( | ) |
Definition at line 982 of file _zm_ai_wasp.gsc.
References IS_TRUE, N_MSEC, N_WASP_HAS_MOVE_DIST, N_WASP_MAX_LIFE_TIMEOUT, and N_WASP_NOT_MOVED_TIMEOUT.
Referenced by wasp_init().
function wasp_death | ( | ) |
Definition at line 1033 of file _zm_ai_wasp.gsc.
References create_and_play_dialog(), get_current_wasp_count(), increment_client_stat(), increment_player_stat(), IS_TRUE, N_WASP_KILL_POINTS, and player_add_points().
Referenced by wasp_init().
function wasp_find_closest_in_global_pool | ( | favorite_enemy | ) |
Definition at line 603 of file _zm_ai_wasp.gsc.
Referenced by wasp_spawn_logic().
function wasp_health_increase | ( | ) |
Definition at line 735 of file _zm_ai_wasp.gsc.
References N_WASP_HEALTH_INCREASE, and N_WASP_HEALTH_MAX.
Referenced by wasp_round_spawning().
function wasp_init | ( | ) |
Definition at line 875 of file _zm_ai_wasp.gsc.
References enemy_death_detection(), GRAPPLE_TYPE_PULLENTIN, parasite_initialize(), wasp_cleanup_failsafe(), wasp_death(), wasp_run_think(), wasp_thundergun_knockdown(), watch_player_melee(), ZM_WASP_SWORD_KILL_POWER, zombie_death_event(), and zombie_history().
Referenced by wasp_spawner_init().
function wasp_round_aftermath | ( | ) |
Definition at line 414 of file _zm_ai_wasp.gsc.
References clear(), parasite_drop_item(), set(), and sndMusicSystem_PlayState().
Referenced by wasp_round_spawning().
function wasp_round_spawning | ( | ) |
Definition at line 162 of file _zm_ai_wasp.gsc.
References activate(), IS_TRUE, N_NUM_WASPS_PER_ROUND, N_SWARM_SIZE, N_WASP_PLAYER_SCALAR, parasite_round_fx(), play_wasp_round(), set(), spawn_wasp(), wait_network_frame(), wasp_health_increase(), wasp_round_aftermath(), ZM_WASP_RING_ENTER_DURATION, ZM_WASP_RING_EXIT_DURATION, ZM_WASP_RING_LOOP_DURATION, and ZM_WASP_ROUND_VISIONSET.
Referenced by wasp_round_tracker().
function wasp_round_start | ( | ) |
Definition at line 821 of file _zm_ai_wasp.gsc.
References set(), and sndMusicSystem_PlayState().
Referenced by wasp_round_tracker().
function wasp_round_stop | ( | ) |
Definition at line 845 of file _zm_ai_wasp.gsc.
References clear().
Referenced by wasp_round_tracker().
function wasp_round_tracker | ( | ) |
Definition at line 761 of file _zm_ai_wasp.gsc.
References get(), wasp_round_spawning(), wasp_round_start(), wasp_round_stop(), and wasp_round_wait_func().
Referenced by enable_wasp_rounds().
function wasp_round_wait_func | ( | ) |
Definition at line 748 of file _zm_ai_wasp.gsc.
References get(), wait_till(), and wait_till_clear().
Referenced by wasp_round_tracker().
function wasp_run_think | ( | ) |
Definition at line 1250 of file _zm_ai_wasp.gsc.
References is_player_valid().
Referenced by wasp_init().
function wasp_spawn_init | ( | ai | , |
origin | , | ||
should_spawn_fx | = true |
||
) |
Definition at line 526 of file _zm_ai_wasp.gsc.
References add_callback(), PlayFx(), and zombie_setup_attack_properties_wasp().
Referenced by spawn_wasp(), and special_wasp_spawn().
function wasp_spawn_logic | ( | favorite_enemy | ) |
Definition at line 625 of file _zm_ai_wasp.gsc.
References create_global_wasp_spawn_locations_list(), wasp_find_closest_in_global_pool(), WASP_SPAWN_DIST_MAX, and WASP_SPAWN_DIST_MIN.
Referenced by spawn_wasp(), and special_wasp_spawn().
function wasp_spawner_init | ( | ) |
Definition at line 118 of file _zm_ai_wasp.gsc.
References is_spawner_targeted_by_blocker(), and wasp_init().
Referenced by init().
function wasp_stalk_audio | ( | ) |
Definition at line 1324 of file _zm_ai_wasp.gsc.
function wasp_thundergun_knockdown | ( | e_player | , |
gib | |||
) |
Definition at line 968 of file _zm_ai_wasp.gsc.
Referenced by wasp_init().
function waspDamage | ( | inflictor | , |
attacker | , | ||
damage | , | ||
dFlags | , | ||
mod | , | ||
weapon | , | ||
point | , | ||
dir | , | ||
hitLoc | , | ||
offsetTime | , | ||
boneIndex | , | ||
modelIndex | |||
) |
Definition at line 389 of file _zm_ai_wasp.gsc.
References damage(), and show_hit_marker().
function watch_player_melee | ( | ) |
Definition at line 1282 of file _zm_ai_wasp.gsc.
References damage(), MELEE_RANGE_SQ, MELEE_RANGE_Z, and MELEE_VIEW_DOT.
Referenced by wasp_init().
function watch_player_melee_events | ( | ) |
Definition at line 1314 of file _zm_ai_wasp.gsc.
Referenced by init().
function zombie_setup_attack_properties_wasp | ( | ) |
Definition at line 1085 of file _zm_ai_wasp.gsc.
References set_behavior_attribute(), wasp_behind_audio(), and zombie_history().
Referenced by wasp_spawn_init().