Changeset 7832 for code/branches/ai/src/orxonox/controllers/AIController.cc
- Timestamp:
- Jan 27, 2011, 3:58:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai/src/orxonox/controllers/AIController.cc
r7284 r7832 220 220 this->moveToTargetPosition(); 221 221 222 if (this->getControllableEntity() && this->bShooting_ && this->isCloseAtTarget(1000) && this->isLookingAtTarget(math::pi / 20.0f)) 223 this->getControllableEntity()->fire(0); 222 this->doFire(); 224 223 } 225 224 … … 241 240 } 242 241 243 242 if (this->state_ == FREE) 244 243 { 245 244 if (this->target_) … … 253 252 this->moveToTargetPosition(); 254 253 255 if (this->getControllableEntity() && this->bShooting_ && this->isCloseAtTarget(1000) && this->isLookingAtTarget(math::pi / 20.0f)) 256 this->getControllableEntity()->fire(0); 254 this->doFire(); 257 255 } 258 256
Note: See TracChangeset
for help on using the changeset viewer.