Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
DebugMonitorValues Class Reference

Private Member Functions

void DebugMonitorValues (PlayerBase player)
void CheckBlood ()
void CheckHealth ()
void CheckLastDamage ()
void CheckValues ()
float GetBlood ()
float GetHealth ()
string GetLastDamage ()
void Init ()
void OnRPCFloat (ParamsReadContext ctx)
void OnRPCString (ParamsReadContext ctx)
void OnScheduledTick (float deltatime)
void ReceiveValue (int value_type, Param param)
void SendValue (int value_type, Param param)
void SetLastDamage (string value)

Private Attributes

const int LAST_DAMAGE_FALL = 1
const int LAST_DAMAGE_HIT = 2
float m_BloodClient
float m_BloodMaxValue
string m_CurrentLastDamage
float m_HealthClient
float m_HealthMaxValue
float m_LastBloodUpdate
string m_LastDamageClient
string m_lastDamageUpdate
float m_LastHealthUpdate
PlayerBase m_Player
float m_TimeSinceLastTick = VALUE_CHECK_INTERVAL + 1
const float SENSITIVTY_PERCENTAGE = 1
const int TYPE_BLOOD = 2
const int TYPE_BODY_TEMP = 3
const int TYPE_HEALTH = 1
const int TYPE_LAST_DAMAGE = 5
const int TYPE_POSITION = 4
const float VALUE_CHECK_INTERVAL = 1

Detailed Description

Definition at line 1 of file debugmonitorvalues.c.

Constructor & Destructor Documentation

◆ DebugMonitorValues()

void DebugMonitorValues ( PlayerBase player)
inlineprivate

Definition at line 31 of file debugmonitorvalues.c.

References Init(), and m_Player.

Referenced by ReceiveValue(), and SendValue().

Member Function Documentation

◆ CheckBlood()

void CheckBlood ( )
inlineprivate

◆ CheckHealth()

void CheckHealth ( )
inlineprivate

◆ CheckLastDamage()

void CheckLastDamage ( )
inlineprivate

Definition at line 116 of file debugmonitorvalues.c.

References m_CurrentLastDamage, m_lastDamageUpdate, SendValue(), and TYPE_LAST_DAMAGE.

Referenced by CheckValues().

◆ CheckValues()

void CheckValues ( )
inlineprivate

Definition at line 57 of file debugmonitorvalues.c.

References CheckBlood(), CheckHealth(), and CheckLastDamage().

Referenced by OnScheduledTick().

◆ GetBlood()

float GetBlood ( )
inlineprivate

Definition at line 64 of file debugmonitorvalues.c.

References m_BloodClient.

Referenced by MissionBase::UpdateDebugMonitor().

◆ GetHealth()

float GetHealth ( )
inlineprivate

Definition at line 69 of file debugmonitorvalues.c.

References m_HealthClient.

Referenced by MissionBase::UpdateDebugMonitor().

◆ GetLastDamage()

string GetLastDamage ( )
inlineprivate

Definition at line 74 of file debugmonitorvalues.c.

References m_LastDamageClient.

Referenced by MissionBase::UpdateDebugMonitor().

◆ Init()

void Init ( )
inlineprivate

Definition at line 37 of file debugmonitorvalues.c.

References m_BloodMaxValue, m_HealthMaxValue, and m_Player.

Referenced by DebugMonitorValues().

◆ OnRPCFloat()

void OnRPCFloat ( ParamsReadContext ctx)
inlineprivate

◆ OnRPCString()

void OnRPCString ( ParamsReadContext ctx)
inlineprivate

◆ OnScheduledTick()

void OnScheduledTick ( float deltatime)
inlineprivate

Definition at line 43 of file debugmonitorvalues.c.

References CheckValues(), g_Game, m_TimeSinceLastTick, and VALUE_CHECK_INTERVAL.

◆ ReceiveValue()

void ReceiveValue ( int value_type,
Param param )
inlineprivate

◆ SendValue()

void SendValue ( int value_type,
Param param )
inlineprivate

◆ SetLastDamage()

void SetLastDamage ( string value)
inlineprivate

Definition at line 79 of file debugmonitorvalues.c.

References m_CurrentLastDamage.

Field Documentation

◆ LAST_DAMAGE_FALL

const int LAST_DAMAGE_FALL = 1
private

Definition at line 9 of file debugmonitorvalues.c.

◆ LAST_DAMAGE_HIT

const int LAST_DAMAGE_HIT = 2
private

Definition at line 10 of file debugmonitorvalues.c.

◆ m_BloodClient

float m_BloodClient
private

Definition at line 27 of file debugmonitorvalues.c.

Referenced by GetBlood(), and ReceiveValue().

◆ m_BloodMaxValue

float m_BloodMaxValue
private

Definition at line 25 of file debugmonitorvalues.c.

Referenced by CheckBlood(), and Init().

◆ m_CurrentLastDamage

string m_CurrentLastDamage
private

Definition at line 18 of file debugmonitorvalues.c.

Referenced by CheckLastDamage(), and SetLastDamage().

◆ m_HealthClient

float m_HealthClient
private

Definition at line 28 of file debugmonitorvalues.c.

Referenced by GetHealth(), and ReceiveValue().

◆ m_HealthMaxValue

float m_HealthMaxValue
private

Definition at line 24 of file debugmonitorvalues.c.

Referenced by CheckHealth(), and Init().

◆ m_LastBloodUpdate

float m_LastBloodUpdate
private

Definition at line 21 of file debugmonitorvalues.c.

Referenced by CheckBlood().

◆ m_LastDamageClient

string m_LastDamageClient
private

Definition at line 29 of file debugmonitorvalues.c.

Referenced by GetLastDamage(), and ReceiveValue().

◆ m_lastDamageUpdate

string m_lastDamageUpdate
private

Definition at line 22 of file debugmonitorvalues.c.

Referenced by CheckLastDamage().

◆ m_LastHealthUpdate

float m_LastHealthUpdate
private

Definition at line 20 of file debugmonitorvalues.c.

Referenced by CheckHealth().

◆ m_Player

Definition at line 15 of file debugmonitorvalues.c.

Referenced by DebugMonitorValues(), CheckBlood(), CheckHealth(), Init(), and SendValue().

◆ m_TimeSinceLastTick

float m_TimeSinceLastTick = VALUE_CHECK_INTERVAL + 1
private

Definition at line 16 of file debugmonitorvalues.c.

Referenced by OnScheduledTick().

◆ SENSITIVTY_PERCENTAGE

const float SENSITIVTY_PERCENTAGE = 1
private

Definition at line 13 of file debugmonitorvalues.c.

Referenced by CheckBlood(), and CheckHealth().

◆ TYPE_BLOOD

const int TYPE_BLOOD = 2
private

Definition at line 4 of file debugmonitorvalues.c.

Referenced by CheckBlood().

◆ TYPE_BODY_TEMP

const int TYPE_BODY_TEMP = 3
private

Definition at line 5 of file debugmonitorvalues.c.

◆ TYPE_HEALTH

const int TYPE_HEALTH = 1
private

Definition at line 3 of file debugmonitorvalues.c.

Referenced by CheckHealth().

◆ TYPE_LAST_DAMAGE

const int TYPE_LAST_DAMAGE = 5
private

Definition at line 7 of file debugmonitorvalues.c.

Referenced by CheckLastDamage().

◆ TYPE_POSITION

const int TYPE_POSITION = 4
private

Definition at line 6 of file debugmonitorvalues.c.

◆ VALUE_CHECK_INTERVAL

const float VALUE_CHECK_INTERVAL = 1
private

Definition at line 12 of file debugmonitorvalues.c.

Referenced by OnScheduledTick().


The documentation for this class was generated from the following file: