4 bool m_callLoopEnd =
false;
12 if ((
GetState() == STATE_LOOP_LOOP ||
GetState() == STATE_LOOP_LOOP2 || m_inLoop) )
17 actionS.OnStartAnimationLoop( m_ActionData );
23 actionS.Do(m_ActionData, m_ActionData.m_State);
25 else if (m_callLoopEnd ==
true)
28 actionE.OnEndAnimationLoop( m_ActionData );
29 m_callLoopEnd =
false;
35 override void OnAnimationEvent(
int pEventID)
37 if ( m_ActionData && m_ActionData.m_Action )
46 Debug.ActionLog(
"Time stamp: " + m_ActionData.m_Player.GetSimulationTimeStamp() +
" / " + pEventID,
this.ToString() ,
"n/a",
"OnAnimationEvent", m_ActionData.m_Player.ToString() );
62 action.OnAnimationEvent( m_ActionData );
72 override void InitActionComponent()
79 if ( m_ActionData.m_ActionComponent )
81 m_ActionData.m_ActionComponent.Init(m_ActionData);
88 m_SoundObject = m_ActionData.m_Action.PlayActionSound(m_ActionData.m_Player);
91 override void EndActionComponent()
98 else if (m_ActionData.m_State ==
UA_CANCEL )
101 if(action.HasAlternativeInterrupt())
122 void UserEndsAction()
124 if ( m_ActionData.m_ActionComponent )
126 m_ActionData.m_State = m_ActionData.m_ActionComponent.Cancel(m_ActionData);
128 EndActionComponent();
134 PluginAdminLog m_AdminLog;
147 override void OnEndInput(
ActionData action_data )
150 if(
Class.CastTo(callback, action_data.m_Callback) )
152 if ( callback.GetState() != callback.STATE_LOOP_END && callback.GetState() != callback.STATE_LOOP_END2 )
154 callback.UserEndsAction();
159 bool HasAlternativeInterrupt()
164 override typename GetInputType()
169 override int GetActionCategory()
174 void OnStartAnimationLoop(
ActionData action_data )
178 Debug.ActionLog(
"Time stamp: " + action_data.m_Player.GetSimulationTimeStamp(),
this.ToString() ,
"n/a",
"OnStartAnimationLoop", action_data.m_Player.ToString() );
183 OnStartAnimationLoopServer(action_data);
187 OnStartAnimationLoopClient(action_data);
189 action_data.m_WasExecuted =
false;
192 void OnEndAnimationLoop(
ActionData action_data )
196 Debug.ActionLog(
"Time stamp: " + action_data.m_Player.GetSimulationTimeStamp(),
this.ToString() ,
"n/a",
"OnEndAnimationLoop", action_data.m_Player.ToString() );
200 OnEndAnimationLoopServer(action_data);
204 OnEndAnimationLoopClient(action_data);
206 action_data.m_WasExecuted =
false;
209 void OnFinishProgress(
ActionData action_data )
213 Debug.ActionLog(
"Time stamp: " + action_data.m_Player.GetSimulationTimeStamp(),
this.ToString() ,
"n/a",
"OnFinishProgress", action_data.m_Player.ToString() );
217 OnFinishProgressServer(action_data);
221 m_AdminLog.OnContinouousAction( action_data );
226 OnFinishProgressClient(action_data);
228 action_data.m_WasExecuted =
false;
232 protected void OnStartAnimationLoopServer(
ActionData action_data )
234 action_data.m_WasActionStarted =
true;
237 protected void OnStartAnimationLoopClient(
ActionData action_data )
239 action_data.m_WasActionStarted =
true;
242 protected void OnEndAnimationLoopServer(
ActionData action_data )
245 protected void OnEndAnimationLoopClient(
ActionData action_data )
249 protected void OnFinishProgressServer(
ActionData action_data )
253 protected void OnFinishProgressClient(
ActionData action_data )