This commit is contained in:
parent
2d7c08721a
commit
c329cb24c2
1 changed files with 14 additions and 7 deletions
|
@ -1154,19 +1154,26 @@ void CNpcEnemy::processShot()
|
||||||
{
|
{
|
||||||
case NPC_GENERIC_HIT_CHECK_HEALTH:
|
case NPC_GENERIC_HIT_CHECK_HEALTH:
|
||||||
{
|
{
|
||||||
m_health -= 5;
|
if ( CLevel::getCurrentChapter() == 1 && CLevel::getCurrentChapterLevel() == 1 )
|
||||||
|
|
||||||
if ( m_health < 0 )
|
|
||||||
{
|
{
|
||||||
m_state = NPC_GENERIC_HIT_DEATH_START;
|
m_state = NPC_GENERIC_HIT_DEATH_START;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_state = NPC_GENERIC_HIT_RECOIL;
|
m_health -= 5;
|
||||||
|
|
||||||
m_animPlaying = true;
|
if ( m_health < 0 )
|
||||||
m_animNo = m_data[m_type].recoilAnim;
|
{
|
||||||
m_frame = 0;
|
m_state = NPC_GENERIC_HIT_DEATH_START;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_state = NPC_GENERIC_HIT_RECOIL;
|
||||||
|
|
||||||
|
m_animPlaying = true;
|
||||||
|
m_animNo = m_data[m_type].recoilAnim;
|
||||||
|
m_frame = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue