From b5168657d565592834dd92f801552e707a1f11e6 Mon Sep 17 00:00:00 2001 From: Vaqtincha Date: Fri, 8 Nov 2024 03:19:46 +0500 Subject: [PATCH] Reset bot morale on new match(game) --- regamedll/dlls/bot/cs_bot_event.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/regamedll/dlls/bot/cs_bot_event.cpp b/regamedll/dlls/bot/cs_bot_event.cpp index 199616659..70411c8e5 100644 --- a/regamedll/dlls/bot/cs_bot_event.cpp +++ b/regamedll/dlls/bot/cs_bot_event.cpp @@ -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())