Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionburnsewtarget.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 ActionBurnSewTarget()
12  {
13  m_CallbackClass = ActionBurnSewTargetCB;
14  m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_MEDIUM;
15  m_Text = "#treat_persons_wound";
16  }
17 
18  override void CreateConditionComponents()
19  {
22  }
23 
24  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
25  {
26  if ( item.GetTemperature() > 80 )
27  {
28  return true;
29  }
30  else
31  {
32  return false;
33  }
34  }
35 
36  override void OnFinishProgressServer( ActionData action_data )
37  {
38  PlayerBase ntarget = PlayerBase.Cast(action_data.m_Target.GetObject());
39  if (CanReceiveAction(action_data.m_Target))
40  {
41  if (ntarget.GetBleedingManagerServer() )
42  {
43  ntarget.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(action_data.m_MainItem);
44  }
45  //OlD_SHOCK//ntarget.GetStatShock().Add(1000);
46  action_data.m_MainItem.DecreaseHealth ( "", "", 5 );
47 
48  action_data.m_Player.GetSoftSkillsManager().AddSpecialty( m_SpecialtyWeight );
49 
50  }
51  }
52 };
ItemBase
Definition: inventoryitem.c:730
CAContinuousTime
Definition: cacontinuoustime.c:1
CCTMan
Definition: cctman.c:1
UASoftSkillsWeight
Definition: actionconstants.c:118
UAMaxDistances
Definition: actionconstants.c:104
ActionBurnSewTargetCB
Definition: actionburnsewtarget.c:1
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition: actionbase.c:20
ActionBurnSewTarget
Definition: actionburnsewtarget.c:9
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
CanReceiveAction
bool CanReceiveAction(ActionTarget target)
Definition: actionbase.c:638