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

Go to the source code of this file.

Macros

#define ARMOR_BULLET_MULTIPLIER   GetDvarFloat( "scr_armor_mod_bullet_mult", .7 )
 
#define ARMOR_EXPLOSIVE_MULTIPLIER   GetDvarFloat( "scr_armor_mod_expl_mult", 1 )
 
#define ARMOR_MELEE_MULTIPLIER   GetDvarFloat( "scr_armor_mod_melee_mult", 2 )
 
#define ARMOR_MISC_MULTIPLIER   GetDvarFloat( "scr_armor_mod_misc_mult", 1 )
 
#define ARMOR_PROJECTILE_MULTIPLIER   GetDvarFloat( "scr_armor_mod_proj_mult", 1 )
 
#define ARMOR_VIEW_KICK_MULTIPLIER   GetDvarFloat( "scr_armor_mod_view_kick_mult", .001 )
 

Functions

function __init__ ()
 
function armor_damage_mod_allowed (weapon, sMeansOfDeath)
 
function armor_damage_type_multiplier (sMeansOfDeath)
 
function armor_player_damage (eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, weapon, vPoint, vDir, sHitLoc, modelIndex, psOffsetTime)
 
function armor_should_take_damage (eAttacker, weapon, sMeansOfDeath, sHitLoc)
 
function gadget_armor_flicker (slot, weapon)
 
function gadget_armor_is_flickering (slot)
 
function gadget_armor_is_inuse (slot)
 
function gadget_armor_off (slot, weapon)
 
function gadget_armor_on (slot, weapon)
 
function gadget_armor_on_connect ()
 
function gadget_armor_on_flicker (slot, weapon)
 
function gadget_armor_on_give (slot, weapon)
 
function gadget_armor_on_take (slot, weapon)
 
function gadget_armor_status (slot, weapon)
 
function hitpoints_loss_event (val)
 
function set_gadget_status (status, time)
 

Macro Definition Documentation

◆ ARMOR_BULLET_MULTIPLIER

#define ARMOR_BULLET_MULTIPLIER   GetDvarFloat( "scr_armor_mod_bullet_mult", .7 )

Definition at line 22 of file _gadget_armor.gsc.

◆ ARMOR_EXPLOSIVE_MULTIPLIER

#define ARMOR_EXPLOSIVE_MULTIPLIER   GetDvarFloat( "scr_armor_mod_expl_mult", 1 )

Definition at line 21 of file _gadget_armor.gsc.

◆ ARMOR_MELEE_MULTIPLIER

#define ARMOR_MELEE_MULTIPLIER   GetDvarFloat( "scr_armor_mod_melee_mult", 2 )

Definition at line 20 of file _gadget_armor.gsc.

◆ ARMOR_MISC_MULTIPLIER

#define ARMOR_MISC_MULTIPLIER   GetDvarFloat( "scr_armor_mod_misc_mult", 1 )

Definition at line 23 of file _gadget_armor.gsc.

◆ ARMOR_PROJECTILE_MULTIPLIER

#define ARMOR_PROJECTILE_MULTIPLIER   GetDvarFloat( "scr_armor_mod_proj_mult", 1 )

Definition at line 19 of file _gadget_armor.gsc.

◆ ARMOR_VIEW_KICK_MULTIPLIER

#define ARMOR_VIEW_KICK_MULTIPLIER   GetDvarFloat( "scr_armor_mod_view_kick_mult", .001 )

Definition at line 24 of file _gadget_armor.gsc.

Function Documentation

◆ __init__()

◆ armor_damage_mod_allowed()

function armor_damage_mod_allowed ( weapon  ,
sMeansOfDeath   
)

Definition at line 212 of file _gadget_armor.gsc.

Referenced by armor_should_take_damage().

◆ armor_damage_type_multiplier()

function armor_damage_type_multiplier ( sMeansOfDeath  )

◆ armor_player_damage()

function armor_player_damage ( eInflictor  ,
eAttacker  ,
iDamage  ,
iDFlags  ,
sMeansOfDeath  ,
weapon  ,
vPoint  ,
vDir  ,
sHitLoc  ,
modelIndex  ,
psOffsetTime   
)

◆ armor_should_take_damage()

function armor_should_take_damage ( eAttacker  ,
weapon  ,
sMeansOfDeath  ,
sHitLoc   
)

Definition at line 262 of file _gadget_armor.gsc.

References armor_damage_mod_allowed(), and friendlyFireCheck().

Referenced by armor_player_damage(), and update().

◆ gadget_armor_flicker()

function gadget_armor_flicker ( slot  ,
weapon   
)

Definition at line 132 of file _gadget_armor.gsc.

References gadget_armor_is_inuse(), and set_gadget_status().

Referenced by gadget_armor_on_flicker().

◆ gadget_armor_is_flickering()

function gadget_armor_is_flickering ( slot  )

Definition at line 50 of file _gadget_armor.gsc.

Referenced by __init__().

◆ gadget_armor_is_inuse()

function gadget_armor_is_inuse ( slot  )

Definition at line 44 of file _gadget_armor.gsc.

Referenced by __init__(), armor_player_damage(), and gadget_armor_flicker().

◆ gadget_armor_off()

function gadget_armor_off ( slot  ,
weapon   
)

Definition at line 108 of file _gadget_armor.gsc.

References ARMOR_STATUS_OFF, clear(), get(), and set().

Referenced by __init__(), and gadget_armor_on_take().

◆ gadget_armor_on()

function gadget_armor_on ( slot  ,
weapon   
)

Definition at line 85 of file _gadget_armor.gsc.

References armor_player_damage(), gadget_armor_status(), and set().

Referenced by __init__().

◆ gadget_armor_on_connect()

function gadget_armor_on_connect ( )

Definition at line 80 of file _gadget_armor.gsc.

Referenced by __init__().

◆ gadget_armor_on_flicker()

function gadget_armor_on_flicker ( slot  ,
weapon   
)

Definition at line 56 of file _gadget_armor.gsc.

References gadget_armor_flicker().

Referenced by __init__().

◆ gadget_armor_on_give()

function gadget_armor_on_give ( slot  ,
weapon   
)

Definition at line 62 of file _gadget_armor.gsc.

References ARMOR_STATUS_OFF, and set().

Referenced by __init__().

◆ gadget_armor_on_take()

function gadget_armor_on_take ( slot  ,
weapon   
)

Definition at line 72 of file _gadget_armor.gsc.

References gadget_armor_off().

Referenced by __init__().

◆ gadget_armor_status()

function gadget_armor_status ( slot  ,
weapon   
)

Definition at line 351 of file _gadget_armor.gsc.

References ARMOR_STATUS_FULL, ARMOR_STATUS_OFF, get(), set(), and WAIT_SERVER_FRAME.

Referenced by gadget_armor_on().

◆ hitpoints_loss_event()

function hitpoints_loss_event ( val  )

Definition at line 343 of file _gadget_armor.gsc.

Referenced by armor_player_damage().

◆ set_gadget_status()

function set_gadget_status ( status  ,
time   
)

Definition at line 157 of file _gadget_armor.gsc.

Referenced by gadget_armor_flicker().