37 {
38 switch (userDataType)
39 {
41 {
42#ifdef ENABLE_LOGGING
43 if ( LogManager.IsActionLogEnable() )
44 {
45 Debug.ActionLog(
"STS = " +
m_Player.GetSimulationTimeStamp() +
" INPUT_UDT_STANDARD_ACTION_START",
this.ToString() ,
"n/a",
"OnInputUserDataProcess",
m_Player.ToString() );
46 }
47#endif
48 bool success = true;
49
50 int actionID = 0;
51 if (!ctx.
Read(actionID))
52 return false;
53
55 if (!recvAction)
56 return false;
57
59 success = false;
60
62
63 if (recvAction.UseAcknowledgment())
64 {
65 int ackID;
67 success = false;
68
70 }
71
72 break;
73
74 }
75
77 {
78#ifdef ENABLE_LOGGING
79 if ( LogManager.IsActionLogEnable() )
80 {
81 Debug.ActionLog(
"STS = " +
m_Player.GetSimulationTimeStamp() +
" INPUT_UDT_STANDARD_ACTION_END_REQUEST",
this.ToString() ,
"n/a",
"OnInputUserDataProcess",
m_Player.ToString() );
82 }
83#endif
84
85 int commandID = -10;
87
89 {
90
92 }
93 else
94 {
95
97 }
98 }
99
101 {
102#ifdef ENABLE_LOGGING
103 if ( LogManager.IsActionLogEnable() )
104 {
105 Debug.ActionLog(
"STS = " +
m_Player.GetSimulationTimeStamp() +
" INPUT_UDT_STANDARD_ACTION_INPUT_END",
this.ToString() ,
"n/a",
"OnInputUserDataProcess",
m_Player.ToString() );
106 }
107#endif
108
110 }
111 default:
112 return false;
113 }
114
115 if (!success)
116 {
117#ifdef ENABLE_LOGGING
118 if ( LogManager.IsActionLogEnable() )
119 {
120 Debug.ActionLog(
"STS = " +
m_Player.GetSimulationTimeStamp() +
" !success",
this.ToString() ,
"n/a",
"OnInputUserDataProcess",
m_Player.ToString() );
121 }
122#endif
123
124 if (recvAction.UseAcknowledgment())
125 {
127 }
128 else
129 {
131 }
132
133 return false;
134 }
135 return true;
136
137 }
bool m_ActionInputWantEnd
int m_PendingActionAcknowledgmentID
bool m_ActionWantEndRequest
ref ActionReciveData m_PendingActionReciveData
override void RequestInterruptAction()
server requests action interrupt
ActionBase m_PendingAction
proto bool Read(void value_in)
DayZPlayerConstants
defined in C++