- Timestamp:
- May 21, 2010, 10:25:27 AM (14 years ago)
- Location:
- code/branches/presentation3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3
- Property svn:mergeinfo changed
/code/branches/rocket (added) merged: 6778-6781,6783-6785,6803,6809-6811,6813-6818,6827,6834,6863,6878,6900,6902-6905,6943,6948-6950
- Property svn:mergeinfo changed
-
code/branches/presentation3/src/orxonox/controllers/AIController.cc
r5929 r6951 57 57 58 58 // search enemy 59 random = rnd(maxrand);59 /* random = rnd(maxrand); 60 60 if (random < 15 && (!this->target_)) 61 this->searchNewTarget(); 61 this->searchNewTarget();*/ 62 62 63 63 // forget enemy 64 random = rnd(maxrand);65 if (random < 5 && (this->target_))66 this->forgetTarget();64 //random = rnd(maxrand); 65 //if (random < 5 && (this->target_)) 66 // this->forgetTarget(); 67 67 68 68 // next enemy 69 random = rnd(maxrand);69 /* random = rnd(maxrand); 70 70 if (random < 10 && (this->target_)) 71 this->searchNewTarget(); 71 this->searchNewTarget();*/ 72 72 73 73 // fly somewhere … … 87 87 88 88 // shoot 89 random = rnd(maxrand);90 if (random < 75 && (this->target_ && !this->bShooting_))91 this->bShooting_ = true;89 //random = rnd(maxrand); 90 //if (random < 75 && (this->target_ && !this->bShooting_)) 91 // this->bShooting_ = true; 92 92 93 // stop shooting94 random = rnd(maxrand);95 if (random < 25 && (this->bShooting_))96 this->bShooting_ = false;93 //// stop shooting 94 //random = rnd(maxrand); 95 //if (random < 25 && (this->bShooting_)) 96 // this->bShooting_ = false; 97 97 } 98 98
Note: See TracChangeset
for help on using the changeset viewer.