DayZ 1.24
Loading...
Searching...
No Matches
ActionExtinguishFireplaceByLiquid.c
Go to the documentation of this file.
24
30
31 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
32 {
33 Object targetObject = target.GetObject();
34
35 if (targetObject.IsFireplace())
36 {
38
39 if (fireplace.CanExtinguishFire() && !item.IsDamageDestroyed() && (item.GetLiquidType() & (GROUP_LIQUID_BLOOD | LIQUID_WATER | LIQUID_RIVERWATER | LIQUID_BEER)))
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
ActionExtinguishFireplaceByLiquidCB ActionContinuousBaseCB ActionExtinguishFireplaceByLiquid()
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 SMALL
const float FIREPLACE_LIQUID
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
const int GROUP_LIQUID_BLOOD
Definition constants.c:514
const int LIQUID_BEER
Definition constants.c:507
const int LIQUID_WATER
Definition constants.c:504
const int LIQUID_RIVERWATER
Definition constants.c:505