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

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

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

class  ActionWashHandsWaterCB
 

Функции

ActionWashHandsWaterCB ActionContinuousBaseCB ActionWashHandsWater ()
 
override void CreateActionComponent ()
 
override GetInputType ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
32 {
33 // Other conditions are in CCTWaterSurface
34 return (player.HasBloodyHands() && !player.GetItemInHands() && !player.GetItemOnSlot("Gloves"));
35 }
Definition EntityAI.c:95

◆ ActionWashHandsWater()

12 {
13 m_CallbackClass = ActionWashHandsWaterCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSPOND;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_Text = "#wash_hands";
18 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionWashHandsWater.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionWashHandsWaterCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSPOND;
15 m_FullBody = true;

Перекрестные ссылки m_CommandUID и m_StanceMask.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
26 {
27 m_ConditionItem = new CCINone();
29 }
void CCTWaterSurfaceEx(float maximal_target_distance, int allowedLiquidSource)
Definition CCTWaterSurface.c:62
Definition CCINone.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108
const int LIQUID_GROUP_WATER
Definition constants.c:534
const int LIQUID_SNOW
Definition constants.c:526

Перекрестные ссылки CCTWaterSurfaceEx(), UAMaxDistances::DEFAULT, LIQUID_GROUP_WATER и LIQUID_SNOW.

◆ GetInputType()

override GetInputType ( )
21 {
23 }
Definition ActionInput.c:522

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
38 {
40 moduleLifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
41 }
void PluginLifespan()
Definition PluginLifespan.c:45
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316

Перекрестные ссылки GetPlugin() и PluginLifespan().