Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actiondisinfecttarget.c
Go to the documentation of this file.
1
class
ActionDisinfectTargetCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent()
4
{
5
m_ActionData.m_ActionComponent =
new
CAContinuousTime
(
UATimeSpent
.DEFAULT);
6
}
7
8
};
9
10
class
ActionDisinfectTarget
:
ActionDisinfectBase
11
{
12
void
ActionDisinfectTarget
()
13
{
14
m_CallbackClass =
ActionDisinfectSelfCB
;
15
m_SpecialtyWeight
=
UASoftSkillsWeight
.PRECISE_LOW;
16
m_CommandUID =
DayZPlayerConstants
.CMD_ACTIONFB_INTERACT;
17
m_FullBody
=
true
;
18
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_ERECT |
DayZPlayerConstants
.STANCEMASK_CROUCH;
19
m_Text
=
"#disinfect_target"
;
20
}
21
22
override
void
CreateConditionComponents()
23
{
24
m_ConditionItem
=
new
CCINonRuined
;
25
m_ConditionTarget
=
new
CCTMan
(
UAMaxDistances
.DEFAULT);
26
}
27
28
override
bool
ActionCondition(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
29
{
30
if
( target)
31
{
32
PlayerBase
target_player =
PlayerBase
.Cast(target.GetObject());
33
if
(target_player)
34
return
(target_player.IsBleeding() || (player.m_SyncedModifiers &
eModifierSyncIDs
.MODIFIER_SYNC_WOUND_INFECT_1) || (player.m_SyncedModifiers &
eModifierSyncIDs
.MODIFIER_SYNC_WOUND_INFECT_2));
35
36
}
37
return
false
;
38
}
39
40
override
void
OnFinishProgressServer(
ActionData
action_data )
41
{
42
PlayerBase
target =
PlayerBase
.Cast(action_data.m_Target.GetObject());
43
44
if
( target )
45
{
46
if
(
CanReceiveAction
(action_data.m_Target))
47
{
48
target.GetModifiersManager().ActivateModifier(
eModifiers
.MDF_DISINFECTION);
49
Apply(action_data);
50
}
51
}
52
}
53
};
ItemBase
Definition:
inventoryitem.c:730
ActionDisinfectSelfCB
Definition:
actiondisinfectself.c:1
CAContinuousTime
Definition:
cacontinuoustime.c:1
ActionDisinfectTarget
Definition:
actiondisinfecttarget.c:10
CCTMan
Definition:
cctman.c:1
UASoftSkillsWeight
Definition:
actionconstants.c:118
ActionDisinfectBase
Definition:
actiondisinfectself.c:9
UAMaxDistances
Definition:
actionconstants.c:104
m_FullBody
protected bool m_FullBody
Definition:
actionbase.c:52
PlayerBase
Definition:
playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
ActionDisinfectTargetCB
Definition:
actiondisinfecttarget.c:1
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition:
dayzplayer.c:601
eModifiers
eModifiers
Definition:
emodifiers.c:1
UATimeSpent
Definition:
actionconstants.c:26
ActionContinuousBaseCB
Definition:
actioncontinuousbase.c:1
eModifierSyncIDs
eModifierSyncIDs
Definition:
modifiersmanager.c:2
m_Text
protected string m_Text
Definition:
actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition:
actionbase.c:55
CCINonRuined
Definition:
ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition:
actionbase.c:56
m_SpecialtyWeight
protected float m_SpecialtyWeight
Definition:
actionbase.c:68
m_StanceMask
protected int m_StanceMask
Definition:
actionbase.c:53
CanReceiveAction
bool CanReceiveAction(ActionTarget target)
Definition:
actionbase.c:638
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
singleuse
medical
actiondisinfecttarget.c
Generated by
1.8.17