DayZ 1.24
Loading...
Searching...
No Matches
ActionGiveSalineTarget.c
Go to the documentation of this file.
8
10{
12 {
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
28
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};
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 OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
Definition CCTMan.c:2
const float DEFAULT
const float PRECISE_MEDIUM
const float SALINE
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
eModifiers
Definition eModifiers.c:2