Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actiondefibrilateself.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.DEFIBRILATE);
6  }
7 };
8 
10 {
12  {
13  m_CallbackClass = ActionDefibrilateSelfCB;
15  m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
16  m_FullBody = true;
17  m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18  m_Text = "#defibrilate_myself";
19  }
20 
21  override void CreateConditionComponents()
22  {
23 
26  }
27 
28  override bool HasTarget()
29  {
30  return false;
31  }
32 
33  override void OnFinishProgressClient( ActionData action_data )
34  {
35  Defibrillator defib;
36  PlayerBase player = action_data.m_Player;
37  Class.CastTo(defib, action_data.m_MainItem);
38 
39  DefibrillateClient(action_data.m_Player, defib);
40  }
41 
42  override void OnFinishProgressServer( ActionData action_data )
43  {
44  Defibrillator defib;
45  PlayerBase player = action_data.m_Player;
46  Class.CastTo(defib, action_data.m_MainItem);
47 
48  DefibrillateServer(action_data.m_Player, defib);
49  }
50 };
CAContinuousTime
Definition: cacontinuoustime.c:1
UASoftSkillsWeight
Definition: actionconstants.c:118
ActionDefibrilateBase
Definition: actiondefibrilatebase.c:1
ActionDefibrilateSelfCB
Definition: actiondefibrilateself.c:1
m_FullBody
protected bool m_FullBody
Definition: actionbase.c:52
PlayerBase
Definition: playerbaseclient.c:1
ActionData
Definition: actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
CCTSelf
Definition: cctself.c:1
ActionDefibrilateSelf
Definition: actiondefibrilateself.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
CCINonRuined
Definition: ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10
m_SpecialtyWeight
protected float m_SpecialtyWeight
Definition: actionbase.c:68
m_StanceMask
protected int m_StanceMask
Definition: actionbase.c:53