![]() |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
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) |
#define PIECE_UNITRIGGER_OFFSET (0,0,12) |
Definition at line 602 of file _zm_craftables.gsc.
#define ZM_CRAFTABLES_FULLY_CRAFTED_UI_DURATION 3.5 |
Definition at line 97 of file _zm_craftables.gsc.
#define ZM_CRAFTABLES_LOOKAT_DOT 0.76 |
Definition at line 95 of file _zm_craftables.gsc.
#define ZM_CRAFTABLES_NOT_ENOUGH_PIECES_UI_DURATION 3.5 |
Definition at line 96 of file _zm_craftables.gsc.
function __init__ | ( | ) |
Definition at line 103 of file _zm_craftables.gsc.
References on_finalize_initialization(), and set_craftable_clientfield().
function __main__ | ( | ) |
Definition at line 147 of file _zm_craftables.gsc.
References think_craftables().
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().
function add_map_craftable_stat | ( | piece_name | , |
stat_name | , | ||
value | |||
) |
Definition at line 4222 of file _zm_craftables.gsc.
References DEFAULT, and IS_TRUE.
Referenced by track_craftable_piece_pickedup(), track_craftable_pieces_crafted(), track_craftables_crafted(), track_craftables_pickedup(), track_craftables_planted(), and track_placed_craftables().
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().
function add_zombie_craftable_vox_category | ( | craftable_name | , |
vox_id | |||
) |
Definition at line 368 of file _zm_craftables.gsc.
Referenced by init().
function anystub_get_unitrigger_origin | ( | ) |
Definition at line 194 of file _zm_craftables.gsc.
Referenced by setup_vehicle_unitrigger_craftable().
function anystub_on_spawn_trigger | ( | trigger | ) |
Definition at line 204 of file _zm_craftables.gsc.
Referenced by generate_piece_unitrigger(), and setup_vehicle_unitrigger_craftable().
function anystub_update_prompt | ( | player | ) |
Definition at line 157 of file _zm_craftables.gsc.
References get_nonalternate_weapon(), in_revive_trigger(), IS_DRINKING, is_equipment(), and player_is_in_laststand().
Referenced by craftablestub_update_prompt(), and piecestub_update_prompt().
function can_craft_shared_piece | ( | continuing | ) |
Definition at line 2116 of file _zm_craftables.gsc.
References IS_EQUAL.
Referenced by player_can_craft().
function choose_open_craftable | ( | player | ) |
Definition at line 2633 of file _zm_craftables.gsc.
References destroy(), is_player_looking_at(), WAIT_SERVER_FRAME, and ZM_CRAFTABLES_LOOKAT_DOT.
Referenced by open_craftablestub_update_prompt().
function claim_location | ( | location | ) |
Definition at line 1144 of file _zm_craftables.gsc.
Referenced by piece_pick_random_spawn().
function combine_craftable_pieces | ( | piece1 | , |
piece2 | , | ||
piece3 | |||
) |
Definition at line 496 of file _zm_craftables.gsc.
function complete_craftable | ( | str_craftable_name | ) |
Definition at line 2491 of file _zm_craftables.gsc.
References player_finish_craftable(), and unregister_unitrigger().
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().
function craftable_can_use_shared_piece | ( | ) |
Definition at line 1959 of file _zm_craftables.gsc.
References CRAFTABLE_INVALID_CHOICE, and IS_TRUE.
Referenced by craftable_use_hold_think_internal(), craftablestub_update_prompt(), open_craftablestub_update_prompt(), and player_can_craft().
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().
function craftable_complete | ( | ) |
Definition at line 3835 of file _zm_craftables.gsc.
function craftable_crafted | ( | ) |
Definition at line 3830 of file _zm_craftables.gsc.
function craftable_has_piece | ( | piece | ) |
Definition at line 1903 of file _zm_craftables.gsc.
Referenced by craftablestub_update_prompt(), and player_can_craft().
function craftable_is_piece_crafted | ( | piece | ) |
Definition at line 2090 of file _zm_craftables.gsc.
References IS_TRUE.
Referenced by player_can_craft().
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().
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().
function craftable_pickedup_timer | ( | ) |
Definition at line 4159 of file _zm_craftables.gsc.
Referenced by track_planted_craftables_pickedup().
function craftable_piece_unitriggers | ( | craftable_name | , |
origin | |||
) |
Definition at line 1569 of file _zm_craftables.gsc.
References DEFAULT, generate_piece(), IS_TRUE, and wait_till().
Referenced by setup_craftable_pieces(), setup_unitrigger_craftable_internal(), and setup_vehicle_unitrigger_craftable().
function craftable_place_think | ( | ) |
Definition at line 3086 of file _zm_craftables.gsc.
References buy(), craftable_use_hold_think(), craftablestub_remove(), craftabletrigger_update_prompt(), get_hide_model_if_unavailable(), has_player_equipment(), ignore_triggers(), is_enabled(), is_equipment_that_blocks_purchase(), is_limited(), is_placeable_mine(), is_player_valid(), IS_TRUE, limited_in_use(), limited_weapon_below_quota(), model_fly_away(), ONE_TIME_CRAFT, ONE_USE_AND_FLY, PERSISTENT, player_can_craft(), player_craft(), result(), start_ammo(), stub_uncraft_craftable(), track_craftables_pickedup(), UNCRAFT, unregister_unitrigger(), and weapon_give().
Referenced by setup_unitrigger_craftable_internal(), and setup_vehicle_unitrigger_craftable().
function craftable_play_craft_fx | ( | player | ) |
Definition at line 3055 of file _zm_craftables.gsc.
Referenced by craftable_use_hold_think().
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().
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().
function craftable_transfer_data | ( | ) |
Definition at line 2273 of file _zm_craftables.gsc.
References CRAFTABLE_INVALID_CHOICE, craftablestub_remove(), and unregister_unitrigger().
Referenced by player_craft().
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().
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().
function craftable_use_hold_think | ( | player | ) |
Definition at line 3069 of file _zm_craftables.gsc.
References craftable_play_craft_fx(), craftable_use_hold_think_internal(), and waittill_any_return().
Referenced by craftable_place_think().
function craftable_use_hold_think_internal | ( | player | , |
slot | = self.stub.craftableSpawn.inventory_slot |
||
) |
Definition at line 2939 of file _zm_craftables.gsc.
References craftable_can_use_shared_piece(), craftable_clear_piece_crafting(), craftable_set_piece_crafting(), decrement_is_drinking(), disable_player_move_states(), enable_player_move_states(), finish_crafting_shared_piece(), increment_is_drinking(), IS_TRUE, player_continue_crafting(), player_progress_bar(), start_crafting_shared_piece(), switch_back_primary_weapon(), and WAIT_SERVER_FRAME.
Referenced by craftable_use_hold_think().
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().
function craftablestub_remove | ( | ) |
Definition at line 2512 of file _zm_craftables.gsc.
Referenced by craftable_place_think(), and craftable_transfer_data().
function craftablestub_update_prompt | ( | player | , |
unitrigger | , | ||
slot | = self.craftableStub.inventory_slot |
||
) |
Definition at line 2530 of file _zm_craftables.gsc.
References anystub_update_prompt(), craftable_can_use_shared_piece(), craftable_has_piece(), DEFAULT, get_nonalternate_weapon(), has_player_equipment(), is_enabled(), is_limited(), IS_TRUE, limited_in_use(), limited_weapon_below_quota(), ONE_USE_AND_FLY, and PERSISTENT.
Referenced by craftabletrigger_update_prompt().
function craftabletrigger_update_prompt | ( | player | ) |
Definition at line 2517 of file _zm_craftables.gsc.
References craftablestub_update_prompt().
Referenced by craftable_place_think(), setup_unitrigger_craftable_internal(), and setup_vehicle_unitrigger_craftable().
function delete_on_disconnect | ( | craftable | , |
self_notify | , | ||
skip_delete | |||
) |
Definition at line 3853 of file _zm_craftables.gsc.
References IS_TRUE, and unregister_unitrigger().
function ExplosionDamage | ( | damage | , |
pos | |||
) |
Definition at line 258 of file _zm_craftables.gsc.
References damage().
Referenced by player_explode_craftable(), and watch_hit_players().
function find_craftable_stub | ( | equipname | ) |
Definition at line 3458 of file _zm_craftables.gsc.
Referenced by player_explode_craftable(), and uncraft_craftable().
function finish_crafting_shared_piece | ( | ) |
Definition at line 2110 of file _zm_craftables.gsc.
References IS_EQUAL.
Referenced by craftable_use_hold_think_internal().
function generate_piece | ( | pieceStub | ) |
Definition at line 1507 of file _zm_craftables.gsc.
References IS_TRUE, onDropUTS(), onPickupUTS(), piece_allocate_spawn(), piece_pick_random_spawn(), piece_set_spawn(), and piece_spawn_in().
Referenced by craftable_piece_unitriggers().
function generate_piece_unitrigger | ( | classname | , |
origin | , | ||
angles | , | ||
flags | , | ||
radius | , | ||
script_height | , | ||
hint_string | , | ||
moving | , | ||
b_nolook | |||
) |
Definition at line 614 of file _zm_craftables.gsc.
References anystub_on_spawn_trigger(), IS_TRUE, piece_unitrigger_think(), piecestub_get_unitrigger_origin(), piecetrigger_update_prompt(), register_static_unitrigger(), register_unitrigger(), and unitrigger_force_per_player_triggers().
Referenced by piece_spawn_at(), and piece_spawn_in().
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().
function get_actual_craftableSpawn | ( | ) |
Definition at line 1940 of file _zm_craftables.gsc.
References CRAFTABLE_INVALID_CHOICE.
Referenced by craftable_clear_piece_crafting(), craftable_is_piece_crafting(), craftable_set_piece_crafted(), and craftable_set_piece_crafting().
function get_actual_uts_craftable | ( | ) |
Definition at line 1920 of file _zm_craftables.gsc.
References CRAFTABLE_INVALID_CHOICE.
function get_craftable_hint | ( | craftable_name | ) |
Definition at line 3846 of file _zm_craftables.gsc.
function get_craftable_model | ( | str_craftable | ) |
Definition at line 4318 of file _zm_craftables.gsc.
function get_craftable_piece | ( | str_craftable | , |
str_piece | |||
) |
Definition at line 4339 of file _zm_craftables.gsc.
Referenced by player_get_craftable_piece(), and player_remove_craftable_piece().
function get_craftable_piece_model | ( | str_craftable | , |
str_piece | |||
) |
Definition at line 4405 of file _zm_craftables.gsc.
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().
function get_craftable_vo_name | ( | craftable_name | ) |
Definition at line 4270 of file _zm_craftables.gsc.
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().
function hide_craftable_table_model | ( | trigger_targetname | ) |
Definition at line 1633 of file _zm_craftables.gsc.
function include_zombie_craftable | ( | craftableStub | ) |
Definition at line 375 of file _zm_craftables.gsc.
Referenced by init().
function init | ( | ) |
Definition at line 108 of file _zm_craftables.gsc.
References add_zombie_craftable(), craftables_watch_swipes(), DEFAULT, include_zombie_craftable(), on_connect(), open_craftablestub_update_prompt(), and openTableCraftable().
function is_craftable | ( | ) |
Definition at line 3799 of file _zm_craftables.gsc.
References IS_TRUE.
function is_holding_part | ( | craftable_name | , |
piece_name | , | ||
slot | = 0 |
||
) |
Definition at line 3898 of file _zm_craftables.gsc.
References IS_TRUE.
function is_part_crafted | ( | craftable_name | , |
piece_name | |||
) |
Definition at line 3938 of file _zm_craftables.gsc.
References IS_TRUE.
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().
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().
function manage_multiple_pieces | ( | max_instances | ) |
Definition at line 488 of file _zm_craftables.gsc.
function model_fly_away | ( | unitrigger | ) |
Definition at line 3434 of file _zm_craftables.gsc.
Referenced by craftable_place_think().
function onBeginUseUTS | ( | player | ) |
Definition at line 3744 of file _zm_craftables.gsc.
References spawn().
Referenced by setup_unitrigger_craftable_internal(), and setup_vehicle_unitrigger_craftable().
function onCantUseUTS | ( | player | ) |
Definition at line 3779 of file _zm_craftables.gsc.
Referenced by setup_unitrigger_craftable_internal(), and setup_vehicle_unitrigger_craftable().
function onDropUTS | ( | player | ) |
Definition at line 3739 of file _zm_craftables.gsc.
Referenced by generate_piece().
function onEndUseUTS | ( | team | , |
player | , | ||
result | |||
) |
Definition at line 3758 of file _zm_craftables.gsc.
References result().
Referenced by setup_unitrigger_craftable_internal(), and setup_vehicle_unitrigger_craftable().
function onPickupUTS | ( | player | ) |
Definition at line 3735 of file _zm_craftables.gsc.
Referenced by generate_piece().
function onPlayerLastStand | ( | ) |
Definition at line 561 of file _zm_craftables.gsc.
References CLIENTFIELD_CRAFTABLE, CLIENTFIELD_CRAFTABLE_PIECE_NONE, DEFAULT, piece_spawn_at(), and set_to_player().
Referenced by player_drop_piece_on_downed().
function onUsePlantObjectUTS | ( | player | ) |
Definition at line 3787 of file _zm_craftables.gsc.
Referenced by setup_unitrigger_craftable_internal(), and setup_vehicle_unitrigger_craftable().
function open_craftablestub_update_prompt | ( | player | , |
slot | = 0 |
||
) |
Definition at line 2731 of file _zm_craftables.gsc.
References choose_open_craftable(), craftable_can_use_shared_piece(), CRAFTABLE_INVALID_CHOICE, destroy(), IS_TRUE, limited_weapon_below_quota(), ONE_USE_AND_FLY, and PERSISTENT.
Referenced by init().
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().
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().
function piece_deallocate_spawn | ( | ) |
Definition at line 1265 of file _zm_craftables.gsc.
Referenced by piece_unspawn().
function piece_hide | ( | ) |
Definition at line 1488 of file _zm_craftables.gsc.
Referenced by piece_wait_and_return().
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().
function piece_set_spawn | ( | num | ) |
Definition at line 1302 of file _zm_craftables.gsc.
Referenced by generate_piece().
function piece_show | ( | ) |
Definition at line 1496 of file _zm_craftables.gsc.
Referenced by piece_wait_and_return().
function piece_spawn_at | ( | origin | , |
angles | , | ||
use_random_start | |||
) |
Definition at line 1379 of file _zm_craftables.gsc.
References generate_piece_unitrigger(), IS_TRUE, onSpawn(), piece_allocate_spawn(), piece_pick_random_spawn(), PIECE_UNITRIGGER_OFFSET, and Spawn().
Referenced by onPlayerLastStand(), piece_wait_and_return(), player_drop_piece(), player_drop_piece_on_death(), player_return_piece_to_original_spawn(), player_throw_piece(), and stub_uncraft_craftable().
function piece_spawn_in | ( | pieceStub | ) |
Definition at line 1315 of file _zm_craftables.gsc.
References generate_piece_unitrigger(), IS_TRUE, piece_allocate_spawn(), PIECE_UNITRIGGER_OFFSET, and Spawn().
Referenced by generate_piece().
function piece_unitrigger_think | ( | ) |
Definition at line 806 of file _zm_craftables.gsc.
References ignore_triggers(), is_player_valid(), IS_TRUE, player_can_take_piece(), and player_take_piece().
Referenced by generate_piece_unitrigger().
function piece_unspawn | ( | ) |
Definition at line 1466 of file _zm_craftables.gsc.
References IS_TRUE, piece_deallocate_spawn(), and unregister_unitrigger().
Referenced by craftables_watch_swipes(), piece_wait_and_return(), and player_take_piece().
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().
function piecestub_get_unitrigger_origin | ( | ) |
Definition at line 604 of file _zm_craftables.gsc.
References PIECE_UNITRIGGER_OFFSET.
Referenced by generate_piece_unitrigger().
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().
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().
function placed_craftable_vo_timer | ( | ) |
Definition at line 4151 of file _zm_craftables.gsc.
function player_can_craft | ( | craftableSpawn | , |
continuing | , | ||
slot | |||
) |
Definition at line 2195 of file _zm_craftables.gsc.
References can_craft_shared_piece(), craftable_can_use_shared_piece(), craftable_has_piece(), craftable_is_piece_crafted(), craftable_is_piece_crafted_or_crafting(), and IS_TRUE.
Referenced by craftable_place_think(), and player_continue_crafting().
function player_can_take_piece | ( | piece | ) |
Definition at line 859 of file _zm_craftables.gsc.
Referenced by piece_unitrigger_think().
function player_continue_crafting | ( | craftableSpawn | , |
slot | |||
) |
Definition at line 2836 of file _zm_craftables.gsc.
References craftable_is_piece_crafting(), if(), in_revive_trigger(), is_player_looking_at(), IS_TRUE, player_can_craft(), player_is_in_laststand(), unitrigger_origin(), unitrigger_trigger(), and ZM_CRAFTABLES_LOOKAT_DOT.
Referenced by craftable_use_hold_think_internal().
function player_craft | ( | craftableSpawn | , |
slot | = craftableSpawn.inventory_slot |
||
) |
Definition at line 2315 of file _zm_craftables.gsc.
References craftable_all_crafted(), craftable_set_piece_crafted(), craftable_transfer_data(), DEFAULT, get(), IS_TRUE, player_destroy_piece(), player_finish_craftable(), Spawn(), track_craftable_pieces_crafted(), track_craftables_crafted(), and update_open_table_status().
Referenced by craftable_place_think().
function player_destroy_piece | ( | piece | , |
slot | |||
) |
Definition at line 1127 of file _zm_craftables.gsc.
References CLIENTFIELD_CRAFTABLE, CLIENTFIELD_CRAFTABLE_PIECE_NONE, and set_to_player().
Referenced by player_craft().
function player_drop_piece | ( | piece | , |
slot | |||
) |
Definition at line 1040 of file _zm_craftables.gsc.
References CLIENTFIELD_CRAFTABLE, CLIENTFIELD_CRAFTABLE_PIECE_NONE, piece_spawn_at(), and set_to_player().
Referenced by player_take_piece().
function player_drop_piece_on_death | ( | slot | = 0 | ) |
Definition at line 1013 of file _zm_craftables.gsc.
References CLIENTFIELD_CRAFTABLE, CLIENTFIELD_CRAFTABLE_PIECE_NONE, piece_spawn_at(), player_drop_piece_on_downed(), and set_to_player().
Referenced by player_take_piece().
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().
function player_explode_craftable | ( | equipname | , |
origin | , | ||
speed | , | ||
return_to_spawn | , | ||
return_time | |||
) |
Definition at line 3521 of file _zm_craftables.gsc.
References ExplosionDamage(), find_craftable_stub(), IS_TRUE, and player_throw_piece().
function player_finish_craftable | ( | craftableSpawn | ) |
Definition at line 2480 of file _zm_craftables.gsc.
Referenced by complete_craftable(), and player_craft().
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().
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().
function player_progress_bar | ( | start_time | , |
craft_time | |||
) |
Definition at line 2921 of file _zm_craftables.gsc.
References createPrimaryProgressBar(), createPrimaryProgressBarText(), destroyElem(), and player_progress_bar_update().
Referenced by craftable_use_hold_think_internal().
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().
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().
function player_remove_piece | ( | piece_to_remove | ) |
Definition at line 4388 of file _zm_craftables.gsc.
References CLIENTFIELD_CRAFTABLE, CLIENTFIELD_CRAFTABLE_PIECE_NONE, DEFAULT, and set_to_player().
Referenced by player_remove_craftable_piece().
function player_return_piece_to_original_spawn | ( | slot | = 0 | ) |
Definition at line 993 of file _zm_craftables.gsc.
References CLIENTFIELD_CRAFTABLE, CLIENTFIELD_CRAFTABLE_PIECE_NONE, piece_spawn_at(), and set_to_player().
function player_show_craftable_parts_ui | ( | str_crafted_clientuimodel | , |
str_widget_clientuimodel | , | ||
b_is_crafted | |||
) |
Definition at line 4428 of file _zm_craftables.gsc.
References player_hide_craftable_parts_ui_after_duration(), set_player_uimodel(), ZM_CRAFTABLES_FULLY_CRAFTED_UI_DURATION, and ZM_CRAFTABLES_NOT_ENOUGH_PIECES_UI_DURATION.
Referenced by on_fully_crafted(), and on_pickup_common().
function player_take_piece | ( | pieceSpawn | ) |
Definition at line 1066 of file _zm_craftables.gsc.
References CLIENTFIELD_CRAFTABLE, CRAFTABLE_OBTAINED, damage(), DEFAULT, do_player_general_vox(), IS_TRUE, piece_unspawn(), player_drop_piece(), player_drop_piece_on_death(), set(), set_to_player(), and track_craftable_piece_pickedup().
Referenced by piece_unitrigger_think(), and player_get_craftable_piece().
function player_throw_piece | ( | piece | , |
origin | , | ||
dir | , | ||
return_to_spawn | , | ||
return_time | , | ||
endangles | |||
) |
Definition at line 870 of file _zm_craftables.gsc.
References IS_TRUE, piece_spawn_at(), piece_wait_and_return(), spawn(), and watch_hit_players().
Referenced by player_explode_craftable().
function say_pickup_craftable_vo | ( | craftable_name | , |
b_world | |||
) |
Definition at line 4244 of file _zm_craftables.gsc.
Referenced by track_craftables_pickedup(), and track_planted_craftables_pickedup().
function set_build_time | ( | craftable_name | , |
build_time | |||
) |
Definition at line 354 of file _zm_craftables.gsc.
function set_craftable_clientfield | ( | ) |
Definition at line 152 of file _zm_craftables.gsc.
References set_piece_count().
Referenced by __init__().
function set_hide_model_if_unavailable | ( | craftable_name | , |
hide_when_unavailable | |||
) |
Definition at line 337 of file _zm_craftables.gsc.
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().
function setup_craftable_pieces | ( | ) |
Definition at line 1884 of file _zm_craftables.gsc.
References craftable_piece_unitriggers(), and name.
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().
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().
function setup_unitrigger_craftable_internal | ( | trig | , |
equipname | , | ||
weaponname | , | ||
trigger_hintstring | , | ||
delete_trigger | , | ||
persistent | |||
) |
Definition at line 1683 of file _zm_craftables.gsc.
References CRAFTABLE_INVALID_CHOICE, craftable_piece_unitriggers(), craftable_place_think(), craftabletrigger_update_prompt(), onBeginUseUTS(), onCantUseUTS(), onEndUseUTS(), onUsePlantObjectUTS(), register_static_unitrigger(), and unitrigger_force_per_player_triggers().
Referenced by openTableCraftable(), setup_unitrigger_craftable(), and setup_unitrigger_craftable_array().
function setup_vehicle_unitrigger_craftable | ( | parent | , |
trigger_targetname | , | ||
equipname | , | ||
weaponname | , | ||
trigger_hintstring | , | ||
delete_trigger | , | ||
persistent | |||
) |
Definition at line 3611 of file _zm_craftables.gsc.
References anystub_get_unitrigger_origin(), anystub_on_spawn_trigger(), craftable_piece_unitriggers(), craftable_place_think(), craftabletrigger_update_prompt(), onBeginUseUTS(), onCantUseUTS(), onEndUseUTS(), onUsePlantObjectUTS(), register_unitrigger(), and unitrigger_force_per_player_triggers().
Referenced by vehicle_craftable_trigger_think().
function start_crafting_shared_piece | ( | ) |
Definition at line 2104 of file _zm_craftables.gsc.
Referenced by craftable_use_hold_think_internal().
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().
function think_craftables | ( | ) |
Definition at line 3568 of file _zm_craftables.gsc.
Referenced by __main__().
function track_craftable_piece_pickedup | ( | piece | ) |
Definition at line 3977 of file _zm_craftables.gsc.
References add_map_craftable_stat(), do_player_general_vox(), IS_TRUE, and ZM_MAP_EVENT_CRAFT_PIECE_PICKEDUP.
Referenced by player_take_piece().
function track_craftable_pieces_crafted | ( | craftable | ) |
Definition at line 4019 of file _zm_craftables.gsc.
References add_map_craftable_stat(), craftable_all_crafted(), and do_player_general_vox().
Referenced by player_craft().
function track_craftables_crafted | ( | craftable | ) |
Definition at line 4044 of file _zm_craftables.gsc.
References add_map_craftable_stat(), do_player_general_vox(), increment_challenge_stat(), increment_client_stat(), increment_player_stat(), and ZM_MAP_EVENT_CRAFTABLE_BUILT.
Referenced by player_craft().
function track_craftables_pickedup | ( | craftable | ) |
Definition at line 4082 of file _zm_craftables.gsc.
References add_map_craftable_stat(), do_player_general_vox(), get_craftable_stat_name(), say_pickup_craftable_vo(), and ZM_MAP_EVENT_CRAFTABLE_PICKEDUP.
Referenced by craftable_place_think().
function track_craftables_planted | ( | equipment | ) |
Definition at line 4112 of file _zm_craftables.gsc.
References add_map_craftable_stat(), bookmark(), get_craftable_stat_name(), and ZM_MAP_EVENT_CRAFTABLE_PLANTED.
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().
function track_planted_craftables_pickedup | ( | equipment | ) |
Definition at line 4168 of file _zm_craftables.gsc.
References craftable_pickedup_timer(), increment_client_stat(), increment_player_stat(), IS_TRUE, and say_pickup_craftable_vo().
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().
function update_open_table_status | ( | ) |
Definition at line 2437 of file _zm_craftables.gsc.
References IS_TRUE, and unregister_unitrigger().
Referenced by player_craft().
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().
function waittill_crafted | ( | craftable_name | ) |
Definition at line 2188 of file _zm_craftables.gsc.
function watch_hit_players | ( | ) |
Definition at line 943 of file _zm_craftables.gsc.
References ExplosionDamage().
Referenced by player_throw_piece().
function zombie_craftable_set_record_stats | ( | str_craftable | , |
b_record | |||
) |
Definition at line 4216 of file _zm_craftables.gsc.
References DEFAULT.