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

Go to the source code of this file.

Macros

#define PIECE_UNITRIGGER_OFFSET   (0,0,12)
 
#define ZM_CRAFTABLES_FULLY_CRAFTED_UI_DURATION   3.5
 
#define ZM_CRAFTABLES_LOOKAT_DOT   0.76
 
#define ZM_CRAFTABLES_NOT_ENOUGH_PIECES_UI_DURATION   3.5
 

Functions

function __init__ ()
 
function __main__ ()
 
function add_craftable_piece (pieceStub, tag_name, can_reuse)
 
function add_map_craftable_stat (piece_name, stat_name, value)
 
function add_zombie_craftable (craftable_name, str_to_craft, str_crafting, str_taken, onFullyCrafted, need_all_pieces)
 
function add_zombie_craftable_vox_category (craftable_name, vox_id)
 
function anystub_get_unitrigger_origin ()
 
function anystub_on_spawn_trigger (trigger)
 
function anystub_update_prompt (player)
 
function can_craft_shared_piece (continuing)
 
function choose_open_craftable (player)
 
function claim_location (location)
 
function combine_craftable_pieces (piece1, piece2, piece3)
 
function complete_craftable (str_craftable_name)
 
function craftable_all_crafted ()
 
function craftable_can_use_shared_piece ()
 
function craftable_clear_piece_crafting (pieceSpawn_check)
 
function craftable_complete ()
 
function craftable_crafted ()
 
function craftable_has_piece (piece)
 
function craftable_is_piece_crafted (piece)
 
function craftable_is_piece_crafted_or_crafting (piece)
 
function craftable_is_piece_crafting (pieceSpawn_check)
 
function craftable_pickedup_timer ()
 
function craftable_piece_unitriggers (craftable_name, origin)
 
function craftable_place_think ()
 
function craftable_play_craft_fx (player)
 
function craftable_set_piece_crafted (pieceSpawn_check, player)
 
function craftable_set_piece_crafting (pieceSpawn_check)
 
function craftable_transfer_data ()
 
function craftable_trigger_think (trigger_targetname, equipname, weaponname, trigger_hintstring, delete_trigger, persistent)
 
function craftable_trigger_think_array (trigger_targetname, equipname, weaponname, trigger_hintstring, delete_trigger, persistent)
 
function craftable_use_hold_think (player)
 
function craftable_use_hold_think_internal (player, slot=self.stub.craftableSpawn.inventory_slot)
 
function craftables_watch_swipes ()
 
function craftablestub_remove ()
 
function craftablestub_update_prompt (player, unitrigger, slot=self.craftableStub.inventory_slot)
 
function craftabletrigger_update_prompt (player)
 
function delete_on_disconnect (craftable, self_notify, skip_delete)
 
function ExplosionDamage (damage, pos)
 
function find_craftable_stub (equipname)
 
function finish_crafting_shared_piece ()
 
function generate_piece (pieceStub)
 
function generate_piece_unitrigger (classname, origin, angles, flags, radius, script_height, hint_string, moving, b_nolook)
 
function generate_zombie_craftable_piece (craftablename, pieceName, radius, height, drop_offset, hud_icon, onPickup, onDrop, onCrafted, use_spawn_num, tag_name, can_reuse, client_field_value, is_shared=FALSE, vox_id, b_one_time_vo=false, hint_string, slot=0)
 
function get_actual_craftableSpawn ()
 
function get_actual_uts_craftable ()
 
function get_craftable_hint (craftable_name)
 
function get_craftable_model (str_craftable)
 
function get_craftable_piece (str_craftable, str_piece)
 
function get_craftable_piece_model (str_craftable, str_piece)
 
function get_craftable_stat_name (craftable_name)
 
function get_craftable_vo_name (craftable_name)
 
function get_hide_model_if_unavailable (craftable_name)
 
function hide_craftable_table_model (trigger_targetname)
 
function include_zombie_craftable (craftableStub)
 
function init ()
 
function is_craftable ()
 
function is_holding_part (craftable_name, piece_name, slot=0)
 
function is_part_crafted (craftable_name, piece_name)
 
function is_point_in_craft_trigger (point)
 
function make_zombie_craftable_open (str_craftable, str_model, v_angle_offset, v_origin_offset)
 
function manage_multiple_pieces (max_instances)
 
function model_fly_away (unitrigger)
 
function onBeginUseUTS (player)
 
function onCantUseUTS (player)
 
function onDropUTS (player)
 
function onEndUseUTS (team, player, result)
 
function onPickupUTS (player)
 
function onPlayerLastStand ()
 
function onUsePlantObjectUTS (player)
 
function open_craftablestub_update_prompt (player, slot=0)
 
function openTableCraftable ()
 
function piece_allocate_spawn (pieceStub)
 
function piece_deallocate_spawn ()
 
function piece_hide ()
 
function piece_pick_random_spawn ()
 
function piece_set_spawn (num)
 
function piece_show ()
 
function piece_spawn_at (origin, angles, use_random_start)
 
function piece_spawn_in (pieceStub)
 
function piece_unitrigger_think ()
 
function piece_unspawn ()
 
function piece_wait_and_return (return_time)
 
function piecestub_get_unitrigger_origin ()
 
function piecestub_update_prompt (player, slot=self.piece.inventory_slot)
 
function piecetrigger_update_prompt (player)
 
function placed_craftable_vo_timer ()
 
function player_can_craft (craftableSpawn, continuing, slot)
 
function player_can_take_piece (piece)
 
function player_continue_crafting (craftableSpawn, slot)
 
function player_craft (craftableSpawn, slot=craftableSpawn.inventory_slot)
 
function player_destroy_piece (piece, slot)
 
function player_drop_piece (piece, slot)
 
function player_drop_piece_on_death (slot=0)
 
function player_drop_piece_on_downed (slot)
 
function player_explode_craftable (equipname, origin, speed, return_to_spawn, return_time)
 
function player_finish_craftable (craftableSpawn)
 
function player_get_craftable_piece (str_craftable, str_piece)
 
function player_hide_craftable_parts_ui_after_duration (str_widget_clientuimodel, n_show_ui_duration)
 
function player_progress_bar (start_time, craft_time)
 
function player_progress_bar_update (start_time, craft_time)
 
function player_remove_craftable_piece (str_craftable, str_piece)
 
function player_remove_piece (piece_to_remove)
 
function player_return_piece_to_original_spawn (slot=0)
 
function player_show_craftable_parts_ui (str_crafted_clientuimodel, str_widget_clientuimodel, b_is_crafted)
 
function player_take_piece (pieceSpawn)
 
function player_throw_piece (piece, origin, dir, return_to_spawn, return_time, endangles)
 
function say_pickup_craftable_vo (craftable_name, b_world)
 
function set_build_time (craftable_name, build_time)
 
function set_craftable_clientfield ()
 
function set_hide_model_if_unavailable (craftable_name, hide_when_unavailable)
 
function set_piece_count (n_count)
 
function setup_craftable_pieces ()
 
function setup_unitrigger_craftable (trigger_targetname, equipname, weaponname, trigger_hintstring, delete_trigger, persistent)
 
function setup_unitrigger_craftable_array (trigger_targetname, equipname, weaponname, trigger_hintstring, delete_trigger, persistent)
 
function setup_unitrigger_craftable_internal (trig, equipname, weaponname, trigger_hintstring, delete_trigger, persistent)
 
function setup_vehicle_unitrigger_craftable (parent, trigger_targetname, equipname, weaponname, trigger_hintstring, delete_trigger, persistent)
 
function start_crafting_shared_piece ()
 
function stub_uncraft_craftable (stub, return_pieces, origin, angles, use_random_start)
 
function think_craftables ()
 
function track_craftable_piece_pickedup (piece)
 
function track_craftable_pieces_crafted (craftable)
 
function track_craftables_crafted (craftable)
 
function track_craftables_pickedup (craftable)
 
function track_craftables_planted (equipment)
 
function track_placed_craftables (craftable_name)
 
function track_planted_craftables_pickedup (equipment)
 
function uncraft_craftable (equipname, return_pieces, origin, angles)
 
function update_open_table_status ()
 
function vehicle_craftable_trigger_think (vehicle, trigger_targetname, equipname, weaponname, trigger_hintstring, delete_trigger, persistent)
 
function waittill_crafted (craftable_name)
 
function watch_hit_players ()
 
function zombie_craftable_set_record_stats (str_craftable, b_record)
 

Macro Definition Documentation

◆ PIECE_UNITRIGGER_OFFSET

#define PIECE_UNITRIGGER_OFFSET   (0,0,12)

Definition at line 602 of file _zm_craftables.gsc.

◆ ZM_CRAFTABLES_FULLY_CRAFTED_UI_DURATION

#define ZM_CRAFTABLES_FULLY_CRAFTED_UI_DURATION   3.5

Definition at line 97 of file _zm_craftables.gsc.

◆ ZM_CRAFTABLES_LOOKAT_DOT

#define ZM_CRAFTABLES_LOOKAT_DOT   0.76

Definition at line 95 of file _zm_craftables.gsc.

◆ ZM_CRAFTABLES_NOT_ENOUGH_PIECES_UI_DURATION

#define ZM_CRAFTABLES_NOT_ENOUGH_PIECES_UI_DURATION   3.5

Definition at line 96 of file _zm_craftables.gsc.

Function Documentation

◆ __init__()

function __init__ ( )

◆ __main__()

function __main__ ( )

Definition at line 147 of file _zm_craftables.gsc.

References think_craftables().

◆ add_craftable_piece()

function add_craftable_piece ( pieceStub  ,
tag_name  ,
can_reuse   
)

Definition at line 522 of file _zm_craftables.gsc.

References DEFAULT, and tag_name.

Referenced by init().

◆ add_map_craftable_stat()

function add_map_craftable_stat ( piece_name  ,
stat_name  ,
value   
)

◆ add_zombie_craftable()

function add_zombie_craftable ( craftable_name  ,
str_to_craft  ,
str_crafting  ,
str_taken  ,
onFullyCrafted  ,
need_all_pieces   
)

Definition at line 294 of file _zm_craftables.gsc.

Referenced by init().

◆ add_zombie_craftable_vox_category()

function add_zombie_craftable_vox_category ( craftable_name  ,
vox_id   
)

Definition at line 368 of file _zm_craftables.gsc.

Referenced by init().

◆ anystub_get_unitrigger_origin()

function anystub_get_unitrigger_origin ( )

Definition at line 194 of file _zm_craftables.gsc.

Referenced by setup_vehicle_unitrigger_craftable().

◆ anystub_on_spawn_trigger()

function anystub_on_spawn_trigger ( trigger  )

◆ anystub_update_prompt()

function anystub_update_prompt ( player  )

◆ can_craft_shared_piece()

function can_craft_shared_piece ( continuing  )

Definition at line 2116 of file _zm_craftables.gsc.

References IS_EQUAL.

Referenced by player_can_craft().

◆ choose_open_craftable()

function choose_open_craftable ( player  )

◆ claim_location()

function claim_location ( location  )

Definition at line 1144 of file _zm_craftables.gsc.

Referenced by piece_pick_random_spawn().

◆ combine_craftable_pieces()

function combine_craftable_pieces ( piece1  ,
piece2  ,
piece3   
)

Definition at line 496 of file _zm_craftables.gsc.

◆ complete_craftable()

function complete_craftable ( str_craftable_name  )

Definition at line 2491 of file _zm_craftables.gsc.

References player_finish_craftable(), and unregister_unitrigger().

◆ craftable_all_crafted()

function craftable_all_crafted ( )

Definition at line 2163 of file _zm_craftables.gsc.

References IS_TRUE.

Referenced by player_craft(), and track_craftable_pieces_crafted().

◆ craftable_can_use_shared_piece()

function craftable_can_use_shared_piece ( )

◆ craftable_clear_piece_crafting()

function craftable_clear_piece_crafting ( pieceSpawn_check  )

Definition at line 2071 of file _zm_craftables.gsc.

References get_actual_craftableSpawn(), and IS_TRUE.

Referenced by craftable_use_hold_think_internal().

◆ craftable_complete()

function craftable_complete ( )

Definition at line 3835 of file _zm_craftables.gsc.

◆ craftable_crafted()

function craftable_crafted ( )

Definition at line 3830 of file _zm_craftables.gsc.

◆ craftable_has_piece()

function craftable_has_piece ( piece  )

Definition at line 1903 of file _zm_craftables.gsc.

Referenced by craftablestub_update_prompt(), and player_can_craft().

◆ craftable_is_piece_crafted()

function craftable_is_piece_crafted ( piece  )

Definition at line 2090 of file _zm_craftables.gsc.

References IS_TRUE.

Referenced by player_can_craft().

◆ craftable_is_piece_crafted_or_crafting()

function craftable_is_piece_crafted_or_crafting ( piece  )

Definition at line 2152 of file _zm_craftables.gsc.

References IS_TRUE.

Referenced by player_can_craft().

◆ craftable_is_piece_crafting()

function craftable_is_piece_crafting ( pieceSpawn_check  )

Definition at line 2125 of file _zm_craftables.gsc.

References get_actual_craftableSpawn(), and IS_TRUE.

Referenced by player_continue_crafting().

◆ craftable_pickedup_timer()

function craftable_pickedup_timer ( )

Definition at line 4159 of file _zm_craftables.gsc.

Referenced by track_planted_craftables_pickedup().

◆ craftable_piece_unitriggers()

function craftable_piece_unitriggers ( craftable_name  ,
origin   
)

◆ craftable_place_think()

◆ craftable_play_craft_fx()

function craftable_play_craft_fx ( player  )

Definition at line 3055 of file _zm_craftables.gsc.

Referenced by craftable_use_hold_think().

◆ craftable_set_piece_crafted()

function craftable_set_piece_crafted ( pieceSpawn_check  ,
player   
)

Definition at line 2003 of file _zm_craftables.gsc.

References get_actual_craftableSpawn(), and IS_TRUE.

Referenced by player_craft().

◆ craftable_set_piece_crafting()

function craftable_set_piece_crafting ( pieceSpawn_check  )

Definition at line 2045 of file _zm_craftables.gsc.

References get_actual_craftableSpawn(), and IS_TRUE.

Referenced by craftable_use_hold_think_internal().

◆ craftable_transfer_data()

function craftable_transfer_data ( )

◆ craftable_trigger_think()

function craftable_trigger_think ( trigger_targetname  ,
equipname  ,
weaponname  ,
trigger_hintstring  ,
delete_trigger  ,
persistent   
)

Definition at line 3596 of file _zm_craftables.gsc.

References setup_unitrigger_craftable().

Referenced by riotshield_craftable().

◆ craftable_trigger_think_array()

function craftable_trigger_think_array ( trigger_targetname  ,
equipname  ,
weaponname  ,
trigger_hintstring  ,
delete_trigger  ,
persistent   
)

Definition at line 3601 of file _zm_craftables.gsc.

References setup_unitrigger_craftable_array().

◆ craftable_use_hold_think()

function craftable_use_hold_think ( player  )

◆ craftable_use_hold_think_internal()

◆ craftables_watch_swipes()

function craftables_watch_swipes ( )

Definition at line 214 of file _zm_craftables.gsc.

References disappear_fx(), increment_client_stat(), piece_unspawn(), and unitrigger_origin().

Referenced by init().

◆ craftablestub_remove()

function craftablestub_remove ( )

Definition at line 2512 of file _zm_craftables.gsc.

Referenced by craftable_place_think(), and craftable_transfer_data().

◆ craftablestub_update_prompt()

function craftablestub_update_prompt ( player  ,
unitrigger  ,
slot  = self.craftableStub.inventory_slot 
)

◆ craftabletrigger_update_prompt()

function craftabletrigger_update_prompt ( player  )

◆ delete_on_disconnect()

function delete_on_disconnect ( craftable  ,
self_notify  ,
skip_delete   
)

Definition at line 3853 of file _zm_craftables.gsc.

References IS_TRUE, and unregister_unitrigger().

◆ ExplosionDamage()

function ExplosionDamage ( damage  ,
pos   
)

Definition at line 258 of file _zm_craftables.gsc.

References damage().

Referenced by player_explode_craftable(), and watch_hit_players().

◆ find_craftable_stub()

function find_craftable_stub ( equipname  )

Definition at line 3458 of file _zm_craftables.gsc.

Referenced by player_explode_craftable(), and uncraft_craftable().

◆ finish_crafting_shared_piece()

function finish_crafting_shared_piece ( )

Definition at line 2110 of file _zm_craftables.gsc.

References IS_EQUAL.

Referenced by craftable_use_hold_think_internal().

◆ generate_piece()

function generate_piece ( pieceStub  )

◆ generate_piece_unitrigger()

function generate_piece_unitrigger ( classname  ,
origin  ,
angles  ,
flags  ,
radius  ,
script_height  ,
hint_string  ,
moving  ,
b_nolook   
)

◆ generate_zombie_craftable_piece()

function generate_zombie_craftable_piece ( craftablename  ,
pieceName  ,
radius  ,
height  ,
drop_offset  ,
hud_icon  ,
onPickup  ,
onDrop  ,
onCrafted  ,
use_spawn_num  ,
tag_name  ,
can_reuse  ,
client_field_value  ,
is_shared  = FALSE,
vox_id  ,
b_one_time_vo  = false,
hint_string  ,
slot  = 0 
)

Definition at line 416 of file _zm_craftables.gsc.

References get_array(), IS_TRUE, onDrop(), onPickup(), and tag_name.

Referenced by init().

◆ get_actual_craftableSpawn()

◆ get_actual_uts_craftable()

function get_actual_uts_craftable ( )

Definition at line 1920 of file _zm_craftables.gsc.

References CRAFTABLE_INVALID_CHOICE.

◆ get_craftable_hint()

function get_craftable_hint ( craftable_name  )

Definition at line 3846 of file _zm_craftables.gsc.

◆ get_craftable_model()

function get_craftable_model ( str_craftable  )

Definition at line 4318 of file _zm_craftables.gsc.

◆ get_craftable_piece()

function get_craftable_piece ( str_craftable  ,
str_piece   
)

◆ get_craftable_piece_model()

function get_craftable_piece_model ( str_craftable  ,
str_piece   
)

Definition at line 4405 of file _zm_craftables.gsc.

◆ get_craftable_stat_name()

function get_craftable_stat_name ( craftable_name  )

Definition at line 4286 of file _zm_craftables.gsc.

Referenced by track_craftables_pickedup(), and track_craftables_planted().

◆ get_craftable_vo_name()

function get_craftable_vo_name ( craftable_name  )

Definition at line 4270 of file _zm_craftables.gsc.

◆ get_hide_model_if_unavailable()

function get_hide_model_if_unavailable ( craftable_name  )

Definition at line 345 of file _zm_craftables.gsc.

References IS_TRUE.

Referenced by craftable_place_think().

◆ hide_craftable_table_model()

function hide_craftable_table_model ( trigger_targetname  )

Definition at line 1633 of file _zm_craftables.gsc.

◆ include_zombie_craftable()

function include_zombie_craftable ( craftableStub  )

Definition at line 375 of file _zm_craftables.gsc.

Referenced by init().

◆ init()

◆ is_craftable()

function is_craftable ( )

Definition at line 3799 of file _zm_craftables.gsc.

References IS_TRUE.

◆ is_holding_part()

function is_holding_part ( craftable_name  ,
piece_name  ,
slot  = 0 
)

Definition at line 3898 of file _zm_craftables.gsc.

References IS_TRUE.

◆ is_part_crafted()

function is_part_crafted ( craftable_name  ,
piece_name   
)

Definition at line 3938 of file _zm_craftables.gsc.

References IS_TRUE.

◆ is_point_in_craft_trigger()

function is_point_in_craft_trigger ( point  )

Definition at line 1162 of file _zm_craftables.gsc.

References get_closest_unitriggers(), and IS_TRUE.

Referenced by piece_allocate_spawn().

◆ make_zombie_craftable_open()

function make_zombie_craftable_open ( str_craftable  ,
str_model  ,
v_angle_offset  ,
v_origin_offset   
)

Definition at line 271 of file _zm_craftables.gsc.

Referenced by init().

◆ manage_multiple_pieces()

function manage_multiple_pieces ( max_instances  )

Definition at line 488 of file _zm_craftables.gsc.

◆ model_fly_away()

function model_fly_away ( unitrigger  )

Definition at line 3434 of file _zm_craftables.gsc.

Referenced by craftable_place_think().

◆ onBeginUseUTS()

function onBeginUseUTS ( player  )

◆ onCantUseUTS()

function onCantUseUTS ( player  )

◆ onDropUTS()

function onDropUTS ( player  )

Definition at line 3739 of file _zm_craftables.gsc.

Referenced by generate_piece().

◆ onEndUseUTS()

function onEndUseUTS ( team  ,
player  ,
result   
)

◆ onPickupUTS()

function onPickupUTS ( player  )

Definition at line 3735 of file _zm_craftables.gsc.

Referenced by generate_piece().

◆ onPlayerLastStand()

function onPlayerLastStand ( )

◆ onUsePlantObjectUTS()

function onUsePlantObjectUTS ( player  )

◆ open_craftablestub_update_prompt()

function open_craftablestub_update_prompt ( player  ,
slot  = 0 
)

◆ openTableCraftable()

function openTableCraftable ( )

Definition at line 3581 of file _zm_craftables.gsc.

References DELETE_TRIGGER, ONE_TIME_CRAFT, and setup_unitrigger_craftable_internal().

Referenced by init().

◆ piece_allocate_spawn()

function piece_allocate_spawn ( pieceStub  )

Definition at line 1201 of file _zm_craftables.gsc.

References is_point_in_craft_trigger(), and IS_TRUE.

Referenced by generate_piece(), piece_spawn_at(), and piece_spawn_in().

◆ piece_deallocate_spawn()

function piece_deallocate_spawn ( )

Definition at line 1265 of file _zm_craftables.gsc.

Referenced by piece_unspawn().

◆ piece_hide()

function piece_hide ( )

Definition at line 1488 of file _zm_craftables.gsc.

Referenced by piece_wait_and_return().

◆ piece_pick_random_spawn()

function piece_pick_random_spawn ( )

Definition at line 1278 of file _zm_craftables.gsc.

References claim_location().

Referenced by generate_piece(), and piece_spawn_at().

◆ piece_set_spawn()

function piece_set_spawn ( num  )

Definition at line 1302 of file _zm_craftables.gsc.

Referenced by generate_piece().

◆ piece_show()

function piece_show ( )

Definition at line 1496 of file _zm_craftables.gsc.

Referenced by piece_wait_and_return().

◆ piece_spawn_at()

◆ piece_spawn_in()

function piece_spawn_in ( pieceStub  )

◆ piece_unitrigger_think()

function piece_unitrigger_think ( )

◆ piece_unspawn()

function piece_unspawn ( )

◆ piece_wait_and_return()

function piece_wait_and_return ( return_time  )

Definition at line 961 of file _zm_craftables.gsc.

References piece_hide(), piece_show(), piece_spawn_at(), and piece_unspawn().

Referenced by player_throw_piece().

◆ piecestub_get_unitrigger_origin()

function piecestub_get_unitrigger_origin ( )

Definition at line 604 of file _zm_craftables.gsc.

References PIECE_UNITRIGGER_OFFSET.

Referenced by generate_piece_unitrigger().

◆ piecestub_update_prompt()

function piecestub_update_prompt ( player  ,
slot  = self.piece.inventory_slot 
)

Definition at line 755 of file _zm_craftables.gsc.

References anystub_update_prompt(), and IS_TRUE.

Referenced by piecetrigger_update_prompt().

◆ piecetrigger_update_prompt()

function piecetrigger_update_prompt ( player  )

Definition at line 741 of file _zm_craftables.gsc.

References DEFAULT, and piecestub_update_prompt().

Referenced by generate_piece_unitrigger().

◆ placed_craftable_vo_timer()

function placed_craftable_vo_timer ( )

Definition at line 4151 of file _zm_craftables.gsc.

◆ player_can_craft()

function player_can_craft ( craftableSpawn  ,
continuing  ,
slot   
)

◆ player_can_take_piece()

function player_can_take_piece ( piece  )

Definition at line 859 of file _zm_craftables.gsc.

Referenced by piece_unitrigger_think().

◆ player_continue_crafting()

◆ player_craft()

◆ player_destroy_piece()

function player_destroy_piece ( piece  ,
slot   
)

◆ player_drop_piece()

function player_drop_piece ( piece  ,
slot   
)

◆ player_drop_piece_on_death()

function player_drop_piece_on_death ( slot  = 0)

◆ player_drop_piece_on_downed()

function player_drop_piece_on_downed ( slot  )

Definition at line 548 of file _zm_craftables.gsc.

References onPlayerLastStand().

Referenced by player_drop_piece_on_death().

◆ player_explode_craftable()

function player_explode_craftable ( equipname  ,
origin  ,
speed  ,
return_to_spawn  ,
return_time   
)

◆ player_finish_craftable()

function player_finish_craftable ( craftableSpawn  )

Definition at line 2480 of file _zm_craftables.gsc.

Referenced by complete_craftable(), and player_craft().

◆ player_get_craftable_piece()

function player_get_craftable_piece ( str_craftable  ,
str_piece   
)

Definition at line 4364 of file _zm_craftables.gsc.

References get_craftable_piece(), and player_take_piece().

◆ player_hide_craftable_parts_ui_after_duration()

function player_hide_craftable_parts_ui_after_duration ( str_widget_clientuimodel  ,
n_show_ui_duration   
)

Definition at line 4449 of file _zm_craftables.gsc.

References set_player_uimodel().

Referenced by player_show_craftable_parts_ui().

◆ player_progress_bar()

function player_progress_bar ( start_time  ,
craft_time   
)

◆ player_progress_bar_update()

function player_progress_bar_update ( start_time  ,
craft_time   
)

Definition at line 2894 of file _zm_craftables.gsc.

References updateBar(), and WAIT_SERVER_FRAME.

Referenced by player_progress_bar().

◆ player_remove_craftable_piece()

function player_remove_craftable_piece ( str_craftable  ,
str_piece   
)

Definition at line 4377 of file _zm_craftables.gsc.

References get_craftable_piece(), and player_remove_piece().

◆ player_remove_piece()

function player_remove_piece ( piece_to_remove  )

◆ player_return_piece_to_original_spawn()

function player_return_piece_to_original_spawn ( slot  = 0)

◆ player_show_craftable_parts_ui()

function player_show_craftable_parts_ui ( str_crafted_clientuimodel  ,
str_widget_clientuimodel  ,
b_is_crafted   
)

◆ player_take_piece()

◆ player_throw_piece()

function player_throw_piece ( piece  ,
origin  ,
dir  ,
return_to_spawn  ,
return_time  ,
endangles   
)

◆ say_pickup_craftable_vo()

function say_pickup_craftable_vo ( craftable_name  ,
b_world   
)

◆ set_build_time()

function set_build_time ( craftable_name  ,
build_time   
)

Definition at line 354 of file _zm_craftables.gsc.

◆ set_craftable_clientfield()

function set_craftable_clientfield ( )

Definition at line 152 of file _zm_craftables.gsc.

References set_piece_count().

Referenced by __init__().

◆ set_hide_model_if_unavailable()

function set_hide_model_if_unavailable ( craftable_name  ,
hide_when_unavailable   
)

Definition at line 337 of file _zm_craftables.gsc.

◆ set_piece_count()

function set_piece_count ( n_count  )

Definition at line 362 of file _zm_craftables.gsc.

References CLIENTFIELD_CRAFTABLE, and VERSION_SHIP.

Referenced by set_craftable_clientfield().

◆ setup_craftable_pieces()

function setup_craftable_pieces ( )

Definition at line 1884 of file _zm_craftables.gsc.

References craftable_piece_unitriggers(), and name.

◆ setup_unitrigger_craftable()

function setup_unitrigger_craftable ( trigger_targetname  ,
equipname  ,
weaponname  ,
trigger_hintstring  ,
delete_trigger  ,
persistent   
)

Definition at line 1655 of file _zm_craftables.gsc.

References setup_unitrigger_craftable_internal().

Referenced by craftable_trigger_think().

◆ setup_unitrigger_craftable_array()

function setup_unitrigger_craftable_array ( trigger_targetname  ,
equipname  ,
weaponname  ,
trigger_hintstring  ,
delete_trigger  ,
persistent   
)

Definition at line 1668 of file _zm_craftables.gsc.

References setup_unitrigger_craftable_internal().

Referenced by craftable_trigger_think_array().

◆ setup_unitrigger_craftable_internal()

function setup_unitrigger_craftable_internal ( trig  ,
equipname  ,
weaponname  ,
trigger_hintstring  ,
delete_trigger  ,
persistent   
)

◆ setup_vehicle_unitrigger_craftable()

function setup_vehicle_unitrigger_craftable ( parent  ,
trigger_targetname  ,
equipname  ,
weaponname  ,
trigger_hintstring  ,
delete_trigger  ,
persistent   
)

◆ start_crafting_shared_piece()

function start_crafting_shared_piece ( )

Definition at line 2104 of file _zm_craftables.gsc.

Referenced by craftable_use_hold_think_internal().

◆ stub_uncraft_craftable()

function stub_uncraft_craftable ( stub  ,
return_pieces  ,
origin  ,
angles  ,
use_random_start   
)

Definition at line 3478 of file _zm_craftables.gsc.

References IS_TRUE, and piece_spawn_at().

Referenced by craftable_place_think(), and uncraft_craftable().

◆ think_craftables()

function think_craftables ( )

Definition at line 3568 of file _zm_craftables.gsc.

Referenced by __main__().

◆ track_craftable_piece_pickedup()

function track_craftable_piece_pickedup ( piece  )

◆ track_craftable_pieces_crafted()

function track_craftable_pieces_crafted ( craftable  )

◆ track_craftables_crafted()

function track_craftables_crafted ( craftable  )

◆ track_craftables_pickedup()

function track_craftables_pickedup ( craftable  )

◆ track_craftables_planted()

function track_craftables_planted ( equipment  )

◆ track_placed_craftables()

function track_placed_craftables ( craftable_name  )

Definition at line 4190 of file _zm_craftables.gsc.

References add_map_craftable_stat(), and do_player_general_vox().

◆ track_planted_craftables_pickedup()

function track_planted_craftables_pickedup ( equipment  )

◆ uncraft_craftable()

function uncraft_craftable ( equipname  ,
return_pieces  ,
origin  ,
angles   
)

Definition at line 3471 of file _zm_craftables.gsc.

References find_craftable_stub(), and stub_uncraft_craftable().

◆ update_open_table_status()

function update_open_table_status ( )

Definition at line 2437 of file _zm_craftables.gsc.

References IS_TRUE, and unregister_unitrigger().

Referenced by player_craft().

◆ vehicle_craftable_trigger_think()

function vehicle_craftable_trigger_think ( vehicle  ,
trigger_targetname  ,
equipname  ,
weaponname  ,
trigger_hintstring  ,
delete_trigger  ,
persistent   
)

Definition at line 3728 of file _zm_craftables.gsc.

References setup_vehicle_unitrigger_craftable().

◆ waittill_crafted()

function waittill_crafted ( craftable_name  )

Definition at line 2188 of file _zm_craftables.gsc.

◆ watch_hit_players()

function watch_hit_players ( )

Definition at line 943 of file _zm_craftables.gsc.

References ExplosionDamage().

Referenced by player_throw_piece().

◆ zombie_craftable_set_record_stats()

function zombie_craftable_set_record_stats ( str_craftable  ,
b_record   
)

Definition at line 4216 of file _zm_craftables.gsc.

References DEFAULT.