The file is botclient.cpp. The function is BotClient_CS_Damage. Lines 403..427.
The line 403:
PHP Code:
if ((UTIL_GetTeam (pEnt) == pBot->bot_team) && (!g_b_cv_ffa)) // KWo - 05.10.2006
starts the check if the teamnate was the particular bot's attacker.
Lines 424..427 are added lines posted in my previous post.
PHP Code:
pBot->fAgressionLevel += 0.1; // KWo - 14.06.2018
if (pBot->fAgressionLevel > 1.0) // KWo - 14.06.2018
pBot->fAgressionLevel = 1.0; // KWo - 14.06.2018