Browse Source

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

opforfixed
Roman Chistokhodov 2 years ago committed by GitHub
parent
commit
efb3c3cb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dlls/gearbox/gonome.cpp

7
dlls/gearbox/gonome.cpp

@ -638,7 +638,11 @@ int CGonome::IgnoreConditions( void ) @@ -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() @@ -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;

Loading…
Cancel
Save