This commit is contained in:
parent
b93a5cb4cb
commit
9153260b12
12 changed files with 400 additions and 77 deletions
|
@ -23,6 +23,10 @@
|
|||
#include "player\player.h"
|
||||
#endif
|
||||
|
||||
#ifndef __ANIM_SHARKMAN_HEADER__
|
||||
#include <ACTOR_SHARKMAN_ANIM.h>
|
||||
#endif
|
||||
|
||||
|
||||
void CNpcEnemy::processCloseSharkManAttack( int _frames )
|
||||
{
|
||||
|
@ -36,6 +40,13 @@ void CNpcEnemy::processCloseSharkManAttack( int _frames )
|
|||
|
||||
s16 headingToPlayer = ratan2( playerYDist, playerXDist );
|
||||
|
||||
if ( !m_animPlaying )
|
||||
{
|
||||
m_animPlaying = true;
|
||||
m_animNo = ANIM_SHARKMAN_RUN;
|
||||
m_frame = 0;
|
||||
}
|
||||
|
||||
decDir = m_heading - headingToPlayer;
|
||||
|
||||
if ( decDir < 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue