Reset bot morale on new match(game) (#1025)

This commit is contained in:
Vaqtincha 2024-12-11 21:33:26 +05:00 committed by GitHub
parent 6f0d17bb74
commit 1a17ef4e45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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())