Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionburnsewself.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.SEW_WOUNDS);
6  }
7 };
8 
10 {
11  void ActionBurnSewSelf()
12  {
13  m_CallbackClass = ActionBurnSewSelfCB;
14  m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_MEDIUM;
15  m_Text = "#treat_wound";
16  }
17 
18  override void CreateConditionComponents()
19  {
22  }
23 
24  override bool HasTarget()
25  {
26  return false;
27  }
28 
29  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
30  {
31  if ( item.GetTemperature() > 80 )
32  {
33  return true;
34  }
35  else
36  {
37  return false;
38  }
39  }
40 
41  override void OnFinishProgressServer( ActionData action_data )
42  {
43  const float ITEM_DAMAGE = 0.05;
44  const float SHOCK_AMOUNT = 1000;
45 
46  if (action_data.m_Player.GetBleedingManagerServer() )
47  {
48  action_data.m_Player.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(action_data.m_MainItem);
49  }
50  //OlD_SHOCK//action_data.m_Player.GetStatShock().Add( action_data.m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus( SHOCK_AMOUNT, this.GetSpecialtyWeight() ) );
51  action_data.m_MainItem.DecreaseHealth ( "", "", action_data.m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus( ITEM_DAMAGE, this.GetSpecialtyWeight() )*100 );
52  action_data.m_Player.GetSoftSkillsManager().AddSpecialty( m_SpecialtyWeight );
53  }
54 };
ItemBase
Definition: inventoryitem.c:730
CAContinuousTime
Definition: cacontinuoustime.c:1
ActionBurnSewSelf
Definition: actionburnsewself.c:9
UASoftSkillsWeight
Definition: actionconstants.c:118
ActionBurnSewSelfCB
Definition: actionburnsewself.c:1
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition: actionbase.c:20
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