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

Защищенные члены

void ActionLockDoors ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
void LockDoor (ActionTarget target)
 
override void OnFinishProgressServer (ActionData action_data)
 
override bool IsLockTargetOnUse ()
 

Защищенные данные

const float APPLIED_DMG = 6
 

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

- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

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

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

◆ ActionLockDoors()

void ActionLockDoors ( )
inlineprotected
14 {
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT;
17 m_FullBody = true;
18 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
20 m_Text = "#lock_door";
21 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
int m_StanceMask
Definition ActionBase.c:62
Definition ActionLockDoors.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprotected
30 {
31 if( !target ) return false;
32 //if( IsDamageDestroyed(action_data.m_Target) ) return false;
33 if( !IsBuilding(target) ) return false;
34 if( !IsInReach(player, target, UAMaxDistances.DEFAULT) ) return false;
35
36 Building building;
37 if( Class.CastTo(building, target.GetObject()) )
38 {
39 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
40 if ( doorIndex != -1 )
41 return building.CanDoorBeLocked(doorIndex);
42 }
43 return false;
44 }
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
Definition ActionBase.c:1054
bool IsBuilding(ActionTarget target)
Definition ActionBase.c:1044
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), UAMaxDistances::DEFAULT, ActionBase::IsBuilding() и ActionBase::IsInReach().

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprotected
24 {
27 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTCursor.c:2

Перекрестные ссылки ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ IsLockTargetOnUse()

override bool IsLockTargetOnUse ( )
inlineprotected
68 {
69 return false;
70 }

◆ LockDoor()

void LockDoor ( ActionTarget target)
inlineprotected
47 {
48 Building building;
49
50 if ( Class.CastTo(building, target.GetObject()) )
51 {
52 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
53 if ( doorIndex != -1 )
54 {
55 building.LockDoor(doorIndex);
56 }
57 }
58 }

Перекрестные ссылки Class::CastTo().

Используется в OnFinishProgressServer().

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprotected
61 {
62 LockDoor(action_data.m_Target);
63
64 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem, APPLIED_DMG);
65 }
void LockDoor(ActionTarget target)
Definition ActionLockDoors.c:46
const float APPLIED_DMG
Definition ActionLockDoors.c:11

Перекрестные ссылки APPLIED_DMG и LockDoor().

Поля

◆ APPLIED_DMG

const float APPLIED_DMG = 6
protected

Используется в OnFinishProgressServer().


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