[Orxonox-commit 3141] r7834 - in code/branches/ai: data/levels src/orxonox/controllers

jo at orxonox.net jo at orxonox.net
Thu Jan 27 22:55:30 CET 2011


Author: jo
Date: 2011-01-27 22:55:30 +0100 (Thu, 27 Jan 2011)
New Revision: 7834

Modified:
   code/branches/ai/data/levels/gametype_lastmanstanding.oxw
   code/branches/ai/src/orxonox/controllers/ArtificialController.cc
Log:
The bot's level can be set via spawnpoints. Example: lastmanstanding level

Modified: code/branches/ai/data/levels/gametype_lastmanstanding.oxw
===================================================================
--- code/branches/ai/data/levels/gametype_lastmanstanding.oxw	2011-01-27 18:50:16 UTC (rev 7833)
+++ code/branches/ai/data/levels/gametype_lastmanstanding.oxw	2011-01-27 21:55:30 UTC (rev 7834)
@@ -73,7 +73,7 @@
     j = 1
     ?>
 
-    <SpawnPoint team=0 position="<?lua print(y*1.4+z*0.2) ?>,0,<?lua print(z*1.4-y*0.2) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
+    <SpawnPoint team=0 position="<?lua print(y*1.4+z*0.2) ?>,0,<?lua print(z*1.4-y*0.2) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff level="9.9f"/>
 
     <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static >
       <attached>

Modified: code/branches/ai/src/orxonox/controllers/ArtificialController.cc
===================================================================
--- code/branches/ai/src/orxonox/controllers/ArtificialController.cc	2011-01-27 18:50:16 UTC (rev 7833)
+++ code/branches/ai/src/orxonox/controllers/ArtificialController.cc	2011-01-27 21:55:30 UTC (rev 7834)
@@ -85,7 +85,7 @@
         this->target_.setCallback(createFunctor(&ArtificialController::targetDied, this));
 	this->bSetupWorked = false;
 	this->numberOfWeapons = 0;
-	this->botlevel_ = 10.0f;
+	this->botlevel_ = 1.0f;
     }
 
     ArtificialController::~ArtificialController()




More information about the Orxonox-commit mailing list