mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-27 07:15:31 +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;
|
||||
|
||||
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