DayZ
1.28
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionEmptySeedsPack.c
См. документацию.
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
};
ActionData
ActionBase ActionData
Определения
ActionBase.c:30
ActionTarget
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
Определения
ActionTargets.c:121
ActionBase::m_Text
string m_Text
Определения
ActionBase.c:58
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Определения
ActionBase.c:64
ActionBase::m_FullBody
bool m_FullBody
Определения
ActionBase.c:61
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Определения
ActionBase.c:65
ActionEmptySeedsPack::ActionEmptySeedsPack
void ActionEmptySeedsPack()
Определения
ActionEmptySeedsPack.c:8
ActionEmptySeedsPack::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionEmptySeedsPack.c:26
ActionEmptySeedsPack::HasTarget
override bool HasTarget()
Определения
ActionEmptySeedsPack.c:21
ActionEmptySeedsPack::OnExecuteServer
override void OnExecuteServer(ActionData action_data)
Определения
ActionEmptySeedsPack.c:31
ActionEmptySeedsPack::CreateConditionComponents
override void CreateConditionComponents()
Определения
ActionEmptySeedsPack.c:15
ActionSingleUseBase::ActionSingleUseBase
void ActionSingleUseBase()
Определения
ActionSingleUseBase.c:31
AnimatedActionBase::m_CommandUID
int m_CommandUID
Определения
AnimatedActionBase.c:143
CCINone
Определения
CCINone.c:2
CCTNone
Определения
CCTNone.c:2
ItemBase
Определения
4_World/Entities/Core/Inherited/InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
SeedPackBase
Определения
CannabisSeedsPack.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
SingleUse
ActionEmptySeedsPack.c
Создано системой
1.13.2