DayZ
1.28
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionBurnSewSelf.c
См. документацию.
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
Определения
ActionBase.c:30
ActionTarget
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
Определения
ActionTargets.c:121
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Определения
ActionBase.c:77
ActionBase::m_Text
string m_Text
Определения
ActionBase.c:58
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Определения
ActionBase.c:64
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Определения
ActionBase.c:65
ActionBaseCB::m_ActionData
ActionData m_ActionData
Определения
AnimatedActionBase.c:3
ActionBurnSewSelf::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Определения
ActionBurnSewSelf.c:42
ActionBurnSewSelf::ActionBurnSewSelf
void ActionBurnSewSelf()
Определения
ActionBurnSewSelf.c:12
ActionBurnSewSelf::HasTarget
override bool HasTarget()
Определения
ActionBurnSewSelf.c:25
ActionBurnSewSelf::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionBurnSewSelf.c:30
ActionBurnSewSelf::CreateConditionComponents
override void CreateConditionComponents()
Определения
ActionBurnSewSelf.c:19
ActionBurnSewSelfCB::CreateActionComponent
override void CreateActionComponent()
Определения
ActionBurnSewSelf.c:3
ActionBurnSewSelfCB
Определения
ActionBurnSewSelf.c:2
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Определения
ActionContinuousBase.c:124
ActionContinuousBaseCB
Определения
ActionContinuousBase.c:2
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Определения
AnimatedActionBase.c:145
CAContinuousTime
Определения
CAContinuousTime.c:2
CCINonRuined
Определения
CCINonRuined.c:2
CCTSelf
Определения
CCTSelf.c:2
ItemBase
Определения
4_World/Entities/Core/Inherited/InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
UATimeSpent::SEW_WOUNDS
const float SEW_WOUNDS
Определения
ActionConstants.c:46
UATimeSpent
Определения
ActionConstants.c:28
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
Medical
ActionBurnSewSelf.c
Создано системой
1.13.2