Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionrepairshelter.c
Go to the documentation of this file.
1
//used for shelters (non-proxy tent objects)
2
class
ActionRepairShelter
:
ActionRepairTent
3
{
4
void
ActionRepairShelter
()
5
{
6
m_CallbackClass
=
ActionRepairTentCB
;
7
m_SpecialtyWeight
= UASoftSkillsWeight.PRECISE_LOW;
8
9
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_INTERACT;
10
m_FullBody
=
true
;
11
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_ERECT |
DayZPlayerConstants
.STANCEMASK_CROUCH;
12
}
13
14
override
void
CreateConditionComponents
()
15
{
16
m_ConditionItem
=
new
CCINonRuined
;
17
m_ConditionTarget
=
new
CCTCursor
(
UAMaxDistances
.
SMALL
);
18
}
19
20
override
bool
IsUsingProxies
()
21
{
22
return
false
;
23
}
24
25
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
26
{
27
ShelterBase
shelter =
ShelterBase
.Cast( target.GetObject() );
28
if
( !shelter )
29
return
false
;
30
31
if
( player && shelter )
32
{
33
PluginRepairing module_repairing;
34
Class
.
CastTo
(module_repairing,
GetPlugin
(PluginRepairing));
35
if
(module_repairing.CanRepair(item,shelter))
36
{
37
return
true
;
38
}
39
}
40
41
return
false
;
42
}
43
44
override
void
OnFinishProgressServer
(
ActionData
action_data )
45
{
46
ShelterBase
shelter =
ShelterBase
.Cast( action_data.m_Target.GetObject() );
47
48
if
( shelter )
49
{
50
PluginRepairing module_repairing;
51
Class
.
CastTo
(module_repairing,
GetPlugin
(PluginRepairing));
52
module_repairing.Repair(action_data.m_Player,action_data.m_MainItem,shelter,
m_SpecialtyWeight
);
53
}
54
}
55
};
m_StanceMask
int m_StanceMask
Definition
actionbase.c:33
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBase::m_FullBody
bool m_FullBody
Definition
actionbase.c:67
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
ActionRepairShelter::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition
actionrepairshelter.c:44
ActionRepairShelter::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionrepairshelter.c:14
ActionRepairShelter::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionrepairshelter.c:25
ActionRepairShelter::ActionRepairShelter
void ActionRepairShelter()
Definition
actionrepairshelter.c:4
ActionRepairShelter::IsUsingProxies
override bool IsUsingProxies()
Definition
actionrepairshelter.c:20
ActionRepairTentCB
Definition
actionrepairtent.c:12
ActionRepairTent::ActionRepairTent
void ActionRepairTent()
Definition
actionrepairtent.c:25
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
animatedactionbase.c:145
CCINonRuined
Definition
ccinonruined.c:2
CCTCursor
Definition
cctcursor.c:2
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
ShelterBase
Definition
shelter.c:101
UAMaxDistances
Definition
actionconstants.c:110
UAMaxDistances::SMALL
const float SMALL
Definition
actionconstants.c:111
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition
pluginmanager.c:325
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
actionrepairshelter.c
Generated by
1.17.0