Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionpackshelter.c
Go to the documentation of this file.
1
class
ActionDeconstructShelter
:
ActionContinuousBase
2
{
3
void
ActionDeconstructShelter
()
4
{
5
m_CallbackClass
=
ActionPackTentCB
;
6
m_SpecialtyWeight
= UASoftSkillsWeight.PRECISE_LOW;
7
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_DEPLOY_2HD;
8
m_FullBody
=
true
;
9
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH;
10
m_Text
=
"#pack_tent"
;
11
}
12
13
override
void
CreateConditionComponents
()
14
{
15
m_ConditionTarget
=
new
CCTCursor
(
UAMaxDistances
.
DEFAULT
);
16
m_ConditionItem
=
new
CCINone
();
17
}
18
19
override
typename
GetInputType
()
20
{
21
return
ContinuousInteractActionInput
;
22
}
23
override
bool
HasProgress
()
24
{
25
return
true
;
26
}
27
28
override
bool
HasAlternativeInterrupt
()
29
{
30
return
true
;
31
}
32
33
override
bool
ActionConditionContinue
(
ActionData
action_data)
34
{
35
return
true
;
36
}
37
38
override
ActionData
CreateActionData
()
39
{
40
PlaceObjectActionData
action_data =
new
PlaceObjectActionData
();
41
return
action_data;
42
}
43
44
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
45
{
46
if
(player.GetBrokenLegs() ==
eBrokenLegs
.BROKEN_LEGS)
47
return
false
;
48
49
Object
targetObject = target.GetObject();
50
if
(targetObject)
51
{
52
ShelterBase
shelter =
ShelterBase
.Cast(targetObject);
53
return
shelter && shelter.CanBePacked();
54
}
55
56
return
false
;
57
}
58
59
override
void
OnStart
(
ActionData
action_data)
60
{
61
super.OnStart(action_data);
62
63
action_data.m_Player.TryHideItemInHands(
true
);
64
}
65
66
override
void
OnEnd
(
ActionData
action_data)
67
{
68
super.OnEnd(action_data);
69
70
action_data.m_Player.TryHideItemInHands(
false
);
71
}
72
73
override
void
OnFinishProgressServer
(
ActionData
action_data)
74
{
75
ShelterBase
shelter =
ShelterBase
.Cast(action_data.m_Target.GetObject());
76
if
(shelter)
77
shelter.Deconstruct();
78
}
79
80
override
string
GetAdminLogMessage
(
ActionData
action_data)
81
{
82
return
" packed "
+ action_data.m_Target.GetObject().GetDisplayName() +
" with Hands "
;
83
}
84
}
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBase::m_FullBody
bool m_FullBody
Definition
actionbase.c:67
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
ActionBase::m_StanceMask
int m_StanceMask
Definition
actionbase.c:68
ActionContinuousBase::ActionContinuousBase
void ActionContinuousBase()
Definition
actioncontinuousbase.c:124
ActionDeconstructShelter::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition
actionpackshelter.c:73
ActionDeconstructShelter::ActionDeconstructShelter
void ActionDeconstructShelter()
Definition
actionpackshelter.c:3
ActionDeconstructShelter::ActionConditionContinue
override bool ActionConditionContinue(ActionData action_data)
Definition
actionpackshelter.c:33
ActionDeconstructShelter::GetAdminLogMessage
override string GetAdminLogMessage(ActionData action_data)
Definition
actionpackshelter.c:80
ActionDeconstructShelter::CreateActionData
override ActionData CreateActionData()
Definition
actionpackshelter.c:38
ActionDeconstructShelter::HasProgress
override bool HasProgress()
Definition
actionpackshelter.c:23
ActionDeconstructShelter::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionpackshelter.c:13
ActionDeconstructShelter::HasAlternativeInterrupt
override bool HasAlternativeInterrupt()
Definition
actionpackshelter.c:28
ActionDeconstructShelter::OnEnd
override void OnEnd(ActionData action_data)
Definition
actionpackshelter.c:66
ActionDeconstructShelter::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionpackshelter.c:44
ActionDeconstructShelter::GetInputType
override GetInputType()
Definition
actionpackshelter.c:19
ActionDeconstructShelter::OnStart
override void OnStart(ActionData action_data)
Definition
actionpackshelter.c:59
ActionPackTentCB
Definition
actionpacktent.c:2
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CCINone
Definition
ccinone.c:2
CCTCursor
Definition
cctcursor.c:2
ContinuousInteractActionInput
Definition
actioninput.c:523
ItemBase
Definition
inventoryitem.c:742
Object
Definition
objecttyped.c:2
PlaceObjectActionData
Definition
actiondeploybase.c:2
PlayerBase
Definition
playerbaseclient.c:2
ShelterBase
Definition
shelter.c:101
UAMaxDistances
Definition
actionconstants.c:110
UAMaxDistances::DEFAULT
const float DEFAULT
Definition
actionconstants.c:112
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
eBrokenLegs
eBrokenLegs
Definition
ebrokenlegs.c:2
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
interact
actionpackshelter.c
Generated by
1.17.0