- Timestamp:
- Jul 5, 2011, 11:59:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/controllers/ArtificialController.cc
r8723 r8733 1049 1049 else if((weapons[3]==3)&& this->isCloseAtTarget(400) /*&&projectiles[3]*/ ) 1050 1050 {//ROCKET: mid range weapon 1051 //TODO: Which weapon is the rocket?How many rockets are available?1051 //TODO: How many rockets are available? 1052 1052 this->mode_ = ROCKET;//Vector-implementation: mode_.push_back(ROCKET); 1053 this->getControllableEntity()->fire(3);//launch rocket 1053 this->getControllableEntity()->fire(3);//launch rocket BUG IS TRIGGERED HERE. 1054 1054 if(this->getControllableEntity()&&this->target_)//after fire(3) getControllableEntity() refers to the rocket! 1055 1055 { … … 1081 1081 for(unsigned int i=0; i<WeaponSystem::MAX_WEAPON_MODES; i++) 1082 1082 { 1083 const std::string wpn = getWeaponname(i, pawn); COUT(0)<<wpn<< std::endl;//Temporary debug info.1083 //const std::string wpn = getWeaponname(i, pawn); COUT(0)<<wpn<< std::endl;//Temporary debug info. 1084 1084 /*if(wpn=="") 1085 1085 weapons[i]=-1;
Note: See TracChangeset
for help on using the changeset viewer.