Changeset 9338 for code/branches/presentation2012merge
- Timestamp:
- Jul 30, 2012, 9:25:47 PM (12 years ago)
- Location:
- code/branches/presentation2012merge
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/data/levels/dynamicMatch.oxw
r9272 r9338 10 10 include("stats.oxo") 11 11 include("templates/spaceshipAssff.oxt") 12 include("templates/spaceshipSwallow.oxt") 13 include("templates/spaceshipPirate.oxt") 12 14 include("templates/spaceshipGhost.oxt") 13 15 include("dynamicMatchHUD.oxo") … … 39 41 <!-- -----------12-Spawnpoints around the planet------------- --> 40 42 <!-- inner Spawnpoints --> 41 <TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>42 <TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>43 <TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>44 <TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>45 <TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>46 <TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>43 <TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 44 <TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 45 <TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 46 <TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 47 <TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 48 <TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 47 49 <!--outer Spawnpoints --> 48 <TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceship assff/>49 <TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceship assff/>50 <TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceship assff/>51 <TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceship assff/>52 <TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>53 <TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>50 <TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceshippirate/> 51 <TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshippirate/> 52 <TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 53 <TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 54 <TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 55 <TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 54 56 55 57 <?lua … … 64 66 createSpaceStationPar(0,2,1,2,1,4,1,50) 65 67 ?> 66 <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>67 <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>68 <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceship assff/>68 <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 69 <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 70 <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/> 69 71 </attached> 70 72 </StaticEntity> -
code/branches/presentation2012merge/src/orxonox/gametypes/Dynamicmatch.cc
r9286 r9338 82 82 this->numberOf[killer]=0; 83 83 this->tutorial=true; 84 this->pointsPerTime= 0.0f;84 this->pointsPerTime=1.0f; 85 85 this->setHUDTemplate("DynamicmatchHUD"); 86 86 } … … 453 453 { 454 454 //pigs: 1 + every 6th player is a pig 455 if ( (1 +this->getNumberOfPlayers()/6) > numberOf[piggy])455 if ( (1 + getPlayerCount()/6) > numberOf[piggy]) 456 456 { 457 457 notEnoughPigs=true; … … 502 502 } 503 503 //killers: every 4th player is a killer 504 if (get NumberOfPlayers()/4 > numberOf[killer])504 if (getPlayerCount()/4 > numberOf[killer]) 505 505 { 506 506 notEnoughKillers=true; -
code/branches/presentation2012merge/src/orxonox/gametypes/Dynamicmatch.h
r8727 r9338 81 81 SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const; 82 82 83 83 84 protected: 85 inline int getPlayerCount() const 86 { return this->numberOf[chaser] + numberOf[piggy] + this->numberOf[killer]; } 84 87 85 88 std::map< PlayerInfo*, int > playerParty_; //player's parties are recorded here
Note: See TracChangeset
for help on using the changeset viewer.