Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actionburnsewtarget.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_persons_wound";
17 }
18
19 override void CreateConditionComponents()
20 {
23 }
24
25 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
26 {
27 if ( item.GetTemperature() > 80 )
28 {
29 return true;
30 }
31 else
32 {
33 return false;
34 }
35 }
36
37 override void OnFinishProgressServer( ActionData action_data )
38 {
39 PlayerBase ntarget = PlayerBase.Cast(action_data.m_Target.GetObject());
40 if (CanReceiveAction(action_data.m_Target))
41 {
42 if (ntarget.GetBleedingManagerServer() )
43 {
44 ntarget.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(action_data.m_MainItem);
45 }
46 //OlD_SHOCK//ntarget.GetStatShock().Add(1000);
47 action_data.m_MainItem.DecreaseHealth ( "", "", 5 );
48 }
49 }
50};
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
bool CanReceiveAction(ActionTarget target)
Definition actionbase.c:829
ref CCTBase m_ConditionTarget
Definition actionbase.c:65
Definition cctman.c:2