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

Go to the source code of this file.

Macros

#define ARMOR_COLOR_B   .2
 
#define ARMOR_COLOR_G   .3
 
#define ARMOR_COLOR_R   .3
 
#define ARMOR_EXPANSION   .3
 
#define ARMOR_MATERIAL   "mc/mtl_power_armor"
 

Functions

function __init__ ()
 
function armor_get_shader_color (armorStatusNew)
 
function armor_is_local_player (localClientNum)
 
function armor_overlay_transition_fx (localClientNum, armorStatusNew)
 
function armor_update_fx_event (localClientNum, doArmorFx)
 
function armor_update_shader_event (localClientNum, armorStatusNew)
 
function on_local_player_spawned (localClientNum)
 
function player_armor_changed (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 
function player_armor_changed_event (localClientNum, newVal)
 
function player_damage_type_changed (localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
 

Macro Definition Documentation

◆ ARMOR_COLOR_B

#define ARMOR_COLOR_B   .2

Definition at line 21 of file _gadget_armor.csc.

◆ ARMOR_COLOR_G

#define ARMOR_COLOR_G   .3

Definition at line 20 of file _gadget_armor.csc.

◆ ARMOR_COLOR_R

#define ARMOR_COLOR_R   .3

Definition at line 19 of file _gadget_armor.csc.

◆ ARMOR_EXPANSION

#define ARMOR_EXPANSION   .3

Definition at line 22 of file _gadget_armor.csc.

◆ ARMOR_MATERIAL

#define ARMOR_MATERIAL   "mc/mtl_power_armor"

Definition at line 18 of file _gadget_armor.csc.

Function Documentation

◆ __init__()

◆ armor_get_shader_color()

function armor_get_shader_color ( armorStatusNew  )

Definition at line 95 of file _gadget_armor.csc.

References ARMOR_COLOR_B, ARMOR_COLOR_G, and ARMOR_COLOR_R.

Referenced by armor_update_shader_event().

◆ armor_is_local_player()

function armor_is_local_player ( localClientNum  )

Definition at line 189 of file _gadget_armor.csc.

Referenced by armor_update_fx_event().

◆ armor_overlay_transition_fx()

function armor_overlay_transition_fx ( localClientNum  ,
armorStatusNew   
)

Definition at line 146 of file _gadget_armor.csc.

References ARMOR_STATUS_FULL, ARMOR_STATUS_OFF, and IS_TRUE.

◆ armor_update_fx_event()

function armor_update_fx_event ( localClientNum  ,
doArmorFx   
)

Definition at line 127 of file _gadget_armor.csc.

References armor_is_local_player().

Referenced by player_armor_changed_event(), and player_damage_type_changed().

◆ armor_update_shader_event()

function armor_update_shader_event ( localClientNum  ,
armorStatusNew   
)

◆ on_local_player_spawned()

function on_local_player_spawned ( localClientNum  )

Definition at line 35 of file _gadget_armor.csc.

References get(), and player_armor_changed_event().

Referenced by __init__().

◆ player_armor_changed()

function player_armor_changed ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 50 of file _gadget_armor.csc.

References player_armor_changed_event().

Referenced by __init__().

◆ player_armor_changed_event()

function player_armor_changed_event ( localClientNum  ,
newVal   
)

◆ player_damage_type_changed()

function player_damage_type_changed ( localClientNum  ,
oldVal  ,
newVal  ,
bNewEnt  ,
bInitialSnap  ,
fieldName  ,
bWasTimeJump   
)

Definition at line 45 of file _gadget_armor.csc.

References armor_update_fx_event().

Referenced by __init__().