Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Change ideal monster state in MonsterUse only if monster is idle
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave authored and nekonomicon committed Jul 6, 2021
1 parent 201206c commit d86b0bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlls/monsters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ void CBaseMonster::MonsterThink( void )
//=========================================================
void CBaseMonster::MonsterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{
m_IdealMonsterState = MONSTERSTATE_ALERT;
if (m_MonsterState == MONSTERSTATE_IDLE)
m_IdealMonsterState = MONSTERSTATE_ALERT;
}

//=========================================================
Expand Down

0 comments on commit d86b0bf

Please sign in to comment.