|
Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
3 const float WORN = 0.5;
4 const float DAMAGED = 0.3;
5 const float BADLY_DAMAGED = 0.2;
6 const float RUINED = 0.1;
12 const float LVL1 = 0.3;
13 const float LVL2 = 0.6;
14 const float LVL3 = 0.8;
108 return override_level;
140 float avgLegHealth =
m_Player.GetHealth(
"RightLeg",
"") +
m_Player.GetHealth(
"LeftLeg",
"") +
m_Player.GetHealth(
"RightFoot",
"") +
m_Player.GetHealth(
"LeftFoot",
"");
141 avgLegHealth *= 0.25;
144 else if (avgLegHealth >=
PlayerConstants.BROKEN_LEGS_HIGH_HEALTH_THRESHOLD)
150 return override_level;
243 Error(
"Undefined Injury level");
proto native CGame GetGame()
void Update(float deltaT)
enum eInjuryHandlerLevels BROKEN_LEGS_SPLINT
void Error(string err)
Messagebox with error message.
enum eInjuryHandlerLevels PAIN_KILLERS_LVL1
float m_TimeSinceLastTick
private bool m_InjuryAnimEnabled
void Synchronize(eInjuryHandlerLevels level)
float GetInjuryValue(eInjuryHandlerLevels level)
private bool m_AnimationChange
owner
enum eInjuryHandlerLevels VALUE_CHECK_INTERVAL
ref ScriptInvoker m_ChangedStateInvoker
enum eInjuryHandlerLevels PRONE_ANIM_OVERRIDE
enum eInjuryHandlerLevels NONE
MUST BE POW2.
enum eInjuryHandlerLevels PAIN_KILLERS_LVL0
void SendValue(eInjuryHandlerLevels level)
const float SENSITIVTY_PERCENTAGE
private PlayerBase m_Player
void SetInjuryCommandParams(bool enable, eInjuryHandlerLevels level)
void InjuryAnimationHandler(PlayerBase player)
int m_ForceInjuryAnimMask
eInjuryHandlerLevels m_LastHealthUpdate
private float m_InjuryAnimDamageValue
void CheckValue(bool forceUpdate=false)
enum eInjuryHandlerLevels MORPHINE
float GetInjuryAnimValue()
ScriptInvoker GetInvoker()
eInjuryHandlerLevels GetOverrideLevel(eInjuryHandlerLevels unchanged_level)
bool IsInjuryAnimEnabled()
eInjuryHandlerLevels GetInjuryLevel(float health)
enum eInjuryHandlerLevels BROKEN_LEGS
ScriptInvoker Class provide list of callbacks usage: