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

Go to the source code of this file.

Functions

function __init__ ()
 
function __main__ ()
 
function box_encounter_vo ()
 
function boxstub_update_prompt (player)
 
function boxtrigger_update_prompt (player)
 
function can_buy_weapon ()
 
function check_for_desirable_chest_location ()
 
function chest_get_max_usage ()
 
function chest_get_min_usage ()
 
function clean_up_hacked_box ()
 
function decide_hide_show_hint (endon_notify, second_endon_notify, onlyplayer, can_buy_weapon_extra_check_func)
 
function default_box_move_logic ()
 
function default_magic_box_check_equipment (weapon)
 
function default_pandora_fx_func ()
 
function default_pandora_show_func (anchor, anchorTarget, pieces)
 
function fire_sale_fix ()
 
function get_chest_pieces ()
 
function get_left_hand_weapon_model_name (weapon)
 
function get_magic_box_zbarrier_state ()
 
function give_hero_weapon (weapon)
 
function hide_chest (doBoxLeave)
 
function init_starting_chest_location (start_chest_name)
 
function is_chest_active ()
 
function magic_box_arrives ()
 
function magic_box_closes ()
 
function magic_box_do_teddy_flyaway ()
 
function magic_box_do_weapon_rise ()
 
function magic_box_initial ()
 
function magic_box_leaves ()
 
function magic_box_opens ()
 
function magic_box_zbarrier_leave ()
 
function magicbox_host_migration ()
 
function magicbox_unitrigger_think ()
 
function play_crazi_sound ()
 
function process_magic_box_zbarrier_state (state)
 
function rotateroll_box ()
 
function set_magic_box_zbarrier_state (state)
 
function set_treasure_chest_cost (cost)
 
function should_upgrade_weapon (player, weapon)
 
function show_chest ()
 
function spawn_joker_weapon_model (player, model, origin, angles)
 
function timer_til_despawn (v_float)
 
function treasure_chest_CanPlayerReceiveWeapon (player, weapon, pap_triggers)
 
function treasure_chest_ChooseWeightedRandomWeapon (player)
 
function treasure_chest_firesale_active ()
 
function treasure_chest_give_weapon (weapon)
 
function treasure_chest_glowfx ()
 
function treasure_chest_init (start_chest_name)
 
function treasure_chest_lid_close (timedOut)
 
function treasure_chest_lid_open ()
 
function treasure_chest_move (player_vox)
 
function treasure_chest_should_move (chest, player)
 
function treasure_chest_think ()
 
function treasure_chest_timeout ()
 
function treasure_chest_weapon_locking (player, weapon, onOff)
 
function treasure_chest_weapon_spawn (chest, player, respin)
 
function trigger_visible_to_player (player)
 
function unregister_unitrigger_on_kill_think ()
 
function verify_chest_is_open ()
 
function watch_for_emp_close ()
 
function weapon_show_hint_choke ()
 

Function Documentation

◆ __init__()

function __init__ ( )

Definition at line 56 of file _zm_magicbox.gsc.

References magicbox_host_migration(), register(), VERSION_SHIP, and VERSION_TU7.

◆ __main__()

◆ box_encounter_vo()

function box_encounter_vo ( )

◆ boxstub_update_prompt()

function boxstub_update_prompt ( player  )

Definition at line 320 of file _zm_magicbox.gsc.

References get_hint_string(), IS_TRUE, and trigger_visible_to_player().

Referenced by boxtrigger_update_prompt().

◆ boxtrigger_update_prompt()

function boxtrigger_update_prompt ( player  )

Definition at line 307 of file _zm_magicbox.gsc.

References boxstub_update_prompt().

Referenced by get_chest_pieces().

◆ can_buy_weapon()

◆ check_for_desirable_chest_location()

function check_for_desirable_chest_location ( )

Definition at line 1121 of file _zm_magicbox.gsc.

◆ chest_get_max_usage()

function chest_get_max_usage ( )

Definition at line 1850 of file _zm_magicbox.gsc.

◆ chest_get_min_usage()

function chest_get_min_usage ( )

Definition at line 1841 of file _zm_magicbox.gsc.

◆ clean_up_hacked_box()

function clean_up_hacked_box ( )

Definition at line 1399 of file _zm_magicbox.gsc.

Referenced by treasure_chest_weapon_spawn().

◆ decide_hide_show_hint()

function decide_hide_show_hint ( endon_notify  ,
second_endon_notify  ,
onlyplayer  ,
can_buy_weapon_extra_check_func   
)

◆ default_box_move_logic()

function default_box_move_logic ( )

Definition at line 972 of file _zm_magicbox.gsc.

Referenced by treasure_chest_move().

◆ default_magic_box_check_equipment()

function default_magic_box_check_equipment ( weapon  )

Definition at line 355 of file _zm_magicbox.gsc.

References is_offhand_weapon().

Referenced by __main__().

◆ default_pandora_fx_func()

function default_pandora_fx_func ( )

Definition at line 492 of file _zm_magicbox.gsc.

References IS_TRUE, Spawn(), and wait_till().

Referenced by default_pandora_show_func().

◆ default_pandora_show_func()

function default_pandora_show_func ( anchor  ,
anchorTarget  ,
pieces   
)

Definition at line 517 of file _zm_magicbox.gsc.

References default_pandora_fx_func().

Referenced by init_starting_chest_location().

◆ fire_sale_fix()

function fire_sale_fix ( )

◆ get_chest_pieces()

function get_chest_pieces ( )

◆ get_left_hand_weapon_model_name()

function get_left_hand_weapon_model_name ( weapon  )

Definition at line 1388 of file _zm_magicbox.gsc.

◆ get_magic_box_zbarrier_state()

function get_magic_box_zbarrier_state ( )

Definition at line 2093 of file _zm_magicbox.gsc.

Referenced by is_chest_active().

◆ give_hero_weapon()

function give_hero_weapon ( weapon  )

Definition at line 1967 of file _zm_magicbox.gsc.

References waittill_any_timeout(), and weapon_give().

Referenced by treasure_chest_give_weapon().

◆ hide_chest()

◆ init_starting_chest_location()

function init_starting_chest_location ( start_chest_name  )

◆ is_chest_active()

function is_chest_active ( )

Definition at line 2076 of file _zm_magicbox.gsc.

References get(), and get_magic_box_zbarrier_state().

◆ magic_box_arrives()

function magic_box_arrives ( )

Definition at line 2003 of file _zm_magicbox.gsc.

References WAIT_SERVER_FRAME.

Referenced by process_magic_box_zbarrier_state().

◆ magic_box_closes()

function magic_box_closes ( )

Definition at line 2033 of file _zm_magicbox.gsc.

Referenced by process_magic_box_zbarrier_state().

◆ magic_box_do_teddy_flyaway()

function magic_box_do_teddy_flyaway ( )

Definition at line 2070 of file _zm_magicbox.gsc.

◆ magic_box_do_weapon_rise()

function magic_box_do_weapon_rise ( )

Definition at line 2043 of file _zm_magicbox.gsc.

References wait_network_frame().

Referenced by treasure_chest_weapon_spawn().

◆ magic_box_initial()

function magic_box_initial ( )

Definition at line 1996 of file _zm_magicbox.gsc.

References set().

Referenced by process_magic_box_zbarrier_state().

◆ magic_box_leaves()

function magic_box_leaves ( )

Definition at line 2013 of file _zm_magicbox.gsc.

Referenced by process_magic_box_zbarrier_state().

◆ magic_box_opens()

function magic_box_opens ( )

Definition at line 2023 of file _zm_magicbox.gsc.

Referenced by process_magic_box_zbarrier_state().

◆ magic_box_zbarrier_leave()

function magic_box_zbarrier_leave ( )

Definition at line 485 of file _zm_magicbox.gsc.

References set_magic_box_zbarrier_state().

Referenced by hide_chest().

◆ magicbox_host_migration()

function magicbox_host_migration ( )

Definition at line 2152 of file _zm_magicbox.gsc.

References IS_TRUE, and wait_network_frame().

Referenced by __init__().

◆ magicbox_unitrigger_think()

function magicbox_unitrigger_think ( )

◆ play_crazi_sound()

function play_crazi_sound ( )

Definition at line 409 of file _zm_magicbox.gsc.

Referenced by treasure_chest_move().

◆ process_magic_box_zbarrier_state()

function process_magic_box_zbarrier_state ( state  )

◆ rotateroll_box()

function rotateroll_box ( )

Definition at line 1145 of file _zm_magicbox.gsc.

◆ set_magic_box_zbarrier_state()

function set_magic_box_zbarrier_state ( state  )

◆ set_treasure_chest_cost()

function set_treasure_chest_cost ( cost  )

Definition at line 258 of file _zm_magicbox.gsc.

◆ should_upgrade_weapon()

function should_upgrade_weapon ( player  ,
weapon   
)

Definition at line 1981 of file _zm_magicbox.gsc.

References is_enabled().

Referenced by treasure_chest_give_weapon().

◆ show_chest()

◆ spawn_joker_weapon_model()

function spawn_joker_weapon_model ( player  ,
model  ,
origin  ,
angles   
)

Definition at line 1523 of file _zm_magicbox.gsc.

References spawn().

Referenced by treasure_chest_weapon_locking().

◆ timer_til_despawn()

function timer_til_despawn ( v_float  )

Definition at line 1900 of file _zm_magicbox.gsc.

Referenced by treasure_chest_weapon_spawn().

◆ treasure_chest_CanPlayerReceiveWeapon()

function treasure_chest_CanPlayerReceiveWeapon ( player  ,
weapon  ,
pap_triggers   
)

◆ treasure_chest_ChooseWeightedRandomWeapon()

function treasure_chest_ChooseWeightedRandomWeapon ( player  )

◆ treasure_chest_firesale_active()

function treasure_chest_firesale_active ( )

Definition at line 1424 of file _zm_magicbox.gsc.

References IS_TRUE.

Referenced by treasure_chest_should_move(), and treasure_chest_weapon_spawn().

◆ treasure_chest_give_weapon()

function treasure_chest_give_weapon ( weapon  )

◆ treasure_chest_glowfx()

function treasure_chest_glowfx ( )

Definition at line 1914 of file _zm_magicbox.gsc.

References set(), and waittill_any_return().

Referenced by treasure_chest_think().

◆ treasure_chest_init()

function treasure_chest_init ( start_chest_name  )

◆ treasure_chest_lid_close()

function treasure_chest_lid_close ( timedOut  )

Definition at line 1208 of file _zm_magicbox.gsc.

References play_sound_at_pos().

Referenced by treasure_chest_think().

◆ treasure_chest_lid_open()

function treasure_chest_lid_open ( )

Definition at line 1197 of file _zm_magicbox.gsc.

References play_sound_at_pos().

Referenced by treasure_chest_think().

◆ treasure_chest_move()

function treasure_chest_move ( player_vox  )

◆ treasure_chest_should_move()

function treasure_chest_should_move ( chest  ,
player   
)

Definition at line 1429 of file _zm_magicbox.gsc.

References IS_TRUE, and treasure_chest_firesale_active().

Referenced by treasure_chest_weapon_spawn().

◆ treasure_chest_think()

◆ treasure_chest_timeout()

function treasure_chest_timeout ( )

Definition at line 1187 of file _zm_magicbox.gsc.

Referenced by treasure_chest_think().

◆ treasure_chest_weapon_locking()

function treasure_chest_weapon_locking ( player  ,
weapon  ,
onOff   
)

◆ treasure_chest_weapon_spawn()

◆ trigger_visible_to_player()

function trigger_visible_to_player ( player  )

Definition at line 361 of file _zm_magicbox.gsc.

References can_buy_weapon(), hacker_active(), is_enabled(), and is_placeable_mine().

Referenced by boxstub_update_prompt().

◆ unregister_unitrigger_on_kill_think()

function unregister_unitrigger_on_kill_think ( )

Definition at line 536 of file _zm_magicbox.gsc.

References unregister_unitrigger().

Referenced by treasure_chest_think().

◆ verify_chest_is_open()

function verify_chest_is_open ( )

Definition at line 1163 of file _zm_magicbox.gsc.

◆ watch_for_emp_close()

function watch_for_emp_close ( )

Definition at line 892 of file _zm_magicbox.gsc.

References get(), and should_watch_for_emp().

Referenced by treasure_chest_think().

◆ weapon_show_hint_choke()

function weapon_show_hint_choke ( )

Definition at line 1291 of file _zm_magicbox.gsc.

References WAIT_SERVER_FRAME.

Referenced by decide_hide_show_hint().