![]() |
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.
Functions | |
function | __init__ () |
function | check_for_range_and_los (v_attack_source, n_allowed_z_diff, n_radius_sq) |
function | chop_actor (ai, leftswing, weapon=level.weaponNone) |
function | chop_zombies (first_time, leftswing, weapon=level.weaponNone) |
function | corpse_off_navmesh_watcher () |
function | create_gravity_trap_spikes_in_ground (a_v_spawn_pos) |
function | create_gravity_trap_unitrigger (v_origin, wpn_gravityspikes) |
function | destroy_gravity_trap_spikes_in_ground () |
function private | do_zombie_explode () |
function | gravity_spike_melee_kill (v_position, player) |
function | gravity_spike_planted_play () |
function | gravity_spike_position_valid () |
function | gravity_trap_check (player) |
function | gravity_trap_fx_off () |
function | gravity_trap_fx_on (v_spawn_pos) |
function | gravity_trap_loop (v_gravity_trap_pos, wpn_gravityspikes) |
function | gravity_trap_notify_watcher (player) |
function | gravity_trap_timeout_watcher () |
function | gravity_trap_trigger_activate (trig_stub, player) |
function | gravity_trap_trigger_think () |
function | gravity_trap_trigger_visibility (player) |
function | gravityspikes_altfire_watcher (wpn_gravityspikes) |
function | gravityspikes_attack_watcher (wpn_gravityspikes) |
function | gravityspikes_power_expired (weapon) |
function | gravityspikes_power_override (e_player, ai_enemy) |
function | gravityspikes_power_update (player) |
function | gravityspikes_stuck_above_zombie_watcher (wpn_gravityspikes) |
function | gravityspikes_swipe_watcher (wpn_gravityspikes) |
function | gravityspikes_target_filtering (ai_enemy) |
function | knockdown_zombies_slam () |
function | no_damage_gravityspikes_slam () |
function private | on_connect_func_for_gravityspikes () |
function | plant_gravity_trap (wpn_gravityspikes) |
function | play_slam_fx (v_pos) |
function | player_invulnerable_during_gravityspike_slam (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, psOffsetTime, boneIndex) |
function | player_near_gravity_vortex (v_vortex_origin) |
function | player_vortex_rumble (e_player, v_vortex_origin) |
function | register_clientfields () |
function | reset_after_bleeding_out () |
function | spikesarc_swipe (player) |
function | track_lifted_for_ragdoll_count () |
function | unwield_gravityspikes (wpn_gravityspikes) |
function | update_gravityspikes_energy (n_gravityspikes_power) |
function | update_gravityspikes_state (n_gravityspikes_state) |
function | weapon_change_watcher () |
function | weapon_drop_watcher () |
function | wield_gravityspikes (wpn_gravityspikes) |
function | zombie_kill_and_gib (player) |
function | zombie_lift (player, v_attack_source, n_push_away, n_lift_height, v_lift_offset, n_lift_speed) |
function | zombie_lift_wacky_rotate (n_lift_time, player) |
function | zombie_slam_direction (v_position) |
#define B_DISABLE_GIBBING 0 |
Definition at line 83 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_MELEE_LIFT_HEIGHT_MAX 200 |
Definition at line 67 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_MELEE_LIFT_HEIGHT_MIN 128 |
Definition at line 66 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_MELEE_MAX_LIFT_SPEED 200 |
Definition at line 69 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_MELEE_MIN_LIFT_SPEED 150 |
Definition at line 68 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_HEIGHT 96 |
Definition at line 72 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_LIFT_HEIGHT_MAX 284 |
Definition at line 75 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_LIFT_HEIGHT_MIN 184 |
Definition at line 74 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_MAX_LIFT_SPEED 128 |
Definition at line 77 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_MAX_LIFT_TIME 10 |
Definition at line 78 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_MIN_LIFT_SPEED 64 |
Definition at line 76 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_PUSH_AWAY 0 |
Definition at line 73 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITY_TRAP_SEPERATION 24 |
Definition at line 71 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITYSPIKE_HINT_TIMER 3 |
Definition at line 81 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITYSPIKES_ACTIVE_TIME 20 |
Definition at line 54 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITYSPIKES_KNOCKDOWN_RADIUS 400 |
Definition at line 62 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITYSPIKES_LOS_HEIGHT_OFFSET 50 |
Definition at line 59 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITYSPIKES_MELEE_HEIGHT 96 |
Definition at line 64 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITYSPIKES_MELEE_KILL_RADIUS 200 |
Definition at line 61 of file _zm_weap_gravityspikes.gsc.
#define N_GRAVITYSPIKES_MELEE_PUSH_AWAY 128 |
Definition at line 65 of file _zm_weap_gravityspikes.gsc.
#define N_MAX_ZOMBIES_LIFTED_FOR_RAGDOLL 12 |
Definition at line 58 of file _zm_weap_gravityspikes.gsc.
#define SPIKES_CHOP_CONE_RANGE 120 |
Definition at line 84 of file _zm_weap_gravityspikes.gsc.
#define V_GRAVITY_TRAP_LIFT_AMOUNT_OFFSET ( 0, 0, -24 ) |
Definition at line 79 of file _zm_weap_gravityspikes.gsc.
#define V_GROUND_OFFSET_FUDGE ( 0, 0, 32 ) |
Definition at line 52 of file _zm_weap_gravityspikes.gsc.
#define V_PHYSICSTRACE_CAPSULE_MAX ( 16, 16, 16 ) |
Definition at line 56 of file _zm_weap_gravityspikes.gsc.
#define V_PHYSICSTRACE_CAPSULE_MIN ( -16, -16, -16 ) |
Definition at line 55 of file _zm_weap_gravityspikes.gsc.
function __init__ | ( | ) |
Definition at line 86 of file _zm_weap_gravityspikes.gsc.
References gravityspikes_power_expired(), gravityspikes_power_override(), on_connect(), on_connect_func_for_gravityspikes(), player_invulnerable_during_gravityspike_slam(), register_clientfields(), register_hero_recharge_event(), register_hero_weapon(), register_hero_weapon_power_callbacks(), register_hero_weapon_wield_unwield_callbacks(), register_player_damage_callback(), SPIKES_CHOP_CONE_RANGE, STR_GRAVITYSPIKES_NAME, unwield_gravityspikes(), and wield_gravityspikes().
function check_for_range_and_los | ( | v_attack_source | , |
n_allowed_z_diff | , | ||
n_radius_sq | |||
) |
Definition at line 1071 of file _zm_weap_gravityspikes.gsc.
References N_GRAVITYSPIKES_LOS_HEIGHT_OFFSET.
Referenced by gravity_spike_melee_kill(), and gravity_trap_check().
function chop_actor | ( | ai | , |
leftswing | , | ||
weapon | = level.weaponNone |
||
) |
Definition at line 496 of file _zm_weap_gravityspikes.gsc.
References wait_network_frame().
Referenced by chop_zombies().
function chop_zombies | ( | first_time | , |
leftswing | , | ||
weapon | = level.weaponNone |
||
) |
Definition at line 520 of file _zm_weap_gravityspikes.gsc.
References chop_actor(), and IS_TRUE.
Referenced by spikesarc_swipe().
function corpse_off_navmesh_watcher | ( | ) |
Definition at line 1319 of file _zm_weap_gravityspikes.gsc.
References do_zombie_explode().
Referenced by zombie_lift().
function create_gravity_trap_spikes_in_ground | ( | a_v_spawn_pos | ) |
Definition at line 853 of file _zm_weap_gravityspikes.gsc.
References gravity_spike_planted_play(), set(), spawn_model(), and WAIT_SERVER_FRAME.
Referenced by plant_gravity_trap().
function create_gravity_trap_unitrigger | ( | v_origin | , |
wpn_gravityspikes | |||
) |
Definition at line 965 of file _zm_weap_gravityspikes.gsc.
References gravity_trap_trigger_think(), gravity_trap_trigger_visibility(), N_GRAVITY_TRAP_RADIUS, register_static_unitrigger(), and unitrigger_force_per_player_triggers().
Referenced by gravity_trap_loop().
function destroy_gravity_trap_spikes_in_ground | ( | ) |
Definition at line 896 of file _zm_weap_gravityspikes.gsc.
References set(), stop(), and waittill_any().
Referenced by plant_gravity_trap().
function private do_zombie_explode | ( | ) |
Definition at line 1331 of file _zm_weap_gravityspikes.gsc.
References delay(), increment(), self_delete(), wait_network_frame(), and zombie_eye_glow_stop().
Referenced by corpse_off_navmesh_watcher().
function gravity_spike_melee_kill | ( | v_position | , |
player | |||
) |
Definition at line 1349 of file _zm_weap_gravityspikes.gsc.
References check_for_range_and_los(), N_GRAVITY_MELEE_LIFT_HEIGHT_MAX, N_GRAVITY_MELEE_LIFT_HEIGHT_MIN, N_GRAVITY_MELEE_MAX_LIFT_SPEED, N_GRAVITY_MELEE_MIN_LIFT_SPEED, N_GRAVITYSPIKES_MELEE_HEIGHT, N_GRAVITYSPIKES_MELEE_KILL_RADIUS, N_GRAVITYSPIKES_MELEE_PUSH_AWAY, and zombie_lift().
Referenced by knockdown_zombies_slam().
function gravity_spike_planted_play | ( | ) |
Definition at line 886 of file _zm_weap_gravityspikes.gsc.
References play().
Referenced by create_gravity_trap_spikes_in_ground().
function gravity_spike_position_valid | ( | ) |
Definition at line 484 of file _zm_weap_gravityspikes.gsc.
Referenced by gravityspikes_altfire_watcher().
function gravity_trap_check | ( | player | ) |
Definition at line 804 of file _zm_weap_gravityspikes.gsc.
References check_for_range_and_los(), N_GRAVITY_TRAP_HEIGHT, N_GRAVITY_TRAP_LIFT_HEIGHT_MAX, N_GRAVITY_TRAP_LIFT_HEIGHT_MIN, N_GRAVITY_TRAP_MAX_LIFT_SPEED, N_GRAVITY_TRAP_MIN_LIFT_SPEED, N_GRAVITY_TRAP_RADIUS, V_GRAVITY_TRAP_LIFT_AMOUNT_OFFSET, and zombie_lift().
Referenced by gravity_trap_loop().
function gravity_trap_fx_off | ( | ) |
Definition at line 949 of file _zm_weap_gravityspikes.gsc.
References set().
Referenced by gravity_trap_loop().
function gravity_trap_fx_on | ( | v_spawn_pos | ) |
Definition at line 935 of file _zm_weap_gravityspikes.gsc.
References set(), spawn_model(), and WAIT_SERVER_FRAME.
Referenced by plant_gravity_trap().
function gravity_trap_loop | ( | v_gravity_trap_pos | , |
wpn_gravityspikes | |||
) |
Definition at line 761 of file _zm_weap_gravityspikes.gsc.
References create_gravity_trap_unitrigger(), gravity_trap_check(), gravity_trap_fx_off(), gravityspikes_power_expired(), GRAVITYSPIKES_STATE_DEPLETED, gravityspikes_target_filtering(), is_hero_weapon_in_use(), update_gravityspikes_state(), and wait_network_frame().
Referenced by unwield_gravityspikes().
function gravity_trap_notify_watcher | ( | player | ) |
Definition at line 1230 of file _zm_weap_gravityspikes.gsc.
References gravity_trap_timeout_watcher(), and waittill_any_ents().
Referenced by zombie_lift().
function gravity_trap_timeout_watcher | ( | ) |
Definition at line 1245 of file _zm_weap_gravityspikes.gsc.
References IS_TRUE, and waittill_any_timeout().
Referenced by gravity_trap_notify_watcher().
function gravity_trap_trigger_activate | ( | trig_stub | , |
player | |||
) |
Definition at line 1033 of file _zm_weap_gravityspikes.gsc.
References GRAVITYSPIKES_STATE_INUSE, and unregister_unitrigger().
Referenced by gravity_trap_trigger_think().
function gravity_trap_trigger_think | ( | ) |
Definition at line 1006 of file _zm_weap_gravityspikes.gsc.
References gravity_trap_trigger_activate(), in_revive_trigger(), IS_DRINKING, and is_player_valid().
Referenced by create_gravity_trap_unitrigger().
function gravity_trap_trigger_visibility | ( | player | ) |
Definition at line 991 of file _zm_weap_gravityspikes.gsc.
Referenced by create_gravity_trap_unitrigger().
function gravityspikes_altfire_watcher | ( | wpn_gravityspikes | ) |
Definition at line 464 of file _zm_weap_gravityspikes.gsc.
References gravity_spike_position_valid(), and plant_gravity_trap().
Referenced by wield_gravityspikes().
function gravityspikes_attack_watcher | ( | wpn_gravityspikes | ) |
Definition at line 354 of file _zm_weap_gravityspikes.gsc.
References knockdown_zombies_slam(), and no_damage_gravityspikes_slam().
Referenced by wield_gravityspikes().
function gravityspikes_power_expired | ( | weapon | ) |
Definition at line 618 of file _zm_weap_gravityspikes.gsc.
References default_power_empty().
Referenced by __init__(), and gravity_trap_loop().
function gravityspikes_power_override | ( | e_player | , |
ai_enemy | |||
) |
Definition at line 226 of file _zm_weap_gravityspikes.gsc.
References clamp(), GRAVITYSPIKES_STATE_READY, increment_uimodel(), IS_EQUAL, IS_TRUE, player_is_in_laststand(), set_player_uimodel(), STR_GRAVITYSPIKES_NAME, and update_gravityspikes_state().
Referenced by __init__().
function gravityspikes_power_update | ( | player | ) |
Definition at line 608 of file _zm_weap_gravityspikes.gsc.
References GRAVITYSPIKES_STATE_READY, IS_TRUE, and update_gravityspikes_state().
function gravityspikes_stuck_above_zombie_watcher | ( | wpn_gravityspikes | ) |
Definition at line 375 of file _zm_weap_gravityspikes.gsc.
References ARCHETYPE_ZOMBIE, ARCHETYPE_ZOMBIE_DOG, is_player_valid(), knockdown_zombies_slam(), no_damage_gravityspikes_slam(), and trace().
Referenced by wield_gravityspikes().
function gravityspikes_swipe_watcher | ( | wpn_gravityspikes | ) |
Definition at line 587 of file _zm_weap_gravityspikes.gsc.
References spikesarc_swipe().
Referenced by wield_gravityspikes().
function gravityspikes_target_filtering | ( | ai_enemy | ) |
Definition at line 1091 of file _zm_weap_gravityspikes.gsc.
Referenced by gravity_trap_loop(), and knockdown_zombies_slam().
function knockdown_zombies_slam | ( | ) |
Definition at line 1369 of file _zm_weap_gravityspikes.gsc.
References gravity_spike_melee_kill(), gravityspikes_target_filtering(), N_GRAVITYSPIKES_KNOCKDOWN_RADIUS, N_GRAVITYSPIKES_MELEE_KILL_RADIUS, play_slam_fx(), and zombie_slam_direction().
Referenced by gravityspikes_attack_watcher(), and gravityspikes_stuck_above_zombie_watcher().
function no_damage_gravityspikes_slam | ( | ) |
Definition at line 642 of file _zm_weap_gravityspikes.gsc.
Referenced by gravityspikes_attack_watcher(), and gravityspikes_stuck_above_zombie_watcher().
function private on_connect_func_for_gravityspikes | ( | ) |
Definition at line 130 of file _zm_weap_gravityspikes.gsc.
References GRAVITYSPIKES_STATE_NOT_PICKED_UP, reset_after_bleeding_out(), STR_GRAVITYSPIKES_NAME, update_gravityspikes_state(), weapon_change_watcher(), and weapon_drop_watcher().
Referenced by __init__(), and reset_after_bleeding_out().
function plant_gravity_trap | ( | wpn_gravityspikes | ) |
Definition at line 701 of file _zm_weap_gravityspikes.gsc.
References array, create_gravity_trap_spikes_in_ground(), destroy_gravity_trap_spikes_in_ground(), gravity_trap_fx_on(), ground_position(), N_GRAVITY_TRAP_SEPERATION, player_near_gravity_vortex(), switch_back_primary_weapon(), V_GROUND_OFFSET_FUDGE, V_PHYSICSTRACE_CAPSULE_MAX, V_PHYSICSTRACE_CAPSULE_MIN, and waittill_any().
Referenced by gravityspikes_altfire_watcher().
function play_slam_fx | ( | v_pos | ) |
Definition at line 1388 of file _zm_weap_gravityspikes.gsc.
References increment_to_player(), set(), spawn_model(), and WAIT_SERVER_FRAME.
Referenced by knockdown_zombies_slam().
function player_invulnerable_during_gravityspike_slam | ( | eInflictor | , |
eAttacker | , | ||
iDamage | , | ||
iDFlags | , | ||
sMeansOfDeath | , | ||
weapon | , | ||
vPoint | , | ||
vDir | , | ||
sHitLoc | , | ||
psOffsetTime | , | ||
boneIndex | |||
) |
Definition at line 630 of file _zm_weap_gravityspikes.gsc.
References GRAVITYSPIKES_STATE_INUSE, and IS_TRUE.
Referenced by __init__().
function player_near_gravity_vortex | ( | v_vortex_origin | ) |
Definition at line 652 of file _zm_weap_gravityspikes.gsc.
References GRAVITYSPIKES_STATE_INUSE, IS_EQUAL, IS_TRUE, N_GRAVITY_TRAP_RADIUS, player_vortex_rumble(), player_vortex_visionset(), VORTEX_SCREEN_EFFECT_NAME, and WAIT_SERVER_FRAME.
Referenced by plant_gravity_trap().
function player_vortex_rumble | ( | e_player | , |
v_vortex_origin | |||
) |
Definition at line 679 of file _zm_weap_gravityspikes.gsc.
References GRAVITYSPIKES_STATE_INUSE, IS_EQUAL, N_GRAVITY_TRAP_RADIUS, set_to_player(), and WAIT_SERVER_FRAME.
Referenced by player_near_gravity_vortex().
function register_clientfields | ( | ) |
Definition at line 113 of file _zm_weap_gravityspikes.gsc.
References register(), VERSION_SHIP, and VERSION_TU12.
Referenced by __init__().
function reset_after_bleeding_out | ( | ) |
Definition at line 181 of file _zm_weap_gravityspikes.gsc.
References GRAVITYSPIKES_STATE_READY, IS_TRUE, on_connect_func_for_gravityspikes(), STR_GRAVITYSPIKES_NAME, unregister_unitrigger(), update_gravityspikes_state(), wait_network_frame(), and weapon_give().
Referenced by on_connect_func_for_gravityspikes().
function spikesarc_swipe | ( | player | ) |
Definition at line 578 of file _zm_weap_gravityspikes.gsc.
References chop_zombies().
Referenced by gravityspikes_swipe_watcher().
function track_lifted_for_ragdoll_count | ( | ) |
Definition at line 1311 of file _zm_weap_gravityspikes.gsc.
Referenced by zombie_lift().
function unwield_gravityspikes | ( | wpn_gravityspikes | ) |
Definition at line 311 of file _zm_weap_gravityspikes.gsc.
References continue_draining_hero_weapon(), default_unwield(), gravity_trap_loop(), and IS_TRUE.
Referenced by __init__().
function update_gravityspikes_energy | ( | n_gravityspikes_power | ) |
Definition at line 1065 of file _zm_weap_gravityspikes.gsc.
References set_player_uimodel().
function update_gravityspikes_state | ( | n_gravityspikes_state | ) |
Definition at line 1060 of file _zm_weap_gravityspikes.gsc.
Referenced by gravity_trap_loop(), gravityspikes_power_override(), gravityspikes_power_update(), on_connect_func_for_gravityspikes(), reset_after_bleeding_out(), and wield_gravityspikes().
function weapon_change_watcher | ( | ) |
Definition at line 340 of file _zm_weap_gravityspikes.gsc.
References is_hero_weapon().
Referenced by on_connect_func_for_gravityspikes().
function weapon_drop_watcher | ( | ) |
Definition at line 326 of file _zm_weap_gravityspikes.gsc.
References is_hero_weapon().
Referenced by on_connect_func_for_gravityspikes().
function wield_gravityspikes | ( | wpn_gravityspikes | ) |
Definition at line 287 of file _zm_weap_gravityspikes.gsc.
References default_wield(), destroy(), gravityspikes_altfire_watcher(), gravityspikes_attack_watcher(), GRAVITYSPIKES_STATE_INUSE, gravityspikes_stuck_above_zombie_watcher(), gravityspikes_swipe_watcher(), IS_TRUE, N_GRAVITYSPIKE_HINT_TIMER, show_hint_text(), and update_gravityspikes_state().
Referenced by __init__().
function zombie_kill_and_gib | ( | player | ) |
Definition at line 1280 of file _zm_weap_gravityspikes.gsc.
References B_DISABLE_GIBBING, gib_random_parts(), and STR_GRAVITYSPIKES_NAME.
Referenced by zombie_lift().
function zombie_lift | ( | player | , |
v_attack_source | , | ||
n_push_away | , | ||
n_lift_height | , | ||
v_lift_offset | , | ||
n_lift_speed | |||
) |
Definition at line 1101 of file _zm_weap_gravityspikes.gsc.
References corpse_off_navmesh_watcher(), delete_on_death(), GRAVITY_SLAM_SPEED, gravity_trap_notify_watcher(), ground_position(), IS_TRUE, N_MAX_ZOMBIES_LIFTED_FOR_RAGDOLL, play(), set(), spawn_model(), stop(), STR_GRAVITYSPIKES_NAME, track_lifted_for_ragdoll_count(), V_GROUND_OFFSET_FUDGE, V_PHYSICSTRACE_CAPSULE_MAX, V_PHYSICSTRACE_CAPSULE_MIN, wait_network_frame(), zombie_kill_and_gib(), and zombie_lift_wacky_rotate().
Referenced by gravity_spike_melee_kill(), and gravity_trap_check().
function zombie_lift_wacky_rotate | ( | n_lift_time | , |
player | |||
) |
Definition at line 1260 of file _zm_weap_gravityspikes.gsc.
References N_GRAVITY_TRAP_MAX_LIFT_TIME.
Referenced by zombie_lift().
function zombie_slam_direction | ( | v_position | ) |
Definition at line 1402 of file _zm_weap_gravityspikes.gsc.
References ARCHETYPE_ZOMBIE, cointoss(), GETUP_BACK, GETUP_BELLY, and IS_EQUAL.
Referenced by knockdown_zombies_slam().