Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class ACE_Medical_VitalsComponent : ScriptComponent
protected float m_fMeanArterialPressureKPA;
protected float m_fPulsePressureKPA;

protected float m_fCoreTemperature;

protected float m_fHeartRateMedicationAdjustment = 0;
protected float m_fSystemicVascularResistanceMedicationAdjustment = 0;
protected float m_fReviveSuccessCheckTimerScale = 1;
Expand Down Expand Up @@ -214,6 +216,19 @@ class ACE_Medical_VitalsComponent : ScriptComponent
return m_fReviveSuccessCheckTimerScale;
}


//------------------------------------------------------------------------------------------------
//! Sets body temperature in K
void SetTemperature(float temperature)
{
m_fCoreTemperature = temperature;
}
//------------------------------------------------------------------------------------------------
//! Returns body temperature in K
float GetTemperature()
{
return m_fCoreTemperature;
}
//------------------------------------------------------------------------------------------------
//! Resets vitals to defaults
void Reset()
Expand All @@ -231,6 +246,7 @@ class ACE_Medical_VitalsComponent : ScriptComponent
SetHeartRateMedicationAdjustment(0);
SetSystemicVascularResistenceMedicationAdjustment(0);
SetReviveSuccessCheckTimerScale(1);
SetTemperature(310.15);

ClearReviveHistory();

Expand Down