- Timestamp:
- Dec 14, 2011, 2:38:37 PM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011
- Property svn:mergeinfo changed
/code/branches/gamecontent (added) merged: 8893,8895,8899-8901,8904,8907,8909-8910,8922-8924,8930,8932,8941-8942,8950-8951,8956
- Property svn:mergeinfo changed
-
code/branches/presentation2011/src/orxonox/controllers/ArtificialController.cc
r8892 r8980 42 42 #include "gametypes/TeamDeathmatch.h" 43 43 #include "gametypes/Dynamicmatch.h" 44 #include "gametypes/Mission.h" 44 45 #include "controllers/WaypointPatrolController.h" 45 46 #include "controllers/NewHumanController.h" … … 92 93 this->target_.setCallback(createFunctor(&ArtificialController::targetDied, this)); 93 94 this->bSetupWorked = false; 94 this->botlevel_ = 0. 2f;95 this->botlevel_ = 0.5f; 95 96 this->mode_ = DEFAULT;////Vector-implementation: mode_.push_back(DEFAULT); 96 97 this->timeout_ = 0; … … 998 999 } 999 1000 1001 Mission* miss = orxonox_cast<Mission*>(gametype); 1002 if (miss) 1003 { 1004 if (entity1->getPlayer()) 1005 team1 = miss->getTeam(entity1->getPlayer()); 1006 1007 if (entity2->getPlayer()) 1008 team2 = miss->getTeam(entity2->getPlayer()); 1009 } 1010 1000 1011 TeamBaseMatchBase* base = 0; 1001 1012 base = orxonox_cast<TeamBaseMatchBase*>(entity1); … … 1110 1121 { 1111 1122 Pawn* pawn = orxonox_cast<Pawn*>(this->getControllableEntity()); 1112 if(pawn )1123 if(pawn && pawn->isA(Class(SpaceShip))) //fix for First Person Mode: check for SpaceShip 1113 1124 { 1114 1125 this->weaponModes_.clear(); // reset previous weapon information
Note: See TracChangeset
for help on using the changeset viewer.