This commit is contained in:
parent
7f60e855d5
commit
d21a42d53d
5 changed files with 37 additions and 0 deletions
|
@ -22,6 +22,8 @@ void CNpcLinearPlatform::postInit()
|
|||
CNpcPlatform::postInit();
|
||||
|
||||
m_npcPath.setPathType( CNpcPath::PONG_PATH );
|
||||
|
||||
m_silent = false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -35,6 +37,14 @@ void CNpcLinearPlatform::processMovement( int _frames )
|
|||
bool pathComplete;
|
||||
bool waypointChange;
|
||||
|
||||
if ( !m_silent )
|
||||
{
|
||||
if(m_soundId==NOT_PLAYING)
|
||||
{
|
||||
m_soundId=CSoundMediator::playSfx(CSoundMediator::SFX_ELEVATOR_LOOP,true,true);
|
||||
}
|
||||
}
|
||||
|
||||
s16 headingToTarget = m_npcPath.think( Pos, &pathComplete, &waypointChange, &xDist, &yDist );
|
||||
|
||||
if ( !pathComplete )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue