- Timestamp:
- Jul 19, 2011, 10:27:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/controllers/AIController.cc
r8758 r8766 226 226 this->aimAtTarget(); 227 227 random = rnd(maxrand); 228 if(this->botlevel_*100 > random )228 if(this->botlevel_*100 > random && !this->isCloseAtTarget(20)) 229 229 this->follow(); //If a bot is shooting a player, it shouldn't let him go away easily. 230 230 } … … 262 262 this->aimAtTarget(); 263 263 random = rnd(maxrand); 264 if(this->botlevel_*100 > random) 264 265 if(this->botlevel_*100 > random && !this->isCloseAtTarget(20)) 265 266 this->follow();//If a bot is shooting a player, it shouldn't let him go away easily. 266 267 }
Note: See TracChangeset
for help on using the changeset viewer.