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

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

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

class  ActionDialCombinationLockCB
 

Функции

ActionDialCombinationLockCB ActionContinuousBaseCB ActionDialCombinationLock ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool HasProneException ()
 
override bool HasTarget ()
 
override void OnActionInfoUpdate (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Переменные

const float REPEAT_AFTER_SEC = 0.5
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
45 {
46 if (item.IsInherited(CombinationLock))
47 {
48 ConstructionActionData constructionActionData = player.GetConstructionActionData();
49 constructionActionData.SetCombinationLock(CombinationLock.Cast(item));
50
51 return true;
52 }
53
54 return false;
55 }
Definition CombinationLock4.c:2
Definition ConstructionActionData.c:2
Definition EntityAI.c:95

◆ ActionDialCombinationLock()

ActionDialCombinationLockCB ActionContinuousBaseCB ActionDialCombinationLock ( )
14 {
15 m_CallbackClass = ActionDialCombinationLockCB;
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENITEM;
17 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_OPENITEM;
18 m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_LOW;
19 m_Text = "#dial_combination_lock";
20 }
int m_CommandUIDProne
Definition ActionBase.c:32
int m_CommandUID
Definition ActionBase.c:31
Definition ActionDialCombinationLock.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
private

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
23 {
24 m_ConditionTarget = new CCTNone();
25 m_ConditionItem = new CCINonRuined();
26 }
Definition CCINonRuined.c:2
Definition CCTNone.c:2

◆ HasProneException()

override bool HasProneException ( )
29 {
30 return true;
31 }

◆ HasTarget()

override bool HasTarget ( )
34 {
35 return false;
36 }

◆ OnActionInfoUpdate()

override void OnActionInfoUpdate ( PlayerBase player,
ActionTarget target,
ItemBase item )
39 {
40 ConstructionActionData constructionActionData = player.GetConstructionActionData();
41 m_Text = "#dial_combination_lock " + constructionActionData.GetDialNumberText();
42 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
58 {
59 //set dialed number
60 ConstructionActionData constructionActionData = action_data.m_Player.GetConstructionActionData();
62 combination_lock.DialNextNumber();
63 }

Переменные

◆ REPEAT_AFTER_SEC

const float REPEAT_AFTER_SEC = 0.5
private