View Single Post
Re: Turn off Bots shooting back after Teamattack
Old
  (#45)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Turn off Bots shooting back after Teamattack - 24-06-2018

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 
  
Reply With Quote