Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/game/server/neo/bot/behavior/neo_bot_grenade_throw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ ActionResult< CNEOBot > CNEOBotGrenadeThrow::Update( CNEOBot *me, float interval
//---------------------------------------------------------------------------------------------
void CNEOBotGrenadeThrow::OnEnd( CNEOBot *me, Action< CNEOBot > *nextAction )
{
if (!NEORules()) // This can get called on de-init
{
return;
}

// Restore looking and weapon handling behaviors
me->PopRequiredWeapon();
me->StartLookingAroundForEnemies();
Expand Down
5 changes: 5 additions & 0 deletions src/game/server/neo/bot/neo_bot_vision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ void CNEOBotVision::UpdatePotentiallyVisibleNPCVector( void )
*/
bool CNEOBotVision::IsIgnored( CBaseEntity* subject ) const
{
if (!NEORules()) // This can get called on de-init
{
return true;
}

CNEOBot* me = ( CNEOBot* )GetBot()->GetEntity();

if ( me->IsAttentionFocused() )
Expand Down
Loading