DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ActionExtinguishFireplaceByExtinguisher.c

См. исходные тексты.

Структуры данных

class  ActionExtinguishFireplaceByExtinguisherCB
 

Функции

ActionExtinguishFireplaceByExtinguisherCB ActionContinuousBaseCB ActionExtinguishFireplaceByExtinguisher ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnStartAnimationLoop (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 

Переменные

const float TIME_TO_REPEAT = 0.5
 
const float WETNESS_GAIN_MULTIPLIER = 0.5
 

Функции

◆ ActionCondition()

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 }
Definition BarrelHoles_ColorBase.c:2
Definition ObjectTyped.c:2
Definition EntityAI.c:95

◆ ActionExtinguishFireplaceByExtinguisher()

ActionExtinguishFireplaceByExtinguisherCB ActionContinuousBaseCB ActionExtinguishFireplaceByExtinguisher ( )
16 {
18 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_FIREESTINGUISHER;
19 m_FullBody = true;
20 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
21 m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_MEDIUM;
22
23 m_Text = "#extinguish";
24 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionExtinguishFireplaceByExtinguisher.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Используется в ActionConstructor::RegisterActions() и FireExtinguisher::SetActions().

◆ CreateActionComponent()

override void CreateActionComponent ( )
private

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
27 {
28 m_ConditionItem = new CCINonRuined();
29 m_ConditionTarget = new CCTDummy();
30 }
Definition CCINonRuined.c:2
Definition CCTDummy.c:2

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
55 {
56 super.OnEndServer(action_data);
57
58 FireplaceBase fireplace = FireplaceBase.Cast(action_data.m_Target.GetObject());
59 fireplace.RefreshFireState();
60 }

◆ OnStartAnimationLoop()

override void OnStartAnimationLoop ( ActionData action_data)
47 {
48 super.OnStartAnimationLoop(action_data);
49
50 FireplaceBase fireplace = FireplaceBase.Cast(action_data.m_Target.GetObject());
51 fireplace.SetExtinguishingState();
52 }

Переменные

◆ TIME_TO_REPEAT

const float TIME_TO_REPEAT = 0.5
private

◆ WETNESS_GAIN_MULTIPLIER

const float WETNESS_GAIN_MULTIPLIER = 0.5
private