mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-09-10 05:02:32 +00:00
Change ideal monster state in MonsterUse only if monster is idle
This commit is contained in:
parent
201206ccfd
commit
d86b0bf480
@ -571,6 +571,7 @@ void CBaseMonster::MonsterThink( void )
|
|||||||
//=========================================================
|
//=========================================================
|
||||||
void CBaseMonster::MonsterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
|
void CBaseMonster::MonsterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
|
||||||
{
|
{
|
||||||
|
if (m_MonsterState == MONSTERSTATE_IDLE)
|
||||||
m_IdealMonsterState = MONSTERSTATE_ALERT;
|
m_IdealMonsterState = MONSTERSTATE_ALERT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user