mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 14:55:30 +03:00
Fixed an issue with the ForceThisNPCToStopBusy input which caused NPCs to keep acting busy when they shouldn't
This commit is contained in:
parent
45ca64863a
commit
425057453b
@ -2742,8 +2742,15 @@ void CAI_ActBusyGoal::InputForceThisNPCToStopBusy( inputdata_t &inputdata )
|
||||
if ( !pBehavior )
|
||||
return;
|
||||
|
||||
// Just stop busying
|
||||
pBehavior->StopBusying();
|
||||
if (!IsActive() && pBehavior->GetActBusyGoal() == this)
|
||||
{
|
||||
pBehavior->Disable();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Just stop busying
|
||||
pBehavior->StopBusying();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -153,6 +153,10 @@ public:
|
||||
bool IsInSafeZone( CBaseEntity *pEntity );
|
||||
int CountEnemiesInSafeZone();
|
||||
|
||||
#ifdef MAPBASE
|
||||
CAI_ActBusyGoal *GetActBusyGoal() const { return m_hActBusyGoal; }
|
||||
#endif
|
||||
|
||||
private:
|
||||
virtual int SelectSchedule( void );
|
||||
int SelectScheduleForLeaving( void );
|
||||
|
Loading…
Reference in New Issue
Block a user