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

Go to the source code of this file.

Functions

function private __init__ ()
 
function private __main__ ()
 
function add_melee_weapon (weapon, flourish_weapon, ballistic_weapon, ballistic_upgraded_weapon, cost, wallbuy_targetname, hint_string, vo_dialog_id, flourish_fn)
 
function add_stub (stub, weapon)
 
function award_melee_weapon (weapon_name)
 
function change_melee_weapon (weapon, current_weapon)
 
function determine_fallback_weapon ()
 
function do_melee_weapon_flourish_begin (flourish_weapon)
 
function do_melee_weapon_flourish_end (original_weapon, flourish_weapon, weapon, ballistic_weapon, ballistic_upgraded_weapon)
 
function find_melee_weapon (weapon)
 
function give_ballistic_knife (weapon, upgraded)
 
function give_fallback_weapon (immediate=false)
 
function give_melee_weapon (vo_dialog_id, flourish_weapon, weapon, ballistic_weapon, ballistic_upgraded_weapon, flourish_fn, trigger)
 
function has_any_ballistic_knife ()
 
function has_upgraded_ballistic_knife ()
 
function init (weapon_name, flourish_weapon_name, ballistic_weapon_name, ballistic_upgraded_weapon_name, cost, wallbuy_targetname, hint_string, vo_dialog_id, flourish_fn)
 
function melee_weapon_show (player)
 
function melee_weapon_think (weapon, cost, flourish_fn, vo_dialog_id, flourish_weapon, ballistic_weapon, ballistic_upgraded_weapon)
 
function player_can_see_weapon_prompt ()
 
function prepare_stub (stub, weapon, flourish_weapon, ballistic_weapon, ballistic_upgraded_weapon, cost, wallbuy_targetname, hint_string, vo_dialog_id, flourish_fn)
 
function set_fallback_weapon (weapon_name, fallback_weapon_name)
 
function spectator_respawn (wallbuy_targetname, weapon)
 
function spectator_respawn_all ()
 
function take_fallback_weapon ()
 
function trigger_hide (wallbuy_targetname)
 
function trigger_hide_all ()
 

Function Documentation

◆ __init__()

function private __init__ ( )

Definition at line 45 of file _zm_melee_weapon.gsc.

◆ __main__()

function private __main__ ( )

Definition at line 53 of file _zm_melee_weapon.gsc.

◆ add_melee_weapon()

function add_melee_weapon ( weapon  ,
flourish_weapon  ,
ballistic_weapon  ,
ballistic_upgraded_weapon  ,
cost  ,
wallbuy_targetname  ,
hint_string  ,
vo_dialog_id  ,
flourish_fn   
)

Definition at line 165 of file _zm_melee_weapon.gsc.

Referenced by init().

◆ add_stub()

function add_stub ( stub  ,
weapon   
)

Definition at line 154 of file _zm_melee_weapon.gsc.

References find_melee_weapon(), and prepare_stub().

Referenced by add_dynamic_wallbuy().

◆ award_melee_weapon()

function award_melee_weapon ( weapon_name  )

Definition at line 590 of file _zm_melee_weapon.gsc.

References find_melee_weapon(), and give_melee_weapon().

◆ change_melee_weapon()

function change_melee_weapon ( weapon  ,
current_weapon   
)

◆ determine_fallback_weapon()

function determine_fallback_weapon ( )

◆ do_melee_weapon_flourish_begin()

function do_melee_weapon_flourish_begin ( flourish_weapon  )

◆ do_melee_weapon_flourish_end()

function do_melee_weapon_flourish_end ( original_weapon  ,
flourish_weapon  ,
weapon  ,
ballistic_weapon  ,
ballistic_upgraded_weapon   
)

◆ find_melee_weapon()

function find_melee_weapon ( weapon  )

◆ give_ballistic_knife()

function give_ballistic_knife ( weapon  ,
upgraded   
)

Definition at line 325 of file _zm_melee_weapon.gsc.

References get_player_melee_weapon().

Referenced by weapon_give().

◆ give_fallback_weapon()

function give_fallback_weapon ( immediate  = false)

◆ give_melee_weapon()

function give_melee_weapon ( vo_dialog_id  ,
flourish_weapon  ,
weapon  ,
ballistic_weapon  ,
ballistic_upgraded_weapon  ,
flourish_fn  ,
trigger   
)

◆ has_any_ballistic_knife()

function has_any_ballistic_knife ( )

Definition at line 295 of file _zm_melee_weapon.gsc.

Referenced by has_weapon_or_upgrade().

◆ has_upgraded_ballistic_knife()

function has_upgraded_ballistic_knife ( )

Definition at line 310 of file _zm_melee_weapon.gsc.

References is_weapon_upgraded().

Referenced by has_upgrade().

◆ init()

function init ( weapon_name  ,
flourish_weapon_name  ,
ballistic_weapon_name  ,
ballistic_upgraded_weapon_name  ,
cost  ,
wallbuy_targetname  ,
hint_string  ,
vo_dialog_id  ,
flourish_fn   
)

◆ melee_weapon_show()

function melee_weapon_show ( player  )

◆ melee_weapon_think()

function melee_weapon_think ( weapon  ,
cost  ,
flourish_fn  ,
vo_dialog_id  ,
flourish_weapon  ,
ballistic_weapon  ,
ballistic_upgraded_weapon   
)

◆ player_can_see_weapon_prompt()

function player_can_see_weapon_prompt ( )

Definition at line 231 of file _zm_melee_weapon.gsc.

References get_player_melee_weapon(), and IS_TRUE.

Referenced by melee_weapon_think(), and spectator_respawn().

◆ prepare_stub()

function prepare_stub ( stub  ,
weapon  ,
flourish_weapon  ,
ballistic_weapon  ,
ballistic_upgraded_weapon  ,
cost  ,
wallbuy_targetname  ,
hint_string  ,
vo_dialog_id  ,
flourish_fn   
)

Definition at line 119 of file _zm_melee_weapon.gsc.

References IS_TRUE, and melee_weapon_think().

Referenced by add_stub(), and init().

◆ set_fallback_weapon()

function set_fallback_weapon ( weapon_name  ,
fallback_weapon_name   
)

Definition at line 185 of file _zm_melee_weapon.gsc.

References find_melee_weapon().

Referenced by __main__().

◆ spectator_respawn()

function spectator_respawn ( wallbuy_targetname  ,
weapon   
)

Definition at line 255 of file _zm_melee_weapon.gsc.

References IS_TRUE, and player_can_see_weapon_prompt().

Referenced by spectator_respawn_all().

◆ spectator_respawn_all()

function spectator_respawn_all ( )

Definition at line 247 of file _zm_melee_weapon.gsc.

References spectator_respawn().

Referenced by spectator_respawn().

◆ take_fallback_weapon()

function take_fallback_weapon ( )

◆ trigger_hide()

function trigger_hide ( wallbuy_targetname  )

Definition at line 285 of file _zm_melee_weapon.gsc.

Referenced by trigger_hide_all().

◆ trigger_hide_all()

function trigger_hide_all ( )

Definition at line 277 of file _zm_melee_weapon.gsc.

References trigger_hide().

Referenced by give_melee_weapon().