DayZ
1.28
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionUnpin.c
См. документацию.
1
class
ActionUnpin
extends
ActionSingleUseBase
2
{
3
void
ActionUnpin
()
4
{
5
m_Text
=
"#unpin"
;
6
}
7
8
override
void
CreateConditionComponents
()
9
{
10
m_ConditionItem
=
new
CCINonRuined
;
11
m_ConditionTarget
=
new
CCTNone
;
12
}
13
14
override
bool
HasTarget
()
15
{
16
return
false
;
17
}
18
19
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
20
{
21
if
( item.IsInherited(
Grenade_Base
) )
22
{
23
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_UNPINGRENAGE;
24
}
25
else
26
{
27
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_ITEM_ON;
28
}
29
30
Grenade_Base
grenade =
Grenade_Base
.Cast(item);
31
if
( grenade )
32
{
33
if
( grenade.
IsPinned
() )
34
{
35
return
true
;
36
}
37
}
38
39
return
false
;
40
}
41
42
override
void
OnExecute
(
ActionData
action_data )
43
{
44
Grenade_Base
grenade =
Grenade_Base
.Cast(action_data.m_MainItem);
45
if
( grenade )
46
{
47
grenade.
Unpin
();
48
}
49
}
50
}
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_ConditionTarget
ref CCTBase m_ConditionTarget
Определения
ActionBase.c:65
ActionSingleUseBase::HasTarget
override bool HasTarget()
Определения
ActionUnpin.c:14
ActionSingleUseBase::OnExecute
override void OnExecute(ActionData action_data)
Определения
ActionUnpin.c:42
ActionSingleUseBase::CreateConditionComponents
override void CreateConditionComponents()
Определения
ActionUnpin.c:8
ActionSingleUseBase::ActionUnpin
void ActionUnpin()
Определения
ActionUnpin.c:3
ActionSingleUseBase::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionUnpin.c:19
ActionSingleUseBase
Определения
ActionSingleUseBase.c:30
AnimatedActionBase::m_CommandUID
int m_CommandUID
Определения
AnimatedActionBase.c:143
CCINonRuined
Определения
CCINonRuined.c:2
CCTNone
Определения
CCTNone.c:2
Grenade_Base::IsPinned
bool IsPinned()
Определения
Grenade_Base.c:74
Grenade_Base::Unpin
void Unpin()
Определения
Grenade_Base.c:52
Grenade_Base
Определения
FlashGrenade.c:2
ItemBase
Определения
4_World/Entities/Core/Inherited/InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
SingleUse
ActionUnpin.c
Создано системой
1.13.2