‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
_zm_playerhealth.csc
Go to the documentation of this file.
1 #using scripts\shared\system_shared;
2 #using scripts\codescripts\struct;
3 #using scripts\shared\visionset_mgr_shared;
4 #using scripts\shared\clientfield_shared;
5 
6 #insert scripts\shared\shared.gsh;
7 #insert scripts\shared\version.gsh;
8 #insert scripts\zm\_zm_playerhealth.gsh;
9 
10 #namespace zm_playerhealth;
11 
12 ‪REGISTER_SYSTEM( "zm_playerhealth", &‪__init__, undefined )
13 
14 function ‪__init__()
15 {
17 
29 }
30 
31 function ‪sndZombieHealth(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
32 {
33  if( newVal )
34  {
35  if( !isdefined( self.sndZombieHealthID ) )
36  {
37  playsound( 0, "zmb_health_lowhealth_enter", self.origin );
38  self.sndZombieHealthID = self playloopsound( "zmb_health_lowhealth_loop" );
39  }
40  }
41  else
42  {
43  if( isdefined( self.sndZombieHealthID ) )
44  {
45  self stoploopsound( self.sndZombieHealthID );
46  self.sndZombieHealthID = undefined;
47  if( !‪IS_TRUE( self.inLastStand ) )
48  {
49  playsound( 0, "zmb_health_lowhealth_exit", self.origin );
50  }
51  }
52  }
53 }
‪CF_CALLBACK_ZERO_ON_NEW_ENT
‪#define CF_CALLBACK_ZERO_ON_NEW_ENT
Definition: version.gsh:103
‪VERSION_SHIP
‪#define VERSION_SHIP
Definition: version.gsh:36
‪ZM_HEALTH_BLUR_OVERLAY_OUTER_RADIUS
‪#define ZM_HEALTH_BLUR_OVERLAY_OUTER_RADIUS
Definition: _zm_playerhealth.gsh:9
‪ZM_HEALTH_BLUR_SCREEN_EFFECT_NAME
‪#define ZM_HEALTH_BLUR_SCREEN_EFFECT_NAME
Definition: _zm_playerhealth.gsh:3
‪IS_TRUE
‪#define IS_TRUE(__a)
Definition: shared.gsh:251
‪ZM_HEALTH_BLUR_OVERLAY_SHOULD_OFFSET
‪#define ZM_HEALTH_BLUR_OVERLAY_SHOULD_OFFSET
Definition: _zm_playerhealth.gsh:12
‪ZM_HEALTH_BLUR_OVERLAY_TIME_FADE_IN
‪#define ZM_HEALTH_BLUR_OVERLAY_TIME_FADE_IN
Definition: _zm_playerhealth.gsh:13
‪ZM_HEALTH_BLUR_OVERLAY_TIME_FADE_OUT
‪#define ZM_HEALTH_BLUR_OVERLAY_TIME_FADE_OUT
Definition: _zm_playerhealth.gsh:14
‪CF_HOST_ONLY
‪#define CF_HOST_ONLY
Definition: version.gsh:102
‪REGISTER_SYSTEM
‪#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition: shared.gsh:204
‪VERSION_DLC5
‪#define VERSION_DLC5
Definition: version.gsh:99
‪ZM_HEALTH_BLUR_OVERLAY_LERP_COUNT
‪#define ZM_HEALTH_BLUR_OVERLAY_LERP_COUNT
Definition: _zm_playerhealth.gsh:6
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪__init__
‪function __init__()
Definition: _zm_playerhealth.csc:14
‪register_overlay_info_style_speed_blur
‪function register_overlay_info_style_speed_blur(name, version, lerp_step_count, amount, inner_radius, outer_radius, velocity_should_scale, velocity_scale, blur_in, blur_out, should_offset)
Definition: visionset_mgr_shared.csc:155
‪sndZombieHealth
‪function sndZombieHealth(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: _zm_playerhealth.csc:31
‪ZM_HEALTH_BLUROVERLAY_INNER_RADIUS
‪#define ZM_HEALTH_BLUROVERLAY_INNER_RADIUS
Definition: _zm_playerhealth.gsh:8
‪ZM_HEALTH_BLUR_OVERLAY_BLUR_AMOUNT
‪#define ZM_HEALTH_BLUR_OVERLAY_BLUR_AMOUNT
Definition: _zm_playerhealth.gsh:7
‪ZM_HEALTH_BLUR_OVERLAY_SHOULD_VELOCITY_SCALE
‪#define ZM_HEALTH_BLUR_OVERLAY_SHOULD_VELOCITY_SCALE
Definition: _zm_playerhealth.gsh:10