This commit is contained in:
Charles 2001-04-02 15:52:09 +00:00
parent b93a5cb4cb
commit 9153260b12
12 changed files with 400 additions and 77 deletions

View file

@ -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 )