mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 03:58:14 +03:00
Actor Improvements p3_3
This commit is contained in:
parent
c665915d0f
commit
ec4ae7d79d
20 changed files with 322 additions and 503 deletions
|
@ -54,21 +54,18 @@ void Actor::Begin_Alarm
|
|||
|
||||
if( PathExists() )
|
||||
{
|
||||
m_State = 601;
|
||||
m_iStateTime = level.inttime;
|
||||
TransitionState(601, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_State = 600;
|
||||
m_iStateTime = level.inttime;
|
||||
TransitionState(600, 0);
|
||||
parm.movefail = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLeashHome( origin );
|
||||
m_State = 600;
|
||||
m_iStateTime = level.inttime;
|
||||
TransitionState(600, 0);
|
||||
m_AlarmThread.Execute( this );
|
||||
}
|
||||
}
|
||||
|
@ -93,8 +90,7 @@ void Actor::State_Alarm_StartThread
|
|||
else
|
||||
SetLeashHome( origin );
|
||||
|
||||
m_State = 600;
|
||||
m_iStateTime = level.inttime;
|
||||
TransitionState(600, 0);
|
||||
m_AlarmThread.Execute();
|
||||
}
|
||||
|
||||
|
@ -119,8 +115,7 @@ void Actor::State_Alarm_Move
|
|||
}
|
||||
else
|
||||
{
|
||||
m_State = 600;
|
||||
m_iStateTime = level.inttime;
|
||||
TransitionState(600, 0);
|
||||
parm.movefail = true;
|
||||
|
||||
Anim_Aim();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue