Skip to content

Commit

Permalink
Reset bot morale on new match(game) (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha authored Dec 11, 2024
1 parent 6f0d17b commit 1a17ef4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions regamedll/dlls/bot/cs_bot_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ void CCSBot::OnEvent(GameEventType event, CBaseEntity *pEntity, CBaseEntity *pOt
DecreaseMorale();
}
break;
#ifdef REGAMEDLL_FIXES
case EVENT_NEW_MATCH:
m_morale = POSITIVE; // starting a new round makes everyone a little happy
break;
#endif
}

if (!IsAlive())
Expand Down

0 comments on commit 1a17ef4

Please sign in to comment.