Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actionburnsewself.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.SEW_WOUNDS);
6 }
7};
8
11{
13 {
15 m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_MEDIUM;
16 m_Text = "#treat_wound";
17 }
18
19 override void CreateConditionComponents()
20 {
23 }
24
25 override bool HasTarget()
26 {
27 return false;
28 }
29
30 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
31 {
32 if ( item.GetTemperature() > 80 )
33 {
34 return true;
35 }
36 else
37 {
38 return false;
39 }
40 }
41
42 override void OnFinishProgressServer( ActionData action_data )
43 {
44 const float ITEM_DAMAGE = 5;
45 const float SHOCK_AMOUNT = 1000;
46
47 if (action_data.m_Player.GetBleedingManagerServer() )
48 {
49 action_data.m_Player.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(action_data.m_MainItem);
50 }
51 //OlD_SHOCK//action_data.m_Player.GetStatShock().Add( action_data.m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus( SHOCK_AMOUNT, this.GetSpecialtyWeight() ) );
52 action_data.m_MainItem.DecreaseHealth("", "", ITEM_DAMAGE);
53 }
54};
ActionData m_ActionData
float m_SpecialtyWeight
Definition actionbase.c:77
string m_Text
Definition actionbase.c:58
ref CCIBase m_ConditionItem
Definition actionbase.c:64
ref CCTBase m_ConditionTarget
Definition actionbase.c:65