Skip to content

Commit

Permalink
Disable Thinking if Frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
eon (bloodycop) committed Jan 25, 2025
1 parent 7976a21 commit b73edcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sp/src/game/server/ai_basenpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3390,6 +3390,11 @@ bool CAI_BaseNPC::PreThink( void )
NDebugOverlay::Line( EyePosition(), m_hOpeningDoor->WorldSpaceCenter(), 255, 255, 255, false, .1 );
}

// Disable NPC thinking if they're frozen.
if ( IsCurSchedule( SCHED_NPC_FREEZE ) ) {
return false;
}

return true;
}

Expand Down

0 comments on commit b73edcc

Please sign in to comment.