Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionemptyseedspack.c
Go to the documentation of this file.
1
/*
2
User action for emptying packs of seeds (horticulture)
3
*/
4
5
6
class
ActionEmptySeedsPack
:
ActionSingleUseBase
7
{
8
void
ActionEmptySeedsPack
()
9
{
10
m_CommandUID =
DayZPlayerConstants
.CMD_ACTIONMOD_EMPTYSEEDSPACK;
11
m_FullBody
=
false
;
12
m_Text
=
"#unbox"
;
13
}
14
15
override
void
CreateConditionComponents()
16
{
17
m_ConditionItem
=
new
CCINone
;
18
m_ConditionTarget
=
new
CCTNone
;
19
}
20
21
override
bool
HasTarget()
22
{
23
return
false
;
24
}
25
26
override
bool
ActionCondition(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
27
{
28
return
true
;
29
}
30
31
override
void
OnExecuteServer(
ActionData
action_data )
32
{
33
SeedPackBase
item_SPB =
SeedPackBase
.Cast( action_data.m_MainItem );
34
35
// The following careful script fixes an issue with VME with unknown repro.
36
37
if
(item_SPB)
38
{
39
PlayerBase
player;
40
41
if
(action_data)
42
player = action_data.m_Player;
43
44
item_SPB.EmptySeedPack( player );
45
}
46
}
47
};
ItemBase
Definition:
inventoryitem.c:730
SeedPackBase
Definition:
cannabisseedspack.c:1
ActionEmptySeedsPack
Definition:
actionemptyseedspack.c:6
CCINone
Definition:
ccinone.c:1
CCTNone
Definition:
cctnone.c:1
m_FullBody
protected bool m_FullBody
Definition:
actionbase.c:52
PlayerBase
Definition:
playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition:
dayzplayer.c:601
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
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
singleuse
actionemptyseedspack.c
Generated by
1.8.17