From 991fd0cd4a75753db62c901766eb634767c18d5e Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Mon, 29 May 2023 04:56:39 +0300 Subject: [PATCH] Fix being able to break scripted_sequence by +using friendly NPCs to make them follow player (#375) --- dlls/talkmonster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/talkmonster.cpp b/dlls/talkmonster.cpp index 2b3ac14f..83100466 100644 --- a/dlls/talkmonster.cpp +++ b/dlls/talkmonster.cpp @@ -1344,7 +1344,7 @@ void CTalkMonster::StartFollowing( CBaseEntity *pLeader ) BOOL CTalkMonster::CanFollow( void ) { - if( m_MonsterState == MONSTERSTATE_SCRIPT ) + if( m_MonsterState == MONSTERSTATE_SCRIPT || m_IdealMonsterState == MONSTERSTATE_SCRIPT ) { if( !m_pCine ) return FALSE;