DayZ 1.24
Loading...
Searching...
No Matches
ActionExtinguishFireplaceByExtinguisher.c
Go to the documentation of this file.
25
27 {
30 }
31
32 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
33 {
34 Object targetObject = target.GetObject();
35 if (targetObject.IsFireplace())
36 {
38
39 if (fireplace.CanExtinguishFire() && !item.IsDamageDestroyed())
40 return true;
41 }
42
43 return false;
44 }
45
47 {
48 super.OnStartAnimationLoop(action_data);
49
50 FireplaceBase fireplace = FireplaceBase.Cast(action_data.m_Target.GetObject());
51 fireplace.SetExtinguishingState();
52 }
53
55 {
56 FireplaceBase fireplace = FireplaceBase.Cast(action_data.m_Target.GetObject());
57 fireplace.RefreshFireState();
58 }
59}
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
void CreateConditionComponents()
Definition ActionBase.c:196
void OnEndServer(ActionData action_data)
Definition ActionBase.c:962
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
ActionExtinguishFireplaceByExtinguisherCB ActionContinuousBaseCB ActionExtinguishFireplaceByExtinguisher()
ActionData m_ActionData
void OnStartAnimationLoop(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
ItemBase m_MainItem
Definition ActionBase.c:28
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override float GetLiquidThroughputCoef()
const float FIREPLACE_EXTINGUISHER
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597