Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionmeasuretemperatureself.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.MEASURE_TEMP);
6  }
7 };
8 
10 {
12  {
13  m_CallbackClass = ActionMeasureTemperatureSelfCB;
14  m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_TAKETEMPSELF;
15  m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_TAKETEMPSELF;
17  m_Text = "#measure_temperature";
18  }
19 
20  override void CreateConditionComponents()
21  {
24  }
25 
26  override bool HasProneException()
27  {
28  return true;
29  }
30 
31  override bool HasTarget()
32  {
33  return false;
34  }
35 
36  override void OnFinishProgressClient( ActionData action_data )
37  {
38  Thermometer thermometer = Thermometer.Cast(action_data.m_MainItem);
39 
40  if (thermometer)
41  {
42  float value = thermometer.GetTemperatureValue(action_data.m_Player);
43  action_data.m_Player.m_Hud.SetTemperature(value.ToString() + "#degrees_celsius");
44  }
45 
46  }
47 };
CAContinuousTime
Definition: cacontinuoustime.c:1
UASoftSkillsWeight
Definition: actionconstants.c:118
ActionMeasureTemperatureSelf
Definition: actionmeasuretemperatureself.c:9
ActionMeasureTemperatureSelfCB
Definition: actionmeasuretemperatureself.c:1
ActionData
Definition: actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
CCTSelf
Definition: cctself.c:1
UATimeSpent
Definition: actionconstants.c:26
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
m_Text
protected string m_Text
Definition: actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
ActionContinuousBase
Definition: actioncontinuousbase.c:132
CCINonRuined
Definition: ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
m_SpecialtyWeight
protected float m_SpecialtyWeight
Definition: actionbase.c:68