DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateActionComponent()

override void ActionUnrestrainTargetHandsCB::CreateActionComponent ( )
inlineprivate

См. определение в файле ActionUnrestrainTargetEmpty.c строка 6

7 {
8 float time = DEFAULT_STRUGGLE_TIME;
9 PlayerBase targetPlayer = PlayerBase.Cast(m_ActionData.m_Target.GetObject());
10 EntityAI item_in_hands = targetPlayer.GetItemInHands();
11
12 if ( item_in_hands.ConfigIsExisting("StruggleLength") )
13 {
14 time = item_in_hands.ConfigGetFloat("StruggleLength") * UNRESTRAIN_STRUGGLE_MULTIPLIER;
15 }
16 #ifdef DEVELOPER
17 if ( m_ActionData.m_Player.IsQuickRestrain() )
18 {
20 }
21 #endif
22
23 m_ActionData.m_ActionComponent = new CAContinuousTime(time);
24 }
class LogManager EntityAI
ActionData m_ActionData
Определения AnimatedActionBase.c:3
const float DEFAULT_STRUGGLE_TIME
Определения ActionUnrestrainTargetEmpty.c:3
const float UNRESTRAIN_STRUGGLE_MULTIPLIER
Определения ActionUnrestrainTargetEmpty.c:4
const float DEBUG_QUICK_UNRESTRAIN_TIME
Определения constants.c:645

Перекрестные ссылки DEBUG_QUICK_UNRESTRAIN_TIME, DEFAULT_STRUGGLE_TIME, ActionBaseCB::m_ActionData и UNRESTRAIN_STRUGGLE_MULTIPLIER.