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

◆ ActionConditionContinue()

override bool ActionRestrainTarget::ActionConditionContinue ( ActionData action_data)
inlineprivate

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

66 {
67 PlayerBase target_player = PlayerBase.Cast(action_data.m_Target.GetObject());
68
69 if ( g_Game.IsServer() && g_Game.IsMultiplayer() )
70 {
71 if ( target_player.IsSurrendered() || !target_player.CanBeRestrained() )
72 {
73 return false;
74 }
75 }
76 if ( g_Game.IsServer() )
77 {
78 ActionRestrainTargetCB callback = ActionRestrainTargetCB.Cast(action_data.m_Callback);
79
80 if ( callback.GetActionComponentProgress() > 0.75 && !target_player.IsRestrainPrelocked() )
81 {
82 target_player.SetRestrainPrelocked(true);
83 }
84
85 return !g_Game.GetMission().IsPlayerDisconnecting(target_player);
86
87 }
88 return true;
89 }
DayZGame g_Game
Определения DayZGame.c:3942
float GetActionComponentProgress()
Определения AnimatedActionBase.c:119

Перекрестные ссылки ActionData, g_Game и ActionBaseCB::GetActionComponentProgress().