DayZ
1.28
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionPin.c
См. документацию.
1
class
ActionPin
extends
ActionSingleUseBase
2
{
3
void
ActionPin
()
4
{
5
m_Text
=
"#pin"
;
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
/*
22
if ( item.IsInherited(Grenade_Base) )
23
{
24
m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_PINGRENAGE;
25
}
26
else
27
*/
28
{
29
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_ITEM_ON;
30
}
31
32
Grenade_Base
grenade =
Grenade_Base
.Cast(item);
33
if
( grenade )
34
{
35
if
( !grenade.
IsPinned
() && grenade.
IsPinnable
() )
36
{
37
return
true
;
38
}
39
}
40
41
return
false
;
42
}
43
44
override
void
OnExecute
(
ActionData
action_data )
45
{
46
Grenade_Base
grenade =
Grenade_Base
.Cast(action_data.m_MainItem);
47
if
( grenade )
48
{
49
grenade.
Pin
();
50
}
51
}
52
}
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()
Определения
ActionPin.c:14
ActionSingleUseBase::OnExecute
override void OnExecute(ActionData action_data)
Определения
ActionPin.c:44
ActionSingleUseBase::CreateConditionComponents
override void CreateConditionComponents()
Определения
ActionPin.c:8
ActionSingleUseBase::ActionPin
void ActionPin()
Определения
ActionPin.c:3
ActionSingleUseBase::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionPin.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::IsPinnable
bool IsPinnable()
Определения
Grenade_Base.c:79
Grenade_Base::IsPinned
bool IsPinned()
Определения
Grenade_Base.c:74
Grenade_Base::Pin
void Pin()
Определения
Grenade_Base.c:44
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
ActionPin.c
Создано системой
1.13.2