With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Discuss & improve the game engine.

Moderators: sparcdr, torhu, Tequila

SG1.1b4 bots focusing at one target

Postby TheDoctor » Sun Mar 20, 2011 1:08 am

SG1.1b4 bots have difficulties focusing on one target when there are multiple enemies. To revert back to the old SG1.0 behavior (i.e. aiming at the closest enemy), comment out the following lines in game/ai_dmq3.c in int BotFindEnemy(bot_state_t*, int):
Code: Select all
// #ifndef SMOKINGUNS
//       if (!EntityCarriesFlag(&entinfo))
//       {
         //if this enemy is further away than the current one
         if (curenemy >= 0 && squaredist > cursquaredist) continue;
//       } //end if
// #endif
User avatar
TheDoctor
Smokin' Amigo!
 
Posts: 818
Joined: Sun Jun 06, 2010 3:31 am



Return to Code

Show Sidebar
Show Sidebar

User Control Panel

cron