Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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
}
ItemBase
Definition:
inventoryitem.c:730
ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition:
actionresetkitchentimer.c:24
OnExecuteServer
override void OnExecuteServer(ActionData action_data)
Definition:
actionresetkitchentimer.c:30
ClockBase
void ClockBase()
Definition:
clockbase.c:27
ActionResetKitchenTimer
ActionResetKitchenTimerClockCB ActionSingleUseBaseCB ActionResetKitchenTimer()
Definition:
actionresetkitchentimer.c:11
ActionSingleUseBaseCB
Definition:
actionsingleusebase.c:1
PlayerBase
Definition:
playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition:
dayzplayer.c:601
ActionTurnOffWhileInHands
Definition:
actionturnoffwhileinhands.c:1
HasProneException
override bool HasProneException()
Definition:
actionresetkitchentimer.c:19
CASingleUseTurnOnPlugged
Definition:
casingleuseturnonplugged.c:1
m_Text
protected string m_Text
Definition:
actionbase.c:49
ActionResetKitchenTimerClockCB
Definition:
actionresetkitchentimer.c:1
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
singleuse
actionresetkitchentimer.c
Generated by
1.8.17