Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
injuryhandler.c File Reference

Go to the source code of this file.

Data Structures

class  InjuryHandlerThresholds
 
class  InjuryAnimValues
 

Enumerations

enum  eInjuryHandlerLevels {
  PRISTINE, WORN, DAMAGED, BADLY_DAMAGED,
  RUINED
}
 

Functions

void InjuryAnimationHandler (PlayerBase player)
 
bool IsInjuryAnimEnabled ()
 
float GetInjuryAnimValue ()
 
ScriptInvoker GetInvoker ()
 
void Update (float deltaT)
 
eInjuryHandlerLevels GetOverrideLevel (eInjuryHandlerLevels unchanged_level)
 
void CheckValue (bool forceUpdate=false)
 
void Synchronize (eInjuryHandlerLevels level)
 
void SendValue (eInjuryHandlerLevels level)
 
void SetInjuryCommandParams (bool enable, eInjuryHandlerLevels level)
 
eInjuryHandlerLevels GetInjuryLevel (float health)
 
float GetInjuryValue (eInjuryHandlerLevels level)
 

Variables

enum eInjuryHandlerLevels NONE = 0
 MUST BE POW2. More...
 
enum eInjuryHandlerLevels MORPHINE = 1
 
enum eInjuryHandlerLevels PAIN_KILLERS_LVL0 = 2
 
enum eInjuryHandlerLevels PAIN_KILLERS_LVL1 = 4
 
enum eInjuryHandlerLevels BROKEN_LEGS = 8
 
enum eInjuryHandlerLevels BROKEN_LEGS_SPLINT = 16
 
enum eInjuryHandlerLevels PRONE_ANIM_OVERRIDE = 32
 
enum eInjuryHandlerLevels VALUE_CHECK_INTERVAL = 5
 
const float SENSITIVTY_PERCENTAGE = 1
 
ref ScriptInvoker m_ChangedStateInvoker = new ScriptInvoker()
 
float m_TimeSinceLastTick = VALUE_CHECK_INTERVAL + 1
 
float m_LastUpdate
 
eInjuryHandlerLevels m_LastHealthUpdate
 
float m_HealthMaxValue
 
private PlayerBase m_Player
 
private bool m_AnimationChange = false
 owner More...
 
private bool m_InjuryAnimEnabled = false
 
private float m_InjuryAnimDamageValue = 0
 
int m_ForceInjuryAnimMask
 

Enumeration Type Documentation

◆ eInjuryHandlerLevels

Enumerator
PRISTINE 
WORN 
DAMAGED 
BADLY_DAMAGED 
RUINED 

Definition at line 18 of file injuryhandler.c.

Function Documentation

◆ CheckValue()

void CheckValue ( bool  forceUpdate = false)

Definition at line 154 of file injuryhandler.c.

◆ GetInjuryAnimValue()

float GetInjuryAnimValue ( )

Definition at line 70 of file injuryhandler.c.

◆ GetInjuryLevel()

eInjuryHandlerLevels GetInjuryLevel ( float  health)

Definition at line 192 of file injuryhandler.c.

◆ GetInjuryValue()

float GetInjuryValue ( eInjuryHandlerLevels  level)

Definition at line 218 of file injuryhandler.c.

◆ GetInvoker()

ScriptInvoker GetInvoker ( )

Definition at line 75 of file injuryhandler.c.

◆ GetOverrideLevel()

eInjuryHandlerLevels GetOverrideLevel ( eInjuryHandlerLevels  unchanged_level)

Definition at line 100 of file injuryhandler.c.

◆ InjuryAnimationHandler()

void InjuryAnimationHandler ( PlayerBase  player)

Definition at line 59 of file injuryhandler.c.

◆ IsInjuryAnimEnabled()

bool IsInjuryAnimEnabled ( )

Definition at line 65 of file injuryhandler.c.

◆ SendValue()

void SendValue ( eInjuryHandlerLevels  level)

Definition at line 180 of file injuryhandler.c.

◆ SetInjuryCommandParams()

void SetInjuryCommandParams ( bool  enable,
eInjuryHandlerLevels  level 
)

Definition at line 185 of file injuryhandler.c.

◆ Synchronize()

void Synchronize ( eInjuryHandlerLevels  level)

Definition at line 173 of file injuryhandler.c.

◆ Update()

void Update ( float  deltaT)

Definition at line 80 of file injuryhandler.c.

Variable Documentation

◆ BROKEN_LEGS

enum eInjuryHandlerLevels BROKEN_LEGS = 8

◆ BROKEN_LEGS_SPLINT

enum eInjuryHandlerLevels BROKEN_LEGS_SPLINT = 16

◆ m_AnimationChange

private bool m_AnimationChange = false

owner

Definition at line 54 of file injuryhandler.c.

◆ m_ChangedStateInvoker

ref ScriptInvoker m_ChangedStateInvoker = new ScriptInvoker()

Definition at line 45 of file injuryhandler.c.

◆ m_ForceInjuryAnimMask

int m_ForceInjuryAnimMask

Definition at line 57 of file injuryhandler.c.

◆ m_HealthMaxValue

float m_HealthMaxValue

Definition at line 50 of file injuryhandler.c.

◆ m_InjuryAnimDamageValue

private float m_InjuryAnimDamageValue = 0

Definition at line 56 of file injuryhandler.c.

◆ m_InjuryAnimEnabled

private bool m_InjuryAnimEnabled = false

Definition at line 55 of file injuryhandler.c.

◆ m_LastHealthUpdate

eInjuryHandlerLevels m_LastHealthUpdate

Definition at line 49 of file injuryhandler.c.

◆ m_LastUpdate

float m_LastUpdate

Definition at line 48 of file injuryhandler.c.

◆ m_Player

private PlayerBase m_Player

Definition at line 53 of file injuryhandler.c.

◆ m_TimeSinceLastTick

float m_TimeSinceLastTick = VALUE_CHECK_INTERVAL + 1

Definition at line 47 of file injuryhandler.c.

◆ MORPHINE

enum eInjuryHandlerLevels MORPHINE = 1

◆ NONE

enum eInjuryHandlerLevels NONE = 0

MUST BE POW2.

◆ PAIN_KILLERS_LVL0

enum eInjuryHandlerLevels PAIN_KILLERS_LVL0 = 2

◆ PAIN_KILLERS_LVL1

enum eInjuryHandlerLevels PAIN_KILLERS_LVL1 = 4

◆ PRONE_ANIM_OVERRIDE

enum eInjuryHandlerLevels PRONE_ANIM_OVERRIDE = 32

◆ SENSITIVTY_PERCENTAGE

const float SENSITIVTY_PERCENTAGE = 1

Definition at line 43 of file injuryhandler.c.

◆ VALUE_CHECK_INTERVAL

enum eInjuryHandlerLevels VALUE_CHECK_INTERVAL = 5