DayZ 1.24
Loading...
Searching...
No Matches
ActionBurnSewTarget Class Reference
Inheritance diagram for ActionBurnSewTarget:
[legend]
Collaboration diagram for ActionBurnSewTarget:
[legend]

Private Member Functions

void ActionBurnSewTarget ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 9 of file ActionBurnSewTarget.c.

Constructor & Destructor Documentation

◆ ActionBurnSewTarget()

void ActionBurnSewTarget::ActionBurnSewTarget ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

override bool ActionBurnSewTarget::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 24 of file ActionBurnSewTarget.c.

25 {
26 if (item.GetTemperature() > 80)
27 return true;
28 else
29 return false;
30 }

◆ CreateConditionComponents()

override void ActionBurnSewTarget::CreateConditionComponents ( )
inlineprivate

Definition at line 18 of file ActionBurnSewTarget.c.

19 {
22 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCTMan.c:2
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ OnFinishProgressServer()

override void ActionBurnSewTarget::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 32 of file ActionBurnSewTarget.c.

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 }
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:594

References CanReceiveAction(), and m_SpecialtyWeight.


The documentation for this class was generated from the following file: