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

Protected Member Functions

void HeatComfortAnimHandler (PlayerBase player)
void Process (float delta_time)
void Update (float delta_time, HumanMovementState hms)

Protected Attributes

ref HumanMovementState m_MovementState = new HumanMovementState()
const float TIME_INTERVAL_HC_MINUS_HIGH_MAX = 40
const float TIME_INTERVAL_HC_MINUS_HIGH_MIN = 25
const float TIME_INTERVAL_HC_MINUS_LOW_MAX = 20
const float TIME_INTERVAL_HC_MINUS_LOW_MIN = 12
const float TIME_INTERVAL_HC_PLUS_HIGH_MAX = 40
const float TIME_INTERVAL_HC_PLUS_HIGH_MIN = 25
const float TIME_INTERVAL_HC_PLUS_LOW_MAX = 20
const float TIME_INTERVAL_HC_PLUS_LOW_MIN = 12

Private Member Functions

float GetEventTime (float hcValue, float threshold_low, float thresholdHigh, float lowMin, float highMin, float lowMax, float highMax)
void ProcessFreeze (float hcValue)
void ProcessFreezeRattle (float hcValue)
void ProcessHot (float hcValue)

Private Attributes

float m_EventTimeFreeze = -1
float m_EventTimeFreezeRattle = -1
float m_EventTimeHot = -1
PlayerBase m_Player
float m_ProcessTimeAccuFreeze
float m_ProcessTimeAccuFreezeRattle
float m_ProcessTimeAccuHot
float m_TimeSinceLastTick
const float TICK_INTERVAL = 2

Detailed Description

Definition at line 1 of file heatcomfortanimhandler.c.

Constructor & Destructor Documentation

◆ HeatComfortAnimHandler()

void HeatComfortAnimHandler ( PlayerBase player)
inlineprotected

Definition at line 30 of file heatcomfortanimhandler.c.

References m_Player.

Member Function Documentation

◆ GetEventTime()

float GetEventTime ( float hcValue,
float threshold_low,
float thresholdHigh,
float lowMin,
float highMin,
float lowMax,
float highMax )
inlineprivate

◆ Process()

◆ ProcessFreeze()

◆ ProcessFreezeRattle()

◆ ProcessHot()

◆ Update()

void Update ( float delta_time,
HumanMovementState hms )
inlineprotected

Definition at line 35 of file heatcomfortanimhandler.c.

References g_Game, m_TimeSinceLastTick, Process(), and TICK_INTERVAL.

Field Documentation

◆ m_EventTimeFreeze

float m_EventTimeFreeze = -1
private

Definition at line 13 of file heatcomfortanimhandler.c.

Referenced by Process(), and ProcessFreeze().

◆ m_EventTimeFreezeRattle

float m_EventTimeFreezeRattle = -1
private

Definition at line 12 of file heatcomfortanimhandler.c.

Referenced by Process(), and ProcessFreezeRattle().

◆ m_EventTimeHot

float m_EventTimeHot = -1
private

Definition at line 14 of file heatcomfortanimhandler.c.

Referenced by Process(), and ProcessHot().

◆ m_MovementState

ref HumanMovementState m_MovementState = new HumanMovementState()
protected

Definition at line 16 of file heatcomfortanimhandler.c.

◆ m_Player

◆ m_ProcessTimeAccuFreeze

float m_ProcessTimeAccuFreeze
private

Definition at line 6 of file heatcomfortanimhandler.c.

Referenced by Process(), and ProcessFreeze().

◆ m_ProcessTimeAccuFreezeRattle

float m_ProcessTimeAccuFreezeRattle
private

Definition at line 7 of file heatcomfortanimhandler.c.

Referenced by Process(), and ProcessFreezeRattle().

◆ m_ProcessTimeAccuHot

float m_ProcessTimeAccuHot
private

Definition at line 8 of file heatcomfortanimhandler.c.

Referenced by Process(), and ProcessHot().

◆ m_TimeSinceLastTick

float m_TimeSinceLastTick
private

Definition at line 5 of file heatcomfortanimhandler.c.

Referenced by Update().

◆ TICK_INTERVAL

const float TICK_INTERVAL = 2
private

Definition at line 3 of file heatcomfortanimhandler.c.

Referenced by Update().

◆ TIME_INTERVAL_HC_MINUS_HIGH_MAX

const float TIME_INTERVAL_HC_MINUS_HIGH_MAX = 40
protected

Definition at line 22 of file heatcomfortanimhandler.c.

Referenced by ProcessFreeze(), and ProcessFreezeRattle().

◆ TIME_INTERVAL_HC_MINUS_HIGH_MIN

const float TIME_INTERVAL_HC_MINUS_HIGH_MIN = 25
protected

Definition at line 19 of file heatcomfortanimhandler.c.

Referenced by ProcessFreeze(), and ProcessFreezeRattle().

◆ TIME_INTERVAL_HC_MINUS_LOW_MAX

const float TIME_INTERVAL_HC_MINUS_LOW_MAX = 20
protected

Definition at line 21 of file heatcomfortanimhandler.c.

Referenced by ProcessFreeze(), and ProcessFreezeRattle().

◆ TIME_INTERVAL_HC_MINUS_LOW_MIN

const float TIME_INTERVAL_HC_MINUS_LOW_MIN = 12
protected

Definition at line 18 of file heatcomfortanimhandler.c.

Referenced by ProcessFreeze(), and ProcessFreezeRattle().

◆ TIME_INTERVAL_HC_PLUS_HIGH_MAX

const float TIME_INTERVAL_HC_PLUS_HIGH_MAX = 40
protected

Definition at line 28 of file heatcomfortanimhandler.c.

Referenced by ProcessHot().

◆ TIME_INTERVAL_HC_PLUS_HIGH_MIN

const float TIME_INTERVAL_HC_PLUS_HIGH_MIN = 25
protected

Definition at line 25 of file heatcomfortanimhandler.c.

Referenced by ProcessHot().

◆ TIME_INTERVAL_HC_PLUS_LOW_MAX

const float TIME_INTERVAL_HC_PLUS_LOW_MAX = 20
protected

Definition at line 27 of file heatcomfortanimhandler.c.

Referenced by ProcessHot().

◆ TIME_INTERVAL_HC_PLUS_LOW_MIN

const float TIME_INTERVAL_HC_PLUS_LOW_MIN = 12
protected

Definition at line 24 of file heatcomfortanimhandler.c.

Referenced by ProcessHot().


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