Browse Source

Change ideal monster state in MonsterUse only if monster is idle

hl_urbicide
Roman Chistokhodov 4 years ago committed by Andrey Akhmichin
parent
commit
d86b0bf480
  1. 1
      dlls/monsters.cpp

1
dlls/monsters.cpp

@ -571,6 +571,7 @@ void CBaseMonster::MonsterThink( void ) @@ -571,6 +571,7 @@ void CBaseMonster::MonsterThink( void )
//=========================================================
void CBaseMonster::MonsterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{
if (m_MonsterState == MONSTERSTATE_IDLE)
m_IdealMonsterState = MONSTERSTATE_ALERT;
}

Loading…
Cancel
Save