Adjust Gonome IgnoreConditions and capability to match original Opposing Force (#308)

This commit is contained in:
Roman Chistokhodov 2022-08-07 14:24:27 +03:00 committed by GitHub
parent 59014b1389
commit efb3c3cb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -638,7 +638,11 @@ int CGonome::IgnoreConditions( void )
{
int iIgnore = CBaseMonster::IgnoreConditions();
if( m_Activity == ACT_MELEE_ATTACK1 )
if (m_Activity == ACT_RANGE_ATTACK1)
{
iIgnore |= bits_COND_LIGHT_DAMAGE | bits_COND_HEAVY_DAMAGE | bits_COND_ENEMY_TOOFAR | bits_COND_ENEMY_OCCLUDED;
}
else if( m_Activity == ACT_MELEE_ATTACK1 )
{
if( m_flNextFlinch >= gpGlobals->time )
iIgnore |= ( bits_COND_LIGHT_DAMAGE | bits_COND_HEAVY_DAMAGE );
@ -670,6 +674,7 @@ void CGonome::Spawn()
pev->health = gSkillData.gonomeHealth;
m_flFieldOfView = 0.2;// indicates the width of this monster's forward view cone ( as a dotproduct result )
m_MonsterState = MONSTERSTATE_NONE;
m_afCapability = bits_CAP_DOORS_GROUP;
m_flNextThrowTime = gpGlobals->time;