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

Go to the source code of this file.

Macros

#define B_DISABLE_GIBBING   0
 
#define N_GRAVITY_MELEE_LIFT_HEIGHT_MAX   200
 
#define N_GRAVITY_MELEE_LIFT_HEIGHT_MIN   128
 
#define N_GRAVITY_MELEE_MAX_LIFT_SPEED   200
 
#define N_GRAVITY_MELEE_MIN_LIFT_SPEED   150
 
#define N_GRAVITY_TRAP_HEIGHT   96
 
#define N_GRAVITY_TRAP_LIFT_HEIGHT_MAX   284
 
#define N_GRAVITY_TRAP_LIFT_HEIGHT_MIN   184
 
#define N_GRAVITY_TRAP_MAX_LIFT_SPEED   128
 
#define N_GRAVITY_TRAP_MAX_LIFT_TIME   10
 
#define N_GRAVITY_TRAP_MIN_LIFT_SPEED   64
 
#define N_GRAVITY_TRAP_PUSH_AWAY   0
 
#define N_GRAVITY_TRAP_SEPERATION   24
 
#define N_GRAVITYSPIKE_HINT_TIMER   3
 
#define N_GRAVITYSPIKES_ACTIVE_TIME   20
 
#define N_GRAVITYSPIKES_KNOCKDOWN_RADIUS   400
 
#define N_GRAVITYSPIKES_LOS_HEIGHT_OFFSET   50
 
#define N_GRAVITYSPIKES_MELEE_HEIGHT   96
 
#define N_GRAVITYSPIKES_MELEE_KILL_RADIUS   200
 
#define N_GRAVITYSPIKES_MELEE_PUSH_AWAY   128
 
#define N_MAX_ZOMBIES_LIFTED_FOR_RAGDOLL   12
 
#define SPIKES_CHOP_CONE_RANGE   120
 
#define V_GRAVITY_TRAP_LIFT_AMOUNT_OFFSET   ( 0, 0, -24 )
 
#define V_GROUND_OFFSET_FUDGE   ( 0, 0, 32 )
 
#define V_PHYSICSTRACE_CAPSULE_MAX   ( 16, 16, 16 )
 
#define V_PHYSICSTRACE_CAPSULE_MIN   ( -16, -16, -16 )
 

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)
 

Macro Definition Documentation

◆ B_DISABLE_GIBBING

#define B_DISABLE_GIBBING   0

Definition at line 83 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_MELEE_LIFT_HEIGHT_MAX

#define N_GRAVITY_MELEE_LIFT_HEIGHT_MAX   200

Definition at line 67 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_MELEE_LIFT_HEIGHT_MIN

#define N_GRAVITY_MELEE_LIFT_HEIGHT_MIN   128

Definition at line 66 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_MELEE_MAX_LIFT_SPEED

#define N_GRAVITY_MELEE_MAX_LIFT_SPEED   200

Definition at line 69 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_MELEE_MIN_LIFT_SPEED

#define N_GRAVITY_MELEE_MIN_LIFT_SPEED   150

Definition at line 68 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_HEIGHT

#define N_GRAVITY_TRAP_HEIGHT   96

Definition at line 72 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_LIFT_HEIGHT_MAX

#define N_GRAVITY_TRAP_LIFT_HEIGHT_MAX   284

Definition at line 75 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_LIFT_HEIGHT_MIN

#define N_GRAVITY_TRAP_LIFT_HEIGHT_MIN   184

Definition at line 74 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_MAX_LIFT_SPEED

#define N_GRAVITY_TRAP_MAX_LIFT_SPEED   128

Definition at line 77 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_MAX_LIFT_TIME

#define N_GRAVITY_TRAP_MAX_LIFT_TIME   10

Definition at line 78 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_MIN_LIFT_SPEED

#define N_GRAVITY_TRAP_MIN_LIFT_SPEED   64

Definition at line 76 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_PUSH_AWAY

#define N_GRAVITY_TRAP_PUSH_AWAY   0

Definition at line 73 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITY_TRAP_SEPERATION

#define N_GRAVITY_TRAP_SEPERATION   24

Definition at line 71 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITYSPIKE_HINT_TIMER

#define N_GRAVITYSPIKE_HINT_TIMER   3

Definition at line 81 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITYSPIKES_ACTIVE_TIME

#define N_GRAVITYSPIKES_ACTIVE_TIME   20

Definition at line 54 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITYSPIKES_KNOCKDOWN_RADIUS

#define N_GRAVITYSPIKES_KNOCKDOWN_RADIUS   400

Definition at line 62 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITYSPIKES_LOS_HEIGHT_OFFSET

#define N_GRAVITYSPIKES_LOS_HEIGHT_OFFSET   50

Definition at line 59 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITYSPIKES_MELEE_HEIGHT

#define N_GRAVITYSPIKES_MELEE_HEIGHT   96

Definition at line 64 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITYSPIKES_MELEE_KILL_RADIUS

#define N_GRAVITYSPIKES_MELEE_KILL_RADIUS   200

Definition at line 61 of file _zm_weap_gravityspikes.gsc.

◆ N_GRAVITYSPIKES_MELEE_PUSH_AWAY

#define N_GRAVITYSPIKES_MELEE_PUSH_AWAY   128

Definition at line 65 of file _zm_weap_gravityspikes.gsc.

◆ N_MAX_ZOMBIES_LIFTED_FOR_RAGDOLL

#define N_MAX_ZOMBIES_LIFTED_FOR_RAGDOLL   12

Definition at line 58 of file _zm_weap_gravityspikes.gsc.

◆ SPIKES_CHOP_CONE_RANGE

#define SPIKES_CHOP_CONE_RANGE   120

Definition at line 84 of file _zm_weap_gravityspikes.gsc.

◆ V_GRAVITY_TRAP_LIFT_AMOUNT_OFFSET

#define V_GRAVITY_TRAP_LIFT_AMOUNT_OFFSET   ( 0, 0, -24 )

Definition at line 79 of file _zm_weap_gravityspikes.gsc.

◆ V_GROUND_OFFSET_FUDGE

#define V_GROUND_OFFSET_FUDGE   ( 0, 0, 32 )

Definition at line 52 of file _zm_weap_gravityspikes.gsc.

◆ V_PHYSICSTRACE_CAPSULE_MAX

#define V_PHYSICSTRACE_CAPSULE_MAX   ( 16, 16, 16 )

Definition at line 56 of file _zm_weap_gravityspikes.gsc.

◆ V_PHYSICSTRACE_CAPSULE_MIN

#define V_PHYSICSTRACE_CAPSULE_MIN   ( -16, -16, -16 )

Definition at line 55 of file _zm_weap_gravityspikes.gsc.

Function Documentation

◆ __init__()

◆ check_for_range_and_los()

function check_for_range_and_los ( v_attack_source  ,
n_allowed_z_diff  ,
n_radius_sq   
)

◆ chop_actor()

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().

◆ 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().

◆ corpse_off_navmesh_watcher()

function corpse_off_navmesh_watcher ( )

Definition at line 1319 of file _zm_weap_gravityspikes.gsc.

References do_zombie_explode().

Referenced by zombie_lift().

◆ create_gravity_trap_spikes_in_ground()

function create_gravity_trap_spikes_in_ground ( a_v_spawn_pos  )

◆ create_gravity_trap_unitrigger()

function create_gravity_trap_unitrigger ( v_origin  ,
wpn_gravityspikes   
)

◆ destroy_gravity_trap_spikes_in_ground()

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().

◆ do_zombie_explode()

function private do_zombie_explode ( )

◆ gravity_spike_melee_kill()

◆ gravity_spike_planted_play()

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().

◆ gravity_spike_position_valid()

function gravity_spike_position_valid ( )

Definition at line 484 of file _zm_weap_gravityspikes.gsc.

Referenced by gravityspikes_altfire_watcher().

◆ gravity_trap_check()

◆ gravity_trap_fx_off()

function gravity_trap_fx_off ( )

Definition at line 949 of file _zm_weap_gravityspikes.gsc.

References set().

Referenced by gravity_trap_loop().

◆ gravity_trap_fx_on()

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().

◆ gravity_trap_loop()

◆ gravity_trap_notify_watcher()

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().

◆ gravity_trap_timeout_watcher()

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().

◆ gravity_trap_trigger_activate()

function gravity_trap_trigger_activate ( trig_stub  ,
player   
)

◆ gravity_trap_trigger_think()

function gravity_trap_trigger_think ( )

◆ gravity_trap_trigger_visibility()

function gravity_trap_trigger_visibility ( player  )

Definition at line 991 of file _zm_weap_gravityspikes.gsc.

Referenced by create_gravity_trap_unitrigger().

◆ gravityspikes_altfire_watcher()

function gravityspikes_altfire_watcher ( wpn_gravityspikes  )

◆ gravityspikes_attack_watcher()

function gravityspikes_attack_watcher ( wpn_gravityspikes  )

◆ gravityspikes_power_expired()

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().

◆ gravityspikes_power_override()

function gravityspikes_power_override ( e_player  ,
ai_enemy   
)

◆ gravityspikes_power_update()

function gravityspikes_power_update ( player  )

◆ gravityspikes_stuck_above_zombie_watcher()

function gravityspikes_stuck_above_zombie_watcher ( wpn_gravityspikes  )

◆ gravityspikes_swipe_watcher()

function gravityspikes_swipe_watcher ( wpn_gravityspikes  )

Definition at line 587 of file _zm_weap_gravityspikes.gsc.

References spikesarc_swipe().

Referenced by wield_gravityspikes().

◆ gravityspikes_target_filtering()

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().

◆ knockdown_zombies_slam()

◆ no_damage_gravityspikes_slam()

function no_damage_gravityspikes_slam ( )

◆ on_connect_func_for_gravityspikes()

◆ plant_gravity_trap()

◆ play_slam_fx()

function play_slam_fx ( v_pos  )

◆ player_invulnerable_during_gravityspike_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__().

◆ player_near_gravity_vortex()

function player_near_gravity_vortex ( v_vortex_origin  )

◆ player_vortex_rumble()

function player_vortex_rumble ( e_player  ,
v_vortex_origin   
)

◆ register_clientfields()

function register_clientfields ( )

Definition at line 113 of file _zm_weap_gravityspikes.gsc.

References register(), VERSION_SHIP, and VERSION_TU12.

Referenced by __init__().

◆ reset_after_bleeding_out()

◆ spikesarc_swipe()

function spikesarc_swipe ( player  )

Definition at line 578 of file _zm_weap_gravityspikes.gsc.

References chop_zombies().

Referenced by gravityspikes_swipe_watcher().

◆ track_lifted_for_ragdoll_count()

function track_lifted_for_ragdoll_count ( )

Definition at line 1311 of file _zm_weap_gravityspikes.gsc.

Referenced by zombie_lift().

◆ unwield_gravityspikes()

function unwield_gravityspikes ( wpn_gravityspikes  )

◆ update_gravityspikes_energy()

function update_gravityspikes_energy ( n_gravityspikes_power  )

Definition at line 1065 of file _zm_weap_gravityspikes.gsc.

References set_player_uimodel().

◆ update_gravityspikes_state()

◆ weapon_change_watcher()

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().

◆ weapon_drop_watcher()

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().

◆ wield_gravityspikes()

◆ zombie_kill_and_gib()

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().

◆ zombie_lift()

◆ zombie_lift_wacky_rotate()

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().

◆ zombie_slam_direction()

function zombie_slam_direction ( v_position  )