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

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

void ActionUnrestrainSelf ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasProneException ()
 
override bool HasTarget ()
 
override void OnEndAnimationLoopServer (ActionData action_data)
 
override void OnFinishProgressServer (ActionData action_data)
 
override bool CanBeUsedInRestrain ()
 
- Закрытые члены унаследованные от 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)
 

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

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

◆ ActionUnrestrainSelf()

void ActionUnrestrainSelf ( )
inlineprivate
51 {
53 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_RESTRAINEDSTRUGGLE;
54 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_RESTRAINEDSTRUGGLE;
55 m_Text = "#struggle";
56 }
string m_Text
Definition ActionBase.c:58
Definition ActionUnrestrainSelf.c:2
int m_CommandUIDProne
Definition AnimatedActionBase.c:144
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, AnimatedActionBase::m_CommandUIDProne и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
65 {
66 return player.IsRestrained();
67 }
Definition EntityAI.c:95

◆ CanBeUsedInRestrain()

override bool CanBeUsedInRestrain ( )
inlineprivate
106 {
107 return true;
108 }

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
59 {
62 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTSelf.c:2

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

◆ HasProneException()

override bool HasProneException ( )
inlineprivate
70 {
71 return true;
72 }

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
75 {
76 return false;
77 }

◆ OnEndAnimationLoopServer()

override void OnEndAnimationLoopServer ( ActionData action_data)
inlineprivate
80 {
81
82 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
86 {
87 PlayerBase player = PlayerBase.Cast(action_data.m_Player);
89
90 if (item_in_hands)
91 {
92 if (item_in_hands.IsInherited(BarbedWireLocked))
93 {
94 int randNum = Math.RandomInt(0, 3); // Values 0 to 3 represent fore arm and arm roll bleed sources
95 player.m_BleedingManagerServer.AttemptAddBleedingSourceBySelection(PlayerBase.m_BleedingSourcesUp[randNum]);
96 }
97 player.SetRestrained(false);
99 MiscGameplayFunctions.TransformRestrainItem(item_in_hands, null, null, player);
100 //string new_item_name = MiscGameplayFunctions.ObtainRestrainItemTargetClassname(item_in_hands);
101 //MiscGameplayFunctions.TurnItemInHandsIntoItemEx(player, new UnrestrainSelfPlayer(item_in_hands, new_item_name));
102 }
103 }
Definition Building.c:6
Definition constants.c:638
Definition EnMath.c:7
Definition PlayerBaseClient.c:2
const float CLEAN_UNRESTRAIN_DAMAGE
Definition constants.c:940
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки GameConstants::CLEAN_UNRESTRAIN_DAMAGE и Math::RandomInt().


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