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

◆ OnEntry() [11/12]

override void HandStateBase::OnEntry ( HandEventBase e)
inlineprivate

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

16 {
17 super.OnEntry(e);
18
19 if (e.m_Player)
20 {
21 HumanCommandWeapons hcw = e.m_Player.GetCommandModifier_Weapons();
22 if (hcw)
23 {
24 if (m_ActionType == -1)
25 {
26 hcw.StartAction(-1, -1);
27 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("HCW: " + Object.GetDebugName(e.m_Player) + " STS = " + e.m_Player.GetSimulationTimeStamp() + " playing A=-1 AT=-1 fini=" + hcw.IsActionFinished());
28 }
29 else
30 {
32
34 {
35 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("HCW: " + Object.GetDebugName(e.m_Player) + " STS = " + e.m_Player.GetSimulationTimeStamp() + " playing A=" + typename.EnumToString(WeaponActions, m_Action) + " AT=" + WeaponActionTypeToString(m_Action, m_ActionType) + " fini=" + hcw.IsActionFinished());
36 }
37 else
38 Error("HCW: NOT playing A=" + typename.EnumToString(WeaponActions, m_Action) + " AT=" + WeaponActionTypeToString(m_Action, m_ActionType) + " fini=" + hcw.IsActionFinished());
39 }
40 }
41 else
42 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("---: remote playing A=" + typename.EnumToString(WeaponActions, m_Action) + " AT=" + WeaponActionTypeToString(m_Action, m_ActionType));
43 }
44 else
45 {
46 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("---: warning, no player wants to play A=" + typename.EnumToString(WeaponActions, m_Action) + " AT=" + WeaponActionTypeToString(m_Action, m_ActionType));
47 }
48 }
void hndDebugPrint(string s)
Определения HandFSM.c:1
WeaponActions m_Action
Определения HandStartAction.c:6
int m_ActionType
action to be played
Определения HandStartAction.c:7
proto native bool IsActionFinished()
proto native int GetRunningAction()
returns -1 when no action is running or RELOAD,MECHANISM, ....
proto native bool StartAction(WeaponActions pAction, int pActionType)
start reload,mechanism,chambering,unjam ...
proto native int GetRunningActionType()
returns -1 when no action is running or appropriate action type
class LOD Object
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90
WeaponActions
actions
Определения human.c:816
string WeaponActionTypeToString(int A, int AT)
Определения human.c:943
void HumanCommandWeapons()
Определения human.c:1113

Перекрестные ссылки Error(), HumanCommandWeapons::GetRunningAction(), HumanCommandWeapons::GetRunningActionType(), hndDebugPrint(), HumanCommandWeapons::IsActionFinished(), LogManager::IsInventoryHFSMLogEnable(), m_Action, m_ActionType, HumanCommandWeapons::StartAction() и WeaponActionTypeToString().