DayZ 1.24
Loading...
Searching...
No Matches
ActionGiveSalineSelf.c
Go to the documentation of this file.
8
10{
12 {
15
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_SALINEBLOODBAG;
17 m_FullBody = true;
18 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
19 m_Text = "#give_saline";
20 }
21
27
28 override bool HasTarget()
29 {
30 return false;
31 }
32
34 {
35 action_data.m_MainItem.TransferModifiers(action_data.m_Player);
36 Param1<float> nacdata = Param1<float>.Cast(action_data.m_ActionComponent.GetACData());
37 float delta = nacdata.param1;
38 action_data.m_Player.GetModifiersManager().ActivateModifier(eModifiers.MDF_SALINE);
39 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
40
41 action_data.m_MainItem.Delete();
42 }
43};
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
const float PRECISE_MEDIUM
const float SALINE
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
eModifiers
Definition eModifiers.c:2