- Timestamp:
- Feb 3, 2011, 5:46:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai/src/orxonox/controllers/ArtificialController.cc
r7842 r7843 53 53 SetConsoleCommand("ArtificialController", "formationsize", &ArtificialController::formationsize); 54 54 SetConsoleCommand("ArtificialController", "setbotlevel", &ArtificialController::setAllBotLevel); 55 56 55 57 56 static const unsigned int STANDARD_MAX_FORMATION_SIZE = 7; … … 131 130 XMLPortParam(ArtificialController, "formationSize", setFormationSize, getFormationSize, xmlelement, mode).defaultValues(STANDARD_MAX_FORMATION_SIZE); 132 131 XMLPortParam(ArtificialController, "passive", setPassive, getPassive, xmlelement, mode).defaultValues(false); 133 XMLPortParam(ArtificialController, "level", setBotLevel, getBotLevel, xmlelement, mode).defaultValues(1.0f);132 //XMLPortParam(ArtificialController, "level", setBotLevel, getBotLevel, xmlelement, mode).defaultValues(0.0f); 134 133 } 135 134 … … 1033 1032 bSetupWorked=true; 1034 1033 } 1035 else if(this->getControllableEntity()&&(numberOfWeapons>0)&&this->bShooting_ && this->isCloseAtTarget( 1000 + botlevel_*200) && this->isLookingAtTarget(math::pi / 20.0f))1034 else if(this->getControllableEntity()&&(numberOfWeapons>0)&&this->bShooting_ && this->isCloseAtTarget((1 + 2*botlevel_)*1000) && this->isLookingAtTarget(math::pi / 20.0f)) 1036 1035 { 1037 1036 if (this->isCloseAtTarget(130) && this->isLookingAtTarget(math::pi / 20.0f)&&(weapons[1]==1) )
Note: See TracChangeset
for help on using the changeset viewer.