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

Go to the source code of this file.

Macros

#define N_NUM_RAPS_PER_ROUND_1PLAYER   10
 
#define N_NUM_RAPS_PER_ROUND_2PLAYER   18
 
#define N_NUM_RAPS_PER_ROUND_3PLAYER   28
 
#define N_NUM_RAPS_PER_ROUND_4PLAYER   34
 
#define N_RAPS_DROP_HEIGHT_MAX   720
 
#define N_RAPS_DROP_SPEED   720
 
#define N_RAPS_HEALTH_INCREASE   50
 
#define N_RAPS_HEALTH_MAX   1600
 
#define N_RAPS_KILL_POINTS   70
 
#define N_RAPS_SHELLSHOCK_HIT_LIMIT   4
 
#define N_RAPS_SPAWN_DELAY_1P   2.25
 
#define N_RAPS_SPAWN_DELAY_2P   1.75
 
#define N_RAPS_SPAWN_DELAY_3P   1.25
 
#define N_RAPS_SPAWN_DELAY_4P   0.75
 

Functions

function calculate_spawn_position (favorite_enemy)
 
function can_we_spawn_raps ()
 
function cleanup_meteor ()
 
function cleanup_meteor_fx (portal_fx, ground_tell)
 
function create_global_raps_spawn_locations_list ()
 
function elemental_round_fx ()
 
function enable_raps_rounds ()
 
function get_current_raps_count ()
 
function get_favorite_enemy ()
 
function get_raps_spawn_total ()
 
function init ()
 
function play_raps_round ()
 
function player_watch_shellshock_accumulation ()
 
function raps_custom_player_shellshock (damage, attacker, direction_vec, point, mod)
 
function raps_death ()
 
function raps_explode_fx (origin)
 
function raps_find_closest_in_global_pool (favorite_enemy)
 
function raps_health_increase ()
 
function raps_init ()
 
function raps_round_aftermath ()
 
function raps_round_spawning ()
 
function raps_round_start ()
 
function raps_round_stop ()
 
function raps_round_tracker ()
 
function raps_round_wait_func ()
 
function raps_run_think ()
 
function raps_spawn_fx (ai, ent)
 
function raps_spawner_init ()
 
function raps_stalk_audio ()
 
function raps_thundergun_knockdown (player, gib)
 
function raps_timeout_after_xsec (timeout)
 
function rapsDamage (inflictor, attacker, damage, dFlags, mod, weapon, point, dir, hitLoc, offsetTime, boneIndex, modelIndex)
 
function should_raps_giveup_inaccessible_player (player)
 
function show_hit_marker ()
 
function spawn_raps ()
 
function special_raps_spawn (n_to_spawn=1, s_spawn_loc, fn_on_spawned)
 
function stop_raps_sound_on_death ()
 
function waiting_for_next_raps_spawn ()
 
function zombie_setup_attack_properties_raps ()
 

Macro Definition Documentation

◆ N_NUM_RAPS_PER_ROUND_1PLAYER

#define N_NUM_RAPS_PER_ROUND_1PLAYER   10

Definition at line 46 of file _zm_ai_raps.gsc.

◆ N_NUM_RAPS_PER_ROUND_2PLAYER

#define N_NUM_RAPS_PER_ROUND_2PLAYER   18

Definition at line 47 of file _zm_ai_raps.gsc.

◆ N_NUM_RAPS_PER_ROUND_3PLAYER

#define N_NUM_RAPS_PER_ROUND_3PLAYER   28

Definition at line 48 of file _zm_ai_raps.gsc.

◆ N_NUM_RAPS_PER_ROUND_4PLAYER

#define N_NUM_RAPS_PER_ROUND_4PLAYER   34

Definition at line 49 of file _zm_ai_raps.gsc.

◆ N_RAPS_DROP_HEIGHT_MAX

#define N_RAPS_DROP_HEIGHT_MAX   720

Definition at line 55 of file _zm_ai_raps.gsc.

◆ N_RAPS_DROP_SPEED

#define N_RAPS_DROP_SPEED   720

Definition at line 56 of file _zm_ai_raps.gsc.

◆ N_RAPS_HEALTH_INCREASE

#define N_RAPS_HEALTH_INCREASE   50

Definition at line 51 of file _zm_ai_raps.gsc.

◆ N_RAPS_HEALTH_MAX

#define N_RAPS_HEALTH_MAX   1600

Definition at line 52 of file _zm_ai_raps.gsc.

◆ N_RAPS_KILL_POINTS

#define N_RAPS_KILL_POINTS   70

Definition at line 53 of file _zm_ai_raps.gsc.

◆ N_RAPS_SHELLSHOCK_HIT_LIMIT

#define N_RAPS_SHELLSHOCK_HIT_LIMIT   4

Definition at line 1096 of file _zm_ai_raps.gsc.

◆ N_RAPS_SPAWN_DELAY_1P

#define N_RAPS_SPAWN_DELAY_1P   2.25

Definition at line 58 of file _zm_ai_raps.gsc.

◆ N_RAPS_SPAWN_DELAY_2P

#define N_RAPS_SPAWN_DELAY_2P   1.75

Definition at line 59 of file _zm_ai_raps.gsc.

◆ N_RAPS_SPAWN_DELAY_3P

#define N_RAPS_SPAWN_DELAY_3P   1.25

Definition at line 60 of file _zm_ai_raps.gsc.

◆ N_RAPS_SPAWN_DELAY_4P

#define N_RAPS_SPAWN_DELAY_4P   0.75

Definition at line 61 of file _zm_ai_raps.gsc.

Function Documentation

◆ calculate_spawn_position()

function calculate_spawn_position ( favorite_enemy  )

Definition at line 779 of file _zm_ai_raps.gsc.

References check_point_in_enabled_zone().

Referenced by spawn_raps(), and special_raps_spawn().

◆ can_we_spawn_raps()

function can_we_spawn_raps ( )

Definition at line 529 of file _zm_ai_raps.gsc.

References get(), get_current_raps_count(), N_MAX_RAPS_ALIVE, and N_MAX_RAPS_PER_PLAYER.

Referenced by spawn_raps().

◆ cleanup_meteor()

function cleanup_meteor ( )

Definition at line 705 of file _zm_ai_raps.gsc.

Referenced by raps_spawn_fx().

◆ cleanup_meteor_fx()

function cleanup_meteor_fx ( portal_fx  ,
ground_tell   
)

Definition at line 714 of file _zm_ai_raps.gsc.

Referenced by raps_spawn_fx().

◆ create_global_raps_spawn_locations_list()

function create_global_raps_spawn_locations_list ( )

Definition at line 732 of file _zm_ai_raps.gsc.

References ARRAY_ADD.

◆ elemental_round_fx()

function elemental_round_fx ( )

Definition at line 487 of file _zm_ai_raps.gsc.

References ELEMENTAL_ROUND_RING_FX, and increment_to_player().

Referenced by raps_round_spawning().

◆ enable_raps_rounds()

function enable_raps_rounds ( )

Definition at line 117 of file _zm_ai_raps.gsc.

References raps_round_tracker().

◆ get_current_raps_count()

function get_current_raps_count ( )

Definition at line 469 of file _zm_ai_raps.gsc.

Referenced by can_we_spawn_raps(), and raps_death().

◆ get_favorite_enemy()

function get_favorite_enemy ( )

Definition at line 846 of file _zm_ai_raps.gsc.

References e_target, and is_player_valid().

Referenced by raps_run_think(), spawn_raps(), and special_raps_spawn().

◆ get_raps_spawn_total()

function get_raps_spawn_total ( )

◆ init()

◆ play_raps_round()

function play_raps_round ( )

Definition at line 907 of file _zm_ai_raps.gsc.

References create_and_play_dialog().

Referenced by raps_round_spawning().

◆ player_watch_shellshock_accumulation()

function player_watch_shellshock_accumulation ( )

◆ raps_custom_player_shellshock()

function raps_custom_player_shellshock ( damage  ,
attacker  ,
direction_vec  ,
point  ,
mod   
)

Definition at line 1084 of file _zm_ai_raps.gsc.

References player_watch_shellshock_accumulation().

Referenced by raps_init().

◆ raps_death()

◆ raps_explode_fx()

function raps_explode_fx ( origin  )

Definition at line 1115 of file _zm_ai_raps.gsc.

Referenced by raps_death().

◆ raps_find_closest_in_global_pool()

function raps_find_closest_in_global_pool ( favorite_enemy  )

Definition at line 755 of file _zm_ai_raps.gsc.

◆ raps_health_increase()

function raps_health_increase ( )

Definition at line 891 of file _zm_ai_raps.gsc.

References N_RAPS_HEALTH_INCREASE, and N_RAPS_HEALTH_MAX.

Referenced by raps_round_spawning().

◆ raps_init()

◆ raps_round_aftermath()

function raps_round_aftermath ( )

Definition at line 572 of file _zm_ai_raps.gsc.

References clear(), sndMusicSystem_PlayState(), specific_powerup_drop(), and trace().

Referenced by raps_round_spawning().

◆ raps_round_spawning()

◆ raps_round_start()

function raps_round_start ( )

Definition at line 232 of file _zm_ai_raps.gsc.

References set(), and sndMusicSystem_PlayState().

Referenced by raps_round_tracker().

◆ raps_round_stop()

function raps_round_stop ( )

Definition at line 259 of file _zm_ai_raps.gsc.

References clear().

Referenced by raps_round_tracker().

◆ raps_round_tracker()

function raps_round_tracker ( )

◆ raps_round_wait_func()

function raps_round_wait_func ( )

Definition at line 449 of file _zm_ai_raps.gsc.

References get(), wait_till(), and wait_till_clear().

Referenced by raps_round_tracker().

◆ raps_run_think()

function raps_run_think ( )

◆ raps_spawn_fx()

function raps_spawn_fx ( ai  ,
ent   
)

◆ raps_spawner_init()

function raps_spawner_init ( )

Definition at line 134 of file _zm_ai_raps.gsc.

References is_spawner_targeted_by_blocker(), and raps_init().

Referenced by init().

◆ raps_stalk_audio()

function raps_stalk_audio ( )

Definition at line 1275 of file _zm_ai_raps.gsc.

◆ raps_thundergun_knockdown()

function raps_thundergun_knockdown ( player  ,
gib   
)

Definition at line 1290 of file _zm_ai_raps.gsc.

References damage().

◆ raps_timeout_after_xsec()

function raps_timeout_after_xsec ( timeout  )

Definition at line 1013 of file _zm_ai_raps.gsc.

References timeout().

Referenced by raps_init().

◆ rapsDamage()

function rapsDamage ( inflictor  ,
attacker  ,
damage  ,
dFlags  ,
mod  ,
weapon  ,
point  ,
dir  ,
hitLoc  ,
offsetTime  ,
boneIndex  ,
modelIndex   
)

Definition at line 515 of file _zm_ai_raps.gsc.

References damage(), and show_hit_marker().

◆ should_raps_giveup_inaccessible_player()

function should_raps_giveup_inaccessible_player ( player  )

Definition at line 1258 of file _zm_ai_raps.gsc.

Referenced by raps_run_think().

◆ show_hit_marker()

function show_hit_marker ( )

Definition at line 500 of file _zm_ai_raps.gsc.

Referenced by rapsDamage().

◆ spawn_raps()

◆ special_raps_spawn()

function special_raps_spawn ( n_to_spawn  = 1,
s_spawn_loc  ,
fn_on_spawned   
)

◆ stop_raps_sound_on_death()

function stop_raps_sound_on_death ( )

Definition at line 1146 of file _zm_ai_raps.gsc.

◆ waiting_for_next_raps_spawn()

function waiting_for_next_raps_spawn ( )

◆ zombie_setup_attack_properties_raps()

function zombie_setup_attack_properties_raps ( )

Definition at line 1125 of file _zm_ai_raps.gsc.

References zombie_history().

Referenced by raps_spawn_fx().