This commit is contained in:
parent
12955a7a5f
commit
fe30698db8
6 changed files with 35 additions and 14 deletions
|
@ -313,12 +313,15 @@ void CNpcStaticClamEnemy::collidedWith( CThing *_thisThing )
|
|||
if ( !player->isRecoveringFromHit() )
|
||||
{
|
||||
if ( m_frame >= ( 5 << 8 ) )
|
||||
{
|
||||
if ( m_controlFunc != NPC_CONTROL_COLLISION )
|
||||
{
|
||||
m_oldControlFunc = m_controlFunc;
|
||||
m_controlFunc = NPC_CONTROL_COLLISION;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -430,8 +430,11 @@ void CNpcIronDogfishEnemy::processAttackCollision()
|
|||
{
|
||||
// only detect collision if in attack mode
|
||||
|
||||
if ( m_controlFunc != NPC_CONTROL_COLLISION )
|
||||
{
|
||||
m_oldControlFunc = m_controlFunc;
|
||||
m_controlFunc = NPC_CONTROL_COLLISION;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -513,9 +516,12 @@ void CNpcIronDogfishEnemy::collidedWith( CThing *_thisThing )
|
|||
}
|
||||
|
||||
case DETECT_ALL_COLLISION:
|
||||
{
|
||||
if ( m_controlFunc != NPC_CONTROL_COLLISION )
|
||||
{
|
||||
m_oldControlFunc = m_controlFunc;
|
||||
m_controlFunc = NPC_CONTROL_COLLISION;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -734,9 +734,12 @@ void CNpcFlyingDutchmanEnemy::collidedWith(CThing *_thisThing)
|
|||
}
|
||||
|
||||
case DETECT_ALL_COLLISION:
|
||||
{
|
||||
if ( m_controlFunc != NPC_CONTROL_COLLISION )
|
||||
{
|
||||
m_oldControlFunc = m_controlFunc;
|
||||
m_controlFunc = NPC_CONTROL_COLLISION;
|
||||
}
|
||||
|
||||
processUserCollision( _thisThing );
|
||||
|
||||
|
|
|
@ -840,9 +840,12 @@ void CNpcMotherJellyfishEnemy::collidedWith(CThing *_thisThing)
|
|||
}
|
||||
|
||||
case DETECT_ALL_COLLISION:
|
||||
{
|
||||
if ( m_controlFunc != NPC_CONTROL_COLLISION )
|
||||
{
|
||||
m_oldControlFunc = m_controlFunc;
|
||||
m_controlFunc = NPC_CONTROL_COLLISION;
|
||||
}
|
||||
|
||||
processUserCollision( _thisThing );
|
||||
|
||||
|
|
|
@ -915,9 +915,12 @@ void CNpcEnemy::collidedWith( CThing *_thisThing )
|
|||
}
|
||||
|
||||
case DETECT_ALL_COLLISION:
|
||||
{
|
||||
if ( m_controlFunc != NPC_CONTROL_COLLISION )
|
||||
{
|
||||
m_oldControlFunc = m_controlFunc;
|
||||
m_controlFunc = NPC_CONTROL_COLLISION;
|
||||
}
|
||||
|
||||
processUserCollision( _thisThing );
|
||||
|
||||
|
|
|
@ -122,9 +122,12 @@ void CNpcSmallJellyfish2BackgroundEnemy::collidedWith( CThing *_thisThing )
|
|||
}
|
||||
|
||||
case DETECT_ALL_COLLISION:
|
||||
{
|
||||
if ( m_controlFunc != NPC_CONTROL_COLLISION )
|
||||
{
|
||||
m_oldControlFunc = m_controlFunc;
|
||||
m_controlFunc = NPC_CONTROL_COLLISION;
|
||||
}
|
||||
|
||||
processUserCollision( _thisThing );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue