DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionCloseBarrelHoles.c
См. документацию.
1
class
ActionCloseBarrelHoles
:
ActionInteractBase
2
{
3
void
ActionCloseBarrelHoles
()
4
{
5
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_INTERACTONCE;
6
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_ERECT |
DayZPlayerConstants
.STANCEMASK_CROUCH;
7
m_Text
=
"#close"
;
8
}
9
10
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
11
{
12
Object
target_object = target.GetObject();
13
if
( target_object.IsItemBase() )
14
{
15
BarrelHoles_ColorBase
ntarget =
BarrelHoles_ColorBase
.Cast( target_object );
16
if
( ntarget )
17
{
18
if
( ntarget.IsOpen() )
19
{
20
return
true
;
21
}
22
}
23
}
24
return
false
;
25
}
26
27
override
void
OnExecuteServer
(
ActionData
action_data )
28
{
29
Object
target_object = action_data.m_Target.GetObject();
30
BarrelHoles_ColorBase
ntarget =
BarrelHoles_ColorBase
.Cast( target_object );
31
32
if
( ntarget )
33
{
34
ntarget.Close();
35
if
(ntarget.GetBarrelCloseSoundset() !=
string
.Empty)
36
ntarget.StartItemSoundServer(SoundConstants.ITEM_BARREL_CLOSE);
37
}
38
}
39
}
ActionData
ActionBase ActionData
Определения
ActionBase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBase::m_StanceMask
int m_StanceMask
Определения
ActionBase.c:62
ActionBase::m_Text
string m_Text
Определения
ActionBase.c:58
ActionCloseBarrelHoles::OnExecuteServer
override void OnExecuteServer(ActionData action_data)
Определения
ActionCloseBarrelHoles.c:27
ActionCloseBarrelHoles::ActionCloseBarrelHoles
void ActionCloseBarrelHoles()
Определения
ActionCloseBarrelHoles.c:3
ActionCloseBarrelHoles::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionCloseBarrelHoles.c:10
ActionInteractBase::ActionInteractBase
void ActionInteractBase()
Определения
ActionInteractBase.c:43
AnimatedActionBase::m_CommandUID
int m_CommandUID
Определения
AnimatedActionBase.c:143
BarrelHoles_ColorBase
Определения
BarrelHoles_Blue.c:2
ItemBase
Определения
InventoryItem.c:731
Object
Определения
ObjectTyped.c:2
PlayerBase
Определения
PlayerBaseClient.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Interact
ActionCloseBarrelHoles.c
Создано системой
1.13.2