From 1a17ef4e4579a0afa8e08ed0b2a2d2e4f8958530 Mon Sep 17 00:00:00 2001 From: Vaqtincha <51029683+Vaqtincha@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:33:26 +0500 Subject: [PATCH] Reset bot morale on new match(game) (#1025) --- 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())