Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionresetkitchentimer.c
Go to the documentation of this file.
1
class
ActionResetKitchenTimerClockCB
:
ActionSingleUseBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CASingleUseTurnOnPlugged
;
6
}
7
}
8
9
class
ActionResetKitchenTimer
:
ActionTurnOffWhileInHands
10
{
11
void
ActionResetKitchenTimer
()
12
{
13
m_CallbackClass =
ActionResetKitchenTimerClockCB
;
14
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_RESET_KITCHENTIMER;
15
m_CommandUIDProne
=
DayZPlayerConstants
.CMD_ACTIONMOD_RESET_KITCHENTIMER;
16
m_Text =
"#turn_off"
;
17
}
18
19
override
bool
HasProneException
()
20
{
21
return
true
;
22
}
23
24
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
25
{
26
ClockBase
alarm =
ClockBase
.Cast(item);
27
return
(alarm.IsRinging() || alarm.IsAlarmOn());
28
}
29
30
override
void
OnExecuteServer
(
ActionData
action_data )
31
{
32
ClockBase
alarm =
ClockBase
.Cast(action_data.m_MainItem);
33
if
(alarm)
34
alarm.TurnOff();
35
}
36
}
m_CommandUIDProne
int m_CommandUIDProne
Definition
actionbase.c:32
m_CommandUID
int m_CommandUID
Definition
actionbase.c:31
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionResetKitchenTimer
ActionResetKitchenTimerClockCB ActionSingleUseBaseCB ActionResetKitchenTimer()
Definition
actionresetkitchentimer.c:11
ActionTarget
class ActionTargets ActionTarget
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionResetKitchenTimerClockCB
Definition
actionresetkitchentimer.c:2
ActionResetKitchenTimerClockCB::CreateActionComponent
override void CreateActionComponent()
Definition
actionresetkitchentimer.c:3
ActionSingleUseBaseCB
Definition
actionsingleusebase.c:2
ActionTurnOffWhileInHands
Definition
actionturnoffwhileinhands.c:2
ActionTurnOffWhileInHands::OnExecuteServer
override void OnExecuteServer(ActionData action_data)
Definition
actionturnoffwhileinhands.c:50
ActionTurnOffWhileInHands::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionturnoffwhileinhands.c:24
ActionTurnOffWhileInHands::HasProneException
override bool HasProneException()
Definition
actionturnoffwhileinhands.c:19
CASingleUseTurnOnPlugged
Definition
casingleuseturnonplugged.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
ClockBase
void ClockBase()
Definition
clockbase.c:27
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
singleuse
actionresetkitchentimer.c
Generated by
1.17.0