Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actiontestbloodself.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.TEST_BLOOD);
6  }
7 };
8 
10 {
11  void ActionTestBloodSelf()
12  {
13  m_CallbackClass = ActionTestBloodSelfCB;
14  m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15  m_FullBody = true;
16  m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18  m_Text = "#test_blood";
19  }
20 
21  override void CreateConditionComponents()
22  {
25  }
26 
27  override bool HasTarget()
28  {
29  return false;
30  }
31 
32  override void OnFinishProgressServer( ActionData action_data )
33  {
34  PluginLifespan module_lifespan = PluginLifespan.Cast( GetPlugin( PluginLifespan ) );
35  int blood_type = action_data.m_Player.GetStatBloodType().Get();
36 
37  module_lifespan.UpdateBloodType( action_data.m_Player, blood_type );
38  module_lifespan.UpdateBloodTypeVisibility( action_data.m_Player, true );
39 
40  action_data.m_MainItem.Delete();
41  action_data.m_Player.GetSoftSkillsManager().AddSpecialty( m_SpecialtyWeight );
42  }
43 };
CAContinuousTime
Definition: cacontinuoustime.c:1
UASoftSkillsWeight
Definition: actionconstants.c:118
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition: pluginmanager.c:316
m_FullBody
protected bool m_FullBody
Definition: actionbase.c:52
ActionData
Definition: actionbase.c:20
PluginLifespan
void PluginLifespan()
Definition: pluginlifespan.c:45
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
CCTSelf
Definition: cctself.c:1
UATimeSpent
Definition: actionconstants.c:26
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
ActionTestBloodSelf
Definition: actiontestbloodself.c:9
ActionTestBloodSelfCB
Definition: actiontestbloodself.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