DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
HeatComfortAnimHandler Class Reference

Private Member Functions

void HeatComfortAnimHandler (PlayerBase player)
 
void Update (float delta_time, HumanMovementState hms)
 
void Process (float delta_time)
 
private void ProcessHot (float hcValue)
 
private void ProcessFreeze (float hcValue)
 
private void ProcessFreezeRattle (float hcValue)
 
private float GetEventTime (float hcValue, float threshold_low, float thresholdHigh, float lowMin, float highMin, float lowMax, float highMax)
 

Private Attributes

const float TICK_INTERVAL = 2
 
float m_TimeSinceLastTick
 
float m_ProcessTimeAccuFreeze
 
float m_ProcessTimeAccuFreezeRattle
 
float m_ProcessTimeAccuHot
 
PlayerBase m_Player
 
float m_EventTimeFreezeRattle = -1
 
float m_EventTimeFreeze = -1
 
float m_EventTimeHot = -1
 
protected ref HumanMovementState m_MovementState = new HumanMovementState()
 
const float TIME_INTERVAL_HC_MINUS_LOW_MIN = 12
 
const float TIME_INTERVAL_HC_MINUS_HIGH_MIN = 25
 
const float TIME_INTERVAL_HC_MINUS_LOW_MAX = 20
 
const float TIME_INTERVAL_HC_MINUS_HIGH_MAX = 40
 
const float TIME_INTERVAL_HC_PLUS_LOW_MIN = 12
 
const float TIME_INTERVAL_HC_PLUS_HIGH_MIN = 25
 
const float TIME_INTERVAL_HC_PLUS_LOW_MAX = 20
 
const float TIME_INTERVAL_HC_PLUS_HIGH_MAX = 40
 

Constructor & Destructor Documentation

◆ HeatComfortAnimHandler()

void HeatComfortAnimHandler ( PlayerBase  player)
inlineprivate

Member Function Documentation

◆ GetEventTime()

private 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 
)
inlineprivate

Field Documentation

◆ m_EventTimeFreeze

float m_EventTimeFreeze = -1
private

Referenced by Process(), and ProcessFreeze().

◆ m_EventTimeFreezeRattle

float m_EventTimeFreezeRattle = -1
private

Referenced by Process(), and ProcessFreezeRattle().

◆ m_EventTimeHot

float m_EventTimeHot = -1
private

Referenced by Process(), and ProcessHot().

◆ m_MovementState

protected ref HumanMovementState m_MovementState = new HumanMovementState()
private

◆ m_Player

◆ m_ProcessTimeAccuFreeze

float m_ProcessTimeAccuFreeze
private

Referenced by Process(), and ProcessFreeze().

◆ m_ProcessTimeAccuFreezeRattle

float m_ProcessTimeAccuFreezeRattle
private

Referenced by Process(), and ProcessFreezeRattle().

◆ m_ProcessTimeAccuHot

float m_ProcessTimeAccuHot
private

Referenced by Process(), and ProcessHot().

◆ m_TimeSinceLastTick

float m_TimeSinceLastTick
private

Referenced by Update().

◆ TICK_INTERVAL

const float TICK_INTERVAL = 2
private

Referenced by Update().

◆ TIME_INTERVAL_HC_MINUS_HIGH_MAX

const float TIME_INTERVAL_HC_MINUS_HIGH_MAX = 40
private

◆ TIME_INTERVAL_HC_MINUS_HIGH_MIN

const float TIME_INTERVAL_HC_MINUS_HIGH_MIN = 25
private

◆ TIME_INTERVAL_HC_MINUS_LOW_MAX

const float TIME_INTERVAL_HC_MINUS_LOW_MAX = 20
private

◆ TIME_INTERVAL_HC_MINUS_LOW_MIN

const float TIME_INTERVAL_HC_MINUS_LOW_MIN = 12
private

◆ TIME_INTERVAL_HC_PLUS_HIGH_MAX

const float TIME_INTERVAL_HC_PLUS_HIGH_MAX = 40
private

Referenced by ProcessHot().

◆ TIME_INTERVAL_HC_PLUS_HIGH_MIN

const float TIME_INTERVAL_HC_PLUS_HIGH_MIN = 25
private

Referenced by ProcessHot().

◆ TIME_INTERVAL_HC_PLUS_LOW_MAX

const float TIME_INTERVAL_HC_PLUS_LOW_MAX = 20
private

Referenced by ProcessHot().

◆ TIME_INTERVAL_HC_PLUS_LOW_MIN

const float TIME_INTERVAL_HC_PLUS_LOW_MIN = 12
private

Referenced by ProcessHot().


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