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

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 ()
 

Macro Definition Documentation

◆ MELEE_RANGE_SQ

#define MELEE_RANGE_SQ   (72 * 72)

Definition at line 1278 of file _zm_ai_wasp.gsc.

◆ MELEE_RANGE_Z

#define MELEE_RANGE_Z   (64)

Definition at line 1279 of file _zm_ai_wasp.gsc.

◆ MELEE_VIEW_DOT

#define MELEE_VIEW_DOT   0.5

Definition at line 1280 of file _zm_ai_wasp.gsc.

◆ N_MAX_WASPS

#define N_MAX_WASPS   16

Definition at line 43 of file _zm_ai_wasp.gsc.

◆ N_MAX_WASPS_PER_PLAYER

#define N_MAX_WASPS_PER_PLAYER   5

Definition at line 44 of file _zm_ai_wasp.gsc.

◆ N_MSEC

#define N_MSEC   1000

Definition at line 979 of file _zm_ai_wasp.gsc.

◆ N_NUM_WASPS_PER_ROUND

#define N_NUM_WASPS_PER_ROUND   10

Definition at line 49 of file _zm_ai_wasp.gsc.

◆ N_SPAWN_HEIGHT_MIN

#define N_SPAWN_HEIGHT_MIN   60

Definition at line 52 of file _zm_ai_wasp.gsc.

◆ N_SWARM_SIZE

#define N_SWARM_SIZE   1

Definition at line 46 of file _zm_ai_wasp.gsc.

◆ N_WASP_HAS_MOVE_DIST

#define N_WASP_HAS_MOVE_DIST   100

Definition at line 978 of file _zm_ai_wasp.gsc.

◆ N_WASP_HEALTH_INCREASE

#define N_WASP_HEALTH_INCREASE   50

Definition at line 53 of file _zm_ai_wasp.gsc.

◆ N_WASP_HEALTH_MAX

#define N_WASP_HEALTH_MAX   1600

Definition at line 54 of file _zm_ai_wasp.gsc.

◆ N_WASP_KILL_POINTS

#define N_WASP_KILL_POINTS   70

Definition at line 55 of file _zm_ai_wasp.gsc.

◆ N_WASP_MAX_LIFE_TIMEOUT

#define N_WASP_MAX_LIFE_TIMEOUT   150

Definition at line 977 of file _zm_ai_wasp.gsc.

◆ N_WASP_NOT_MOVED_TIMEOUT

#define N_WASP_NOT_MOVED_TIMEOUT   20

Definition at line 976 of file _zm_ai_wasp.gsc.

◆ N_WASP_PLAYER_SCALAR

#define N_WASP_PLAYER_SCALAR   0.75

Definition at line 50 of file _zm_ai_wasp.gsc.

◆ WASP_SPAWN_DIST_MAX

#define WASP_SPAWN_DIST_MAX   600

Definition at line 623 of file _zm_ai_wasp.gsc.

◆ WASP_SPAWN_DIST_MIN

#define WASP_SPAWN_DIST_MIN   400

Definition at line 622 of file _zm_ai_wasp.gsc.

Function Documentation

◆ create_global_wasp_spawn_locations_list()

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().

◆ enable_wasp_rounds()

function enable_wasp_rounds ( )

Definition at line 105 of file _zm_ai_wasp.gsc.

References wasp_round_tracker().

◆ get_current_wasp_count()

function get_current_wasp_count ( )

Definition at line 148 of file _zm_ai_wasp.gsc.

Referenced by ready_to_spawn_wasp(), and wasp_death().

◆ get_favorite_enemy()

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().

◆ init()

◆ parasite_drop_item()

function parasite_drop_item ( v_parasite_origin  )

◆ parasite_round_fx()

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().

◆ play_wasp_round()

function play_wasp_round ( )

Definition at line 863 of file _zm_ai_wasp.gsc.

References create_and_play_dialog().

Referenced by wasp_round_spawning().

◆ ready_to_spawn_wasp()

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().

◆ show_hit_marker()

function show_hit_marker ( )

Definition at line 378 of file _zm_ai_wasp.gsc.

Referenced by waspDamage().

◆ spawn_wasp()

◆ special_wasp_spawn()

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().

◆ stop_wasp_sound_on_death()

function stop_wasp_sound_on_death ( )

Definition at line 1113 of file _zm_ai_wasp.gsc.

Referenced by wasp_behind_audio().

◆ wasp_add_to_spawn_pool()

function wasp_add_to_spawn_pool ( optional_player_target  )

Definition at line 1337 of file _zm_ai_wasp.gsc.

References add().

◆ wasp_behind_audio()

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().

◆ wasp_cleanup_failsafe()

function wasp_cleanup_failsafe ( )

◆ wasp_death()

◆ wasp_find_closest_in_global_pool()

function wasp_find_closest_in_global_pool ( favorite_enemy  )

Definition at line 603 of file _zm_ai_wasp.gsc.

Referenced by wasp_spawn_logic().

◆ wasp_health_increase()

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().

◆ wasp_init()

◆ wasp_round_aftermath()

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().

◆ wasp_round_spawning()

◆ wasp_round_start()

function wasp_round_start ( )

Definition at line 821 of file _zm_ai_wasp.gsc.

References set(), and sndMusicSystem_PlayState().

Referenced by wasp_round_tracker().

◆ wasp_round_stop()

function wasp_round_stop ( )

Definition at line 845 of file _zm_ai_wasp.gsc.

References clear().

Referenced by wasp_round_tracker().

◆ wasp_round_tracker()

function wasp_round_tracker ( )

◆ wasp_round_wait_func()

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().

◆ wasp_run_think()

function wasp_run_think ( )

Definition at line 1250 of file _zm_ai_wasp.gsc.

References is_player_valid().

Referenced by wasp_init().

◆ wasp_spawn_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().

◆ wasp_spawn_logic()

function wasp_spawn_logic ( favorite_enemy  )

◆ wasp_spawner_init()

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().

◆ wasp_stalk_audio()

function wasp_stalk_audio ( )

Definition at line 1324 of file _zm_ai_wasp.gsc.

◆ wasp_thundergun_knockdown()

function wasp_thundergun_knockdown ( e_player  ,
gib   
)

Definition at line 968 of file _zm_ai_wasp.gsc.

Referenced by wasp_init().

◆ waspDamage()

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().

◆ watch_player_melee()

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().

◆ watch_player_melee_events()

function watch_player_melee_events ( )

Definition at line 1314 of file _zm_ai_wasp.gsc.

Referenced by init().

◆ zombie_setup_attack_properties_wasp()

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().