DayZ 1.24
Loading...
Searching...
No Matches
ActionBurnSewTarget.c
Go to the documentation of this file.
8
10{
17
23
24 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
25 {
26 if (item.GetTemperature() > 80)
27 return true;
28 else
29 return false;
30 }
31
33 {
34 PlayerBase ntarget = PlayerBase.Cast(action_data.m_Target.GetObject());
35 if (CanReceiveAction(action_data.m_Target))
36 {
37 if (ntarget.GetBleedingManagerServer())
38 ntarget.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(action_data.m_MainItem);
39 //OlD_SHOCK//ntarget.GetStatShock().Add(1000);
40 action_data.m_MainItem.DecreaseHealth("", "", 5);
41
42 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
43
44 }
45 }
46};
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
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:594
ActionData m_ActionData
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
ref CABase m_ActionComponent
Definition ActionBase.c:30
Definition CCTMan.c:2
const float DEFAULT
const float PRECISE_MEDIUM
const float SEW_WOUNDS