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

Go to the source code of this file.

Macros

#define TRACK_WEAPON_SHOT_FIRED   1
 

Functions

function add_limited_weapon (weapon, owner, num_drops)
 
function begin_grenade_tracking ()
 
function begin_other_grenade_tracking ()
 
function check_hatchet_bounce ()
 
function check_stuck_to_player (deleteOnTeamChange, awardScoreEvent, weapon)
 
function damage_ent (eInflictor, eAttacker, iDamage, sMeansOfDeath, weapon, damagepos, damagedir)
 
function damage_trace (from, to, startRadius, ignore)
 
function damage_trace_passed (from, to, startRadius, ignore)
 
function debugline (a, b, color)
 
function delete_ent_on_owner_death (owner)
 
function delete_pickup_after_aWhile ()
 
function drop_all_to_ground (origin, radius)
 
function drop_for_death (attacker, sWeapon, sMeansOfDeath)
 
function drop_grenades_to_ground (origin, radius)
 
function drop_limited_weapon (weapon, owner, item)
 
function drop_scavenger_for_death (attacker)
 
function flash_scavenger_icon ()
 
function get_damageable_ents (pos, radius, doLOS, startRadius)
 
function getTimeFromLevelStart ()
 
function init ()
 
function init_shared ()
 
function is_using_offhand_equipment ()
 
function limited_pickup (limited_info)
 
function loadout_get_offhand_count (stat)
 
function loadout_get_offhand_weapon (stat)
 
function may_drop (weapon)
 
function multi_detonation_get_cluster_launch_dir (index, multiVal)
 
function nineBang_DoEmpDamage (player, weapon, position)
 
function nineBang_doNineBang (attacker, weapon, pos, cookTime)
 
function nineBang_empCanDamage (ent, pos, radiusSq, doLOS, startRadius)
 
function nineBang_getSubExplosionPos (startPos, range)
 
function on_damage (eAttacker, eInflictor, weapon, meansOfDeath, damage)
 
function on_player_connect ()
 
function on_player_spawned ()
 
function play_concussion_sound (duration)
 
function scavenger_hud_create ()
 
function scavenger_hud_destroyOnDisconnect ()
 
function scavenger_think ()
 
function should_drop_limited_weapon (weapon, owner)
 
function should_suppress_damage (weapon, inflictor)
 
function stuck_to_player_team_change (player)
 
function track ()
 
function track_cooked_detonation (attacker, weapon, cookTime)
 
function track_fire (curWeapon)
 
function track_multi_detonation (ownerEnt, weapon, cookTime)
 
function turn_grenade_into_a_dud (weapon, isThrownGrenade, player)
 
function update_last_held_weapon_timings (newTime)
 
function update_stowed_weapon ()
 
function update_timings (newTime)
 
function wait_and_delete_dud (waitTime)
 
function watch_for_grenade_duds ()
 
function watch_for_grenade_launcher_duds ()
 
function watch_for_throwbacks ()
 
function watch_grenade_cancel ()
 
function watch_grenade_usage ()
 
function watch_missile_death ()
 
function watch_missile_usage ()
 
function watch_offhand_end ()
 
function watch_pickup ()
 
function watch_usage ()
 
function watch_weapon_change ()
 

Macro Definition Documentation

◆ TRACK_WEAPON_SHOT_FIRED

#define TRACK_WEAPON_SHOT_FIRED   1

Definition at line 563 of file _weapons.gsc.

Function Documentation

◆ add_limited_weapon()

function add_limited_weapon ( weapon  ,
owner  ,
num_drops   
)

◆ begin_grenade_tracking()

function begin_grenade_tracking ( )

◆ begin_other_grenade_tracking()

function begin_other_grenade_tracking ( )

◆ check_hatchet_bounce()

function check_hatchet_bounce ( )

Definition at line 895 of file _weapons.gsc.

Referenced by begin_other_grenade_tracking().

◆ check_stuck_to_player()

function check_stuck_to_player ( deleteOnTeamChange  ,
awardScoreEvent  ,
weapon   
)

◆ damage_ent()

function damage_ent ( eInflictor  ,
eAttacker  ,
iDamage  ,
sMeansOfDeath  ,
weapon  ,
damagepos  ,
damagedir   
)

Definition at line 1185 of file _weapons.gsc.

References damage_notify_wrapper().

◆ damage_trace()

function damage_trace ( from  ,
to  ,
startRadius  ,
ignore   
)

Definition at line 1150 of file _weapons.gsc.

References debugline(), ignore(), and trace().

Referenced by damage_trace_passed(), and entLOSRadiusDamage().

◆ damage_trace_passed()

function damage_trace_passed ( from  ,
to  ,
startRadius  ,
ignore   
)

Definition at line 1144 of file _weapons.gsc.

References damage_trace(), ignore(), and trace().

Referenced by get_damageable_ents().

◆ debugline()

function debugline ( a  ,
,
color   
)

Definition at line 1247 of file _weapons.gsc.

References a.

Referenced by damage_trace(), and weaponDamageTrace().

◆ delete_ent_on_owner_death()

function delete_ent_on_owner_death ( owner  )

Definition at line 1341 of file _weapons.gsc.

Referenced by play_concussion_sound().

◆ delete_pickup_after_aWhile()

function delete_pickup_after_aWhile ( )

Definition at line 412 of file _weapons.gsc.

Referenced by drop_for_death().

◆ drop_all_to_ground()

function drop_all_to_ground ( origin  ,
radius   
)

Definition at line 663 of file _weapons.gsc.

References trace().

Referenced by crateDelete(), and dropAllToGround().

◆ drop_for_death()

function drop_for_death ( attacker  ,
sWeapon  ,
sMeansOfDeath   
)

◆ drop_grenades_to_ground()

function drop_grenades_to_ground ( origin  ,
radius   
)

Definition at line 676 of file _weapons.gsc.

References launch().

◆ drop_limited_weapon()

function drop_limited_weapon ( weapon  ,
owner  ,
item   
)

Definition at line 1683 of file _weapons.gsc.

References limited_pickup().

Referenced by drop_for_death().

◆ drop_scavenger_for_death()

function drop_scavenger_for_death ( attacker  )

Definition at line 1622 of file _weapons.gsc.

References scavenger_think().

Referenced by Callback_PlayerKilled().

◆ flash_scavenger_icon()

function flash_scavenger_icon ( )

Definition at line 1464 of file _weapons.gsc.

Referenced by ammo_pouch_think(), and scavenger_think().

◆ get_damageable_ents()

function get_damageable_ents ( pos  ,
radius  ,
doLOS  ,
startRadius   
)

Definition at line 1025 of file _weapons.gsc.

References damage_trace_passed().

◆ getTimeFromLevelStart()

function getTimeFromLevelStart ( )

Definition at line 956 of file _weapons.gsc.

Referenced by turn_grenade_into_a_dud().

◆ init()

function init ( )

Definition at line 55 of file _weapons.gsc.

References on_connect(), on_player_connect(), on_player_spawned(), and on_spawned().

Referenced by init_shared().

◆ init_shared()

function init_shared ( )

Definition at line 34 of file _weapons.gsc.

References init(), and on_start_gametype().

Referenced by __init__().

◆ is_using_offhand_equipment()

function is_using_offhand_equipment ( )

Definition at line 729 of file _weapons.gsc.

Referenced by watch_offhand_end().

◆ limited_pickup()

function limited_pickup ( limited_info  )

Definition at line 1704 of file _weapons.gsc.

Referenced by drop_limited_weapon().

◆ loadout_get_offhand_count()

function loadout_get_offhand_count ( stat  )

Definition at line 1446 of file _weapons.gsc.

References getLoadoutItemFromDDLStats().

Referenced by scavenger_think().

◆ loadout_get_offhand_weapon()

function loadout_get_offhand_weapon ( stat  )

Definition at line 1425 of file _weapons.gsc.

References getLoadoutItemFromDDLStats().

Referenced by scavenger_think().

◆ may_drop()

function may_drop ( weapon  )

Definition at line 286 of file _weapons.gsc.

References is_killstreak_weapon().

Referenced by watch_weapon_change().

◆ multi_detonation_get_cluster_launch_dir()

function multi_detonation_get_cluster_launch_dir ( index  ,
multiVal   
)

Definition at line 1893 of file _weapons.gsc.

Referenced by track_multi_detonation().

◆ nineBang_DoEmpDamage()

function nineBang_DoEmpDamage ( player  ,
weapon  ,
position   
)

Definition at line 1836 of file _weapons.gsc.

References empExplosionDamageEnts(), and nineBang_empCanDamage().

◆ nineBang_doNineBang()

function nineBang_doNineBang ( attacker  ,
weapon  ,
pos  ,
cookTime   
)

Definition at line 1730 of file _weapons.gsc.

References nineBang_getSubExplosionPos().

Referenced by track_cooked_detonation().

◆ nineBang_empCanDamage()

function nineBang_empCanDamage ( ent  ,
pos  ,
radiusSq  ,
doLOS  ,
startRadius   
)

Definition at line 1854 of file _weapons.gsc.

References weaponDamageTracePassed().

Referenced by nineBang_DoEmpDamage().

◆ nineBang_getSubExplosionPos()

function nineBang_getSubExplosionPos ( startPos  ,
range   
)

Definition at line 1822 of file _weapons.gsc.

Referenced by nineBang_doNineBang().

◆ on_damage()

function on_damage ( eAttacker  ,
eInflictor  ,
weapon  ,
meansOfDeath  ,
damage   
)

◆ on_player_connect()

function on_player_connect ( )

Definition at line 75 of file _weapons.gsc.

References scavenger_hud_create().

Referenced by init().

◆ on_player_spawned()

function on_player_spawned ( )

◆ play_concussion_sound()

function play_concussion_sound ( duration  )

Definition at line 1320 of file _weapons.gsc.

References delete_ent_on_owner_death(), and spawn().

Referenced by on_damage().

◆ scavenger_hud_create()

function scavenger_hud_create ( )

Definition at line 1590 of file _weapons.gsc.

References IS_TRUE, and scavenger_hud_destroyOnDisconnect().

Referenced by on_player_connect(), and onPlayerConnect().

◆ scavenger_hud_destroyOnDisconnect()

function scavenger_hud_destroyOnDisconnect ( )

Definition at line 1583 of file _weapons.gsc.

References destroy().

Referenced by scavenger_hud_create().

◆ scavenger_think()

◆ should_drop_limited_weapon()

function should_drop_limited_weapon ( weapon  ,
owner   
)

Definition at line 1660 of file _weapons.gsc.

Referenced by drop_for_death().

◆ should_suppress_damage()

function should_suppress_damage ( weapon  ,
inflictor   
)

Definition at line 1905 of file _weapons.gsc.

References DEFAULT.

Referenced by Callback_VehicleDamage().

◆ stuck_to_player_team_change()

function stuck_to_player_team_change ( player  )

Definition at line 903 of file _weapons.gsc.

References detonate().

Referenced by check_stuck_to_player().

◆ track()

function track ( )

◆ track_cooked_detonation()

function track_cooked_detonation ( attacker  ,
weapon  ,
cookTime   
)

Definition at line 1718 of file _weapons.gsc.

References nineBang_doNineBang().

Referenced by begin_grenade_tracking().

◆ track_fire()

function track_fire ( curWeapon  )

Definition at line 565 of file _weapons.gsc.

References TRACK_WEAPON_SHOT_FIRED.

Referenced by watch_usage().

◆ track_multi_detonation()

function track_multi_detonation ( ownerEnt  ,
weapon  ,
cookTime   
)

◆ turn_grenade_into_a_dud()

function turn_grenade_into_a_dud ( weapon  ,
isThrownGrenade  ,
player   
)

Definition at line 965 of file _weapons.gsc.

References getTimeFromLevelStart().

Referenced by watch_for_grenade_duds(), and watch_for_grenade_launcher_duds().

◆ update_last_held_weapon_timings()

function update_last_held_weapon_timings ( newTime  )

Definition at line 134 of file _weapons.gsc.

Referenced by track(), and update_timings().

◆ update_stowed_weapon()

function update_stowed_weapon ( )

◆ update_timings()

function update_timings ( newTime  )

Definition at line 156 of file _weapons.gsc.

References get_killstreak_weapon(), is_bot(), and update_last_held_weapon_timings().

Referenced by endGame(), and track().

◆ wait_and_delete_dud()

function wait_and_delete_dud ( waitTime  )

Definition at line 946 of file _weapons.gsc.

◆ watch_for_grenade_duds()

function watch_for_grenade_duds ( )

Definition at line 989 of file _weapons.gsc.

References turn_grenade_into_a_dud().

Referenced by watch_grenade_usage().

◆ watch_for_grenade_launcher_duds()

function watch_for_grenade_launcher_duds ( )

Definition at line 1002 of file _weapons.gsc.

References turn_grenade_into_a_dud(), and watch_missile_death().

Referenced by watch_grenade_usage().

◆ watch_for_throwbacks()

function watch_for_throwbacks ( )

Definition at line 921 of file _weapons.gsc.

Referenced by watch_grenade_usage().

◆ watch_grenade_cancel()

function watch_grenade_cancel ( )

Definition at line 688 of file _weapons.gsc.

Referenced by begin_grenade_tracking().

◆ watch_grenade_usage()

◆ watch_missile_death()

function watch_missile_death ( )

◆ watch_missile_usage()

function watch_missile_usage ( )

Definition at line 638 of file _weapons.gsc.

References watch_missile_death().

Referenced by on_player_spawned().

◆ watch_offhand_end()

function watch_offhand_end ( )

Definition at line 708 of file _weapons.gsc.

References is_using_offhand_equipment(), and waittill_any_return().

Referenced by watch_grenade_usage(), and watchGrenadeUsage().

◆ watch_pickup()

function watch_pickup ( )

Definition at line 424 of file _weapons.gsc.

Referenced by drop_for_death().

◆ watch_usage()

function watch_usage ( )

Definition at line 513 of file _weapons.gsc.

References GADGET_TYPE_HERO_WEAPON, and track_fire().

Referenced by on_player_spawned().

◆ watch_weapon_change()

function watch_weapon_change ( )

Definition at line 106 of file _weapons.gsc.

References may_drop().

Referenced by on_player_spawned().