Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionuseundergroundpanel.c
Go to the documentation of this file.
1
class
ActionUseUndergroundPanel
:
ActionSingleUseBase
2
{
3
void
ActionUseUndergroundPanel
()
4
{
5
m_CommandUID =
DayZPlayerConstants
.CMD_ACTIONMOD_OPENDOORFW;
6
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH |
DayZPlayerConstants
.STANCEMASK_ERECT;
7
m_Text
=
"#use"
;
8
}
9
10
override
void
CreateConditionComponents()
11
{
12
m_ConditionItem
=
new
CCINone
;
13
m_ConditionTarget
=
new
CCTCursor
;
14
}
15
16
override
bool
ActionCondition(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
17
{
18
if
(item.IsDamageDestroyed())
19
return
false
;
20
Land_Underground_Panel
trgt =
Land_Underground_Panel
.Cast(target.GetObject());
21
22
if
( !trgt )
23
return
false
;
24
25
if
(trgt.ClassName() !=
"Land_Underground_Panel"
)
26
return
false
;
27
28
return
(trgt.CanInteract());
29
}
30
31
override
void
OnStartServer(
ActionData
action_data )
32
{
33
Land_Underground_Panel
target =
Land_Underground_Panel
.Cast(action_data.m_Target.GetObject());
34
35
if
(!target)
36
return
;
37
38
target.Interact();
39
PunchedCard
.Cast(action_data.m_MainItem).OnUse();
40
}
41
42
};
ItemBase
Definition:
inventoryitem.c:730
CCINone
Definition:
ccinone.c:1
ActionUseUndergroundPanel
Definition:
actionuseundergroundpanel.c:1
PlayerBase
Definition:
playerbaseclient.c:1
PunchedCard
Definition:
punchedcard.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition:
dayzplayer.c:601
CCTCursor
Definition:
cctcursor.c:1
m_Text
protected string m_Text
Definition:
actionbase.c:49
ActionSingleUseBase
Definition:
actionsingleusebase.c:41
m_ConditionItem
ref CCIBase m_ConditionItem
Definition:
actionbase.c:55
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition:
actionbase.c:56
m_StanceMask
protected int m_StanceMask
Definition:
actionbase.c:53
Land_Underground_Panel
void Land_Underground_Panel()
Definition:
land_underground_panel.c:38
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
interact
actionuseundergroundpanel.c
Generated by
1.8.17