DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionRepairBoatChassis
+ Граф наследования:ActionRepairBoatChassis:

Закрытые члены

void ActionRepairBoatChassis ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
- Закрытые члены унаследованные от ActionRepairVehiclePartBase
override void CreateConditionComponents ()
 
override void OnFinishProgressServer (ActionData action_data)
 
void AdjustVehicleHealthServer (ActionData action_data)
 
void AdjustItemQuantityServer (ActionData action_data)
 
override ActionData CreateActionData ()
 
override void WriteToContext (ParamsWriteContext ctx, ActionData action_data)
 
override bool ReadFromContext (ParamsReadContext ctx, out ActionReciveData action_recive_data)
 
override void HandleReciveData (ActionReciveData action_recive_data, ActionData action_data)
 

Дополнительные унаследованные члены

- Закрытые данные унаследованные от ActionRepairVehiclePartBase
string m_CurrentDamageZone
 

Подробное описание

Конструктор(ы)

◆ ActionRepairBoatChassis()

void ActionRepairBoatChassis ( )
inlineprivate
4 {
6 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT;
7 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
8 m_FullBody = true;
9 m_LockTargetOnUse = false;
10 m_Text = "#repair";
11 }
int m_StanceMask
Definition ActionBase.c:33
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
bool m_LockTargetOnUse
Definition ActionBase.c:60
Definition ActionRepairVehiclePartBase.c:12
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, ActionBase::m_FullBody, ActionBase::m_LockTargetOnUse, m_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
14 {
15 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
16 return false;
17
18 BoatScript boat = BoatScript.Cast(target.GetObject());
19 if (!boat)
20 return false;
21
22 if (GetGame().IsDedicatedServer())
23 return true;
24
25 string damageZone = "";
27 boat.GetActionComponentNameList(target.GetComponentIndex(), selections);
28
29 foreach (string selection : selections)
30 {
31 if (boat && DamageSystem.GetDamageZoneFromComponentName(boat, selection, damageZone))
32 {
33 if (damageZone == "Engine")
34 continue;
35
36 int zoneHP = boat.GetHealthLevel(damageZone);
38 {
40 return true;
41 }
42 }
43 }
44
45 return false;
46 }
eBrokenLegs
Definition EBrokenLegs.c:2
string m_CurrentDamageZone
Definition ActionRepairVehiclePartBase.c:21
Definition BoatScript.c:27
Definition constants.c:638
Definition EntityAI.c:95
proto native CGame GetGame()
const int STATE_RUINED
Definition constants.c:807
const int STATE_WORN
Definition constants.c:810

Перекрестные ссылки GetGame(), ActionRepairVehiclePartBase::m_CurrentDamageZone, GameConstants::STATE_RUINED и GameConstants::STATE_WORN.


Объявления и описания членов класса находятся в файле: