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

Go to the source code of this file.

Functions

function _register_undefined_powerup (str_powerup)
 
function add_zombie_powerup (powerup_name, model_name, hint, func_should_drop_with_regular_powerups, only_affects_grabber, any_team, zombie_grabbable, fx, client_field_name, time_name, on_name, clientfield_version=VERSION_SHIP, player_specific=false)
 
function add_zombie_special_drop (powerup_name)
 
function check_for_instakill (player, mod, hit_location)
 
function check_for_rare_drop_override (pos)
 
function devil_dialog_delay ()
 
function func_should_always_drop ()
 
function func_should_never_drop ()
 
function get_closest_window_repair (windows, origin)
 
function get_next_powerup ()
 
function get_powerups (origin, radius)
 
function get_random_powerup_name ()
 
function get_regular_random_powerup_name ()
 
function get_valid_powerup ()
 
function include_zombie_powerup (powerup_name)
 
function init ()
 
function init_player_zombie_vars ()
 
function init_powerups ()
 
function is_carpenter_boards_upgraded ()
 
function is_insta_kill_active ()
 
function minigun_no_drop ()
 
function point_doubler_on_hud (drop_item, player_team)
 
function powerup_delete ()
 
function powerup_delete_delayed (time)
 
function powerup_drop (drop_point)
 
function powerup_emp ()
 
function powerup_grab (powerup_team)
 
function powerup_hud_monitor ()
 
function powerup_move ()
 
function powerup_remove_from_regular_drops (powerup_name)
 
function powerup_round_start ()
 
function powerup_set_can_pick_up_in_last_stand (powerup_name, b_can_pick_up)
 
function powerup_set_player_specific (powerup_name, b_player_specific=POWERUP_FOR_SPECIFIC_PLAYER)
 
function powerup_set_prevent_pick_up_if_drinking (powerup_name, b_prevent_pick_up)
 
function powerup_set_statless_powerup (powerup_name)
 
function powerup_setup (powerup_override, powerup_team, powerup_location, powerup_player, shouldplaysound=true)
 
function powerup_show (visible)
 
function powerup_timeout ()
 
function powerup_vo (type)
 
function powerup_wobble ()
 
function powerup_wobble_fx ()
 
function powerup_zombie_grab (powerup_team)
 
function powerup_zombie_grab_trigger_cleanup (trigger)
 
function print_powerup_drop (powerup, type)
 
function randomize_powerups ()
 
function register_carpenter_node (node, callback)
 
function register_powerup (str_powerup, func_grab_powerup, func_setup)
 
function register_powerup_weapon (str_powerup, func_countdown)
 
function set_clientfield_powerups (clientfield_name, powerup_timer, powerup_on, flashing_timers, flashing_values)
 
function set_weapon_ignore_max_ammo (weapon)
 
function should_award_stat (powerup_name)
 
function show_on_hud (player_team, str_powerup)
 
function special_drop_setup ()
 
function special_powerup_drop (drop_point)
 
function specific_powerup_drop (powerup_name, drop_spot, powerup_team, powerup_location, pickup_delay, powerup_player, b_stay_forever)
 
function teller_withdrawl (powerup, player)
 
function tesla_powerup_active ()
 
function time_remaining_on_point_doubler_powerup (player_team)
 
function time_remaining_on_powerup (player_team, str_powerup)
 
function watch_for_drop ()
 
function weapon_powerup (ent_player, time, str_weapon, allow_cycling=false)
 
function weapon_powerup_change (ent_player, str_gun_return_notify, str_weapon)
 
function weapon_powerup_countdown (ent_player, str_gun_return_notify, time, str_weapon)
 
function weapon_powerup_remove (ent_player, str_gun_return_notify, str_weapon, b_switch_back_weapon=true)
 
function weapon_powerup_replace (ent_player, str_gun_return_notify, str_weapon)
 
function weapon_watch_gunner_downed (str_weapon)
 

Function Documentation

◆ _register_undefined_powerup()

function _register_undefined_powerup ( str_powerup  )

Definition at line 1980 of file _zm_powerups.gsc.

References include_zombie_powerup().

Referenced by register_powerup(), and register_powerup_weapon().

◆ add_zombie_powerup()

function add_zombie_powerup ( powerup_name  ,
model_name  ,
hint  ,
func_should_drop_with_regular_powerups  ,
only_affects_grabber  ,
any_team  ,
zombie_grabbable  ,
fx  ,
client_field_name  ,
time_name  ,
on_name  ,
clientfield_version  = VERSION_SHIP,
player_specific  = false 
)

Definition at line 477 of file _zm_powerups.gsc.

References add_zombie_special_drop(), IS_TRUE, and register().

Referenced by init_powerups().

◆ add_zombie_special_drop()

function add_zombie_special_drop ( powerup_name  )

Definition at line 552 of file _zm_powerups.gsc.

Referenced by add_zombie_powerup().

◆ check_for_instakill()

function check_for_instakill ( player  ,
mod  ,
hit_location   
)

◆ check_for_rare_drop_override()

function check_for_rare_drop_override ( pos  )

Definition at line 1576 of file _zm_powerups.gsc.

References get().

Referenced by powerup_drop().

◆ devil_dialog_delay()

function devil_dialog_delay ( )

Definition at line 1567 of file _zm_powerups.gsc.

◆ func_should_always_drop()

function func_should_always_drop ( )

Definition at line 1644 of file _zm_powerups.gsc.

Referenced by __init__().

◆ func_should_never_drop()

function func_should_never_drop ( )

Definition at line 1639 of file _zm_powerups.gsc.

Referenced by __init__(), init_powerups(), and powerup_remove_from_regular_drops().

◆ get_closest_window_repair()

function get_closest_window_repair ( windows  ,
origin   
)

Definition at line 1182 of file _zm_powerups.gsc.

References all_chunks_intact().

◆ get_next_powerup()

function get_next_powerup ( )

Definition at line 336 of file _zm_powerups.gsc.

References randomize_powerups().

Referenced by get_valid_powerup().

◆ get_powerups()

function get_powerups ( origin  ,
radius   
)

Definition at line 1688 of file _zm_powerups.gsc.

◆ get_random_powerup_name()

function get_random_powerup_name ( )

Definition at line 454 of file _zm_powerups.gsc.

◆ get_regular_random_powerup_name()

function get_regular_random_powerup_name ( )

Definition at line 461 of file _zm_powerups.gsc.

◆ get_valid_powerup()

function get_valid_powerup ( )

◆ include_zombie_powerup()

function include_zombie_powerup ( powerup_name  )

Definition at line 562 of file _zm_powerups.gsc.

Referenced by _register_undefined_powerup().

◆ init()

◆ init_player_zombie_vars()

function init_player_zombie_vars ( )

Definition at line 148 of file _zm_powerups.gsc.

Referenced by init().

◆ init_powerups()

◆ is_carpenter_boards_upgraded()

function is_carpenter_boards_upgraded ( )

Definition at line 1625 of file _zm_powerups.gsc.

Referenced by start_carpenter(), and start_carpenter_new().

◆ is_insta_kill_active()

function is_insta_kill_active ( )

Definition at line 1430 of file _zm_powerups.gsc.

◆ minigun_no_drop()

function minigun_no_drop ( )

Definition at line 388 of file _zm_powerups.gsc.

References get().

Referenced by func_should_drop_minigun().

◆ point_doubler_on_hud()

function point_doubler_on_hud ( drop_item  ,
player_team   
)

◆ powerup_delete()

function powerup_delete ( )

◆ powerup_delete_delayed()

function powerup_delete_delayed ( time  )

Definition at line 1417 of file _zm_powerups.gsc.

References powerup_delete().

Referenced by powerup_emp(), powerup_grab(), and powerup_zombie_grab().

◆ powerup_drop()

◆ powerup_emp()

function powerup_emp ( )

◆ powerup_grab()

◆ powerup_hud_monitor()

◆ powerup_move()

function powerup_move ( )

Definition at line 1649 of file _zm_powerups.gsc.

Referenced by powerup_drop(), special_drop_setup(), and specific_powerup_drop().

◆ powerup_remove_from_regular_drops()

function powerup_remove_from_regular_drops ( powerup_name  )

Definition at line 572 of file _zm_powerups.gsc.

References func_should_never_drop().

◆ powerup_round_start()

function powerup_round_start ( )

Definition at line 581 of file _zm_powerups.gsc.

Referenced by round_think().

◆ powerup_set_can_pick_up_in_last_stand()

function powerup_set_can_pick_up_in_last_stand ( powerup_name  ,
b_can_pick_up   
)

Definition at line 529 of file _zm_powerups.gsc.

◆ powerup_set_player_specific()

function powerup_set_player_specific ( powerup_name  ,
b_player_specific  = POWERUP_FOR_SPECIFIC_PLAYER 
)

Definition at line 539 of file _zm_powerups.gsc.

Referenced by __init__().

◆ powerup_set_prevent_pick_up_if_drinking()

function powerup_set_prevent_pick_up_if_drinking ( powerup_name  ,
b_prevent_pick_up   
)

Definition at line 534 of file _zm_powerups.gsc.

Referenced by __init__().

◆ powerup_set_statless_powerup()

function powerup_set_statless_powerup ( powerup_name  )

Definition at line 544 of file _zm_powerups.gsc.

References DEFAULT.

Referenced by __init__().

◆ powerup_setup()

function powerup_setup ( powerup_override  ,
powerup_team  ,
powerup_location  ,
powerup_player  ,
shouldplaysound  = true 
)

◆ powerup_show()

function powerup_show ( visible  )

Definition at line 1314 of file _zm_powerups.gsc.

Referenced by powerup_timeout(), and powerup_widows_wine_timeout().

◆ powerup_timeout()

function powerup_timeout ( )

◆ powerup_vo()

◆ powerup_wobble()

function powerup_wobble ( )

Definition at line 1284 of file _zm_powerups.gsc.

References powerup_wobble_fx().

Referenced by powerup_drop(), special_drop_setup(), and specific_powerup_drop().

◆ powerup_wobble_fx()

◆ powerup_zombie_grab()

◆ powerup_zombie_grab_trigger_cleanup()

function powerup_zombie_grab_trigger_cleanup ( trigger  )

Definition at line 877 of file _zm_powerups.gsc.

References waittill_any().

Referenced by powerup_zombie_grab().

◆ print_powerup_drop()

function print_powerup_drop ( powerup  ,
type   
)

Definition at line 1605 of file _zm_powerups.gsc.

Referenced by powerup_drop().

◆ randomize_powerups()

function randomize_powerups ( )

Definition at line 321 of file _zm_powerups.gsc.

Referenced by get_next_powerup(), and init_powerups().

◆ register_carpenter_node()

function register_carpenter_node ( node  ,
callback   
)

Definition at line 1609 of file _zm_powerups.gsc.

References callback().

◆ register_powerup()

function register_powerup ( str_powerup  ,
func_grab_powerup  ,
func_setup   
)

Description:
"Function Name: register_powerup( <str_powerup>, [func_grab_powerup], [func_setup] )" "Module: Zombie Powerups"
"Summary: Registers functions to run when zombie perks are given to and taken from players."
"Mandatory Argument(s): <str_powerup>: the name of the specialty that this perk uses. This should be unique, and will identify this perk in system scripts."
"Optional Argument(s): [func_grab_powerup]: this function will run when the player grabs the powerup."
"Optional Argument(s): [func_setup]: this function will in addition to normal powerup setup."

"Example:register_powerup( "nuke", &grab_nuke );"
"Single Player / Multi Player: multiplayer"

Definition at line 1956 of file _zm_powerups.gsc.

References _register_undefined_powerup().

Referenced by __init__().

◆ register_powerup_weapon()

function register_powerup_weapon ( str_powerup  ,
func_countdown   
)

Description:
"Function Name: register_powerup_weapon( <str_powerup>, [func_grab_powerup], [func_setup] )" "Module: Zombie Powerups"
"Summary: Registers functions to run when zombie perks are given to and taken from players."
"Mandatory Argument(s): <str_powerup>: the name of the specialty that this perk uses. This should be unique, and will identify this perk in system scripts."
"Optional Argument(s): [func_countdown]: this function will run when the weapon powerup counts down."
"Example:register_powerup_weapon( "minigun", &minigun_countdown );"
"Single Player / Multi Player: multiplayer"

Definition at line 2004 of file _zm_powerups.gsc.

References _register_undefined_powerup().

Referenced by __init__().

◆ set_clientfield_powerups()

function set_clientfield_powerups ( clientfield_name  ,
powerup_timer  ,
powerup_on  ,
flashing_timers  ,
flashing_values   
)

◆ set_weapon_ignore_max_ammo()

function set_weapon_ignore_max_ammo ( weapon  )

Definition at line 154 of file _zm_powerups.gsc.

Referenced by __init__().

◆ should_award_stat()

function should_award_stat ( powerup_name  )

Definition at line 1705 of file _zm_powerups.gsc.

Referenced by powerup_grab().

◆ show_on_hud()

function show_on_hud ( player_team  ,
str_powerup   
)

◆ special_drop_setup()

function special_drop_setup ( )

◆ special_powerup_drop()

function special_powerup_drop ( drop_point  )

Definition at line 720 of file _zm_powerups.gsc.

References spawn(), and special_drop_setup().

Referenced by player_teleporting().

◆ specific_powerup_drop()

function specific_powerup_drop ( powerup_name  ,
drop_spot  ,
powerup_team  ,
powerup_location  ,
pickup_delay  ,
powerup_player  ,
b_stay_forever   
)

◆ teller_withdrawl()

function teller_withdrawl ( powerup  ,
player   
)

Definition at line 1720 of file _zm_powerups.gsc.

References add_to_player_score().

Referenced by powerup_grab().

◆ tesla_powerup_active()

function tesla_powerup_active ( )

Definition at line 1586 of file _zm_powerups.gsc.

Referenced by powerup_setup().

◆ time_remaining_on_point_doubler_powerup()

function time_remaining_on_point_doubler_powerup ( player_team  )

Definition at line 1534 of file _zm_powerups.gsc.

References N_POWERUP_DEFAULT_TIME, spawn(), and WAIT_SERVER_FRAME.

Referenced by point_doubler_on_hud().

◆ time_remaining_on_powerup()

function time_remaining_on_powerup ( player_team  ,
str_powerup   
)

Definition at line 1751 of file _zm_powerups.gsc.

References is_team_enabled(), N_POWERUP_DEFAULT_TIME, Spawn(), and WAIT_SERVER_FRAME.

Referenced by show_on_hud().

◆ watch_for_drop()

function watch_for_drop ( )

Definition at line 417 of file _zm_powerups.gsc.

References WAIT_SERVER_FRAME, wait_till(), and while().

Referenced by init().

◆ weapon_powerup()

function weapon_powerup ( ent_player  ,
time  ,
str_weapon  ,
allow_cycling  = false 
)

◆ weapon_powerup_change()

function weapon_powerup_change ( ent_player  ,
str_gun_return_notify  ,
str_weapon   
)

Definition at line 1820 of file _zm_powerups.gsc.

References weapon_powerup_remove().

Referenced by weapon_powerup().

◆ weapon_powerup_countdown()

function weapon_powerup_countdown ( ent_player  ,
str_gun_return_notify  ,
time  ,
str_weapon   
)

Definition at line 1841 of file _zm_powerups.gsc.

References is_team_enabled(), N_POWERUP_DEFAULT_TIME, and weapon_powerup_remove().

Referenced by weapon_powerup().

◆ weapon_powerup_remove()

function weapon_powerup_remove ( ent_player  ,
str_gun_return_notify  ,
str_weapon  ,
b_switch_back_weapon  = true 
)

◆ weapon_powerup_replace()

function weapon_powerup_replace ( ent_player  ,
str_gun_return_notify  ,
str_weapon   
)

Definition at line 1863 of file _zm_powerups.gsc.

References decrement_is_drinking().

Referenced by weapon_powerup().

◆ weapon_watch_gunner_downed()

function weapon_watch_gunner_downed ( str_weapon  )

Definition at line 1911 of file _zm_powerups.gsc.

References IS_TRUE, and WAIT_SERVER_FRAME.

Referenced by minigun_powerup_last_stand().