Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionburnsewself.c
Go to the documentation of this file.
1
class
ActionBurnSewSelfCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousTime
(
UATimeSpent
.
SEW_WOUNDS
);
6
}
7
};
8
10
class
ActionBurnSewSelf
:
ActionContinuousBase
11
{
12
void
ActionBurnSewSelf
()
13
{
14
m_CallbackClass
=
ActionBurnSewSelfCB
;
15
m_SpecialtyWeight
= UASoftSkillsWeight.PRECISE_MEDIUM;
16
m_Text
=
"#treat_wound"
;
17
}
18
19
override
void
CreateConditionComponents
()
20
{
21
m_ConditionItem
=
new
CCINonRuined
;
22
m_ConditionTarget
=
new
CCTSelf
;
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
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Definition
actionbase.c:83
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionBurnSewSelfCB
Definition
actionburnsewself.c:2
ActionBurnSewSelfCB::CreateActionComponent
override void CreateActionComponent()
Definition
actionburnsewself.c:3
ActionBurnSewSelf::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition
actionburnsewself.c:42
ActionBurnSewSelf::ActionBurnSewSelf
void ActionBurnSewSelf()
Definition
actionburnsewself.c:12
ActionBurnSewSelf::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionburnsewself.c:19
ActionBurnSewSelf::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionburnsewself.c:30
ActionBurnSewSelf::HasTarget
override bool HasTarget()
Definition
actionburnsewself.c:25
ActionContinuousBaseCB
Definition
actioncontinuousbase.c:2
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Definition
actioncontinuousbase.c:124
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CAContinuousTime
Definition
cacontinuoustime.c:2
CCINonRuined
Definition
ccinonruined.c:2
CCTSelf
Definition
cctself.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
UATimeSpent
Definition
actionconstants.c:28
UATimeSpent::SEW_WOUNDS
const float SEW_WOUNDS
Definition
actionconstants.c:46
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
medical
actionburnsewself.c
Generated by
1.17.0