Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actiongivesalinetarget.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.SALINE);
6  }
7 };
8 
10 {
12  {
13  m_CallbackClass = ActionGiveSalineTargetCB;
14  m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_MEDIUM;
15 
16  m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_SALINEBLOODBAGTARGET;
17  m_FullBody = true;
18  m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
19  m_Text = "#give_saline_person";
20  }
21 
22  override void CreateConditionComponents()
23  {
24 
26  m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT);
27  }
28 
29  override void OnFinishProgressServer( ActionData action_data )
30  {
31  PlayerBase ntarget = PlayerBase.Cast( action_data.m_Target.GetObject() );
32  Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );
33  float delta = nacdata.param1;
34 
35  ntarget.GetModifiersManager().ActivateModifier(eModifiers.MDF_SALINE);
36 
37  action_data.m_Player.GetSoftSkillsManager().AddSpecialty( m_SpecialtyWeight );
38 
39  action_data.m_MainItem.Delete();
40  }
41 };
CAContinuousTime
Definition: cacontinuoustime.c:1
CCTMan
Definition: cctman.c:1
UASoftSkillsWeight
Definition: actionconstants.c:118
UAMaxDistances
Definition: actionconstants.c:104
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
ActionGiveSalineTarget
Definition: actiongivesalinetarget.c:9
eModifiers
eModifiers
Definition: emodifiers.c:1
UATimeSpent
Definition: actionconstants.c:26
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
ActionGiveSalineTargetCB
Definition: actiongivesalinetarget.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
m_StanceMask
protected int m_StanceMask
Definition: actionbase.c:53