This commit is contained in:
parent
e14800a706
commit
5ab91cdcda
1 changed files with 16 additions and 0 deletions
|
@ -622,6 +622,22 @@ void CNpcSubSharkEnemy::processShot( int _frames )
|
|||
|
||||
case NPC_SHOT_GENERIC:
|
||||
{
|
||||
if ( m_carryPlayer )
|
||||
{
|
||||
// spit out player
|
||||
|
||||
CPlayer *player = GameScene.getPlayer();
|
||||
player->setMode( m_oldPlayerMode );
|
||||
m_carryPlayer = false;
|
||||
|
||||
DVECTOR move;
|
||||
move.vx = 16 * _frames;
|
||||
move.vy = -16 * _frames;
|
||||
|
||||
player->shove( move );
|
||||
player->setMoveVelocity( &move );
|
||||
}
|
||||
|
||||
switch ( m_state )
|
||||
{
|
||||
case NPC_GENERIC_HIT_CHECK_HEALTH:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue