Fix zombie soldier health.

This commit is contained in:
Night Owl 2017-11-05 20:07:15 +05:00
parent 9a7fb0fcda
commit 0ac6b569d8

View File

@ -250,7 +250,10 @@ void CZombie::Spawn()
pev->solid = SOLID_SLIDEBOX; pev->solid = SOLID_SLIDEBOX;
pev->movetype = MOVETYPE_STEP; pev->movetype = MOVETYPE_STEP;
m_bloodColor = BLOOD_COLOR_GREEN; m_bloodColor = BLOOD_COLOR_GREEN;
pev->health = gSkillData.zombieHealth; if( FClassnameIs( pev, "monster_zombie_soldier" ) )
pev->health = gSkillData.zsoldierHealth;
else
pev->health = gSkillData.zombieHealth;
pev->view_ofs = VEC_VIEW;// position of the eyes relative to monster's origin. pev->view_ofs = VEC_VIEW;// position of the eyes relative to monster's origin.
m_flFieldOfView = 0.5;// indicates the width of this monster's forward view cone ( as a dotproduct result ) m_flFieldOfView = 0.5;// indicates the width of this monster's forward view cone ( as a dotproduct result )
m_MonsterState = MONSTERSTATE_NONE; m_MonsterState = MONSTERSTATE_NONE;