Changeset 11327 for code/branches/SpaceRace_HS16
- Timestamp:
- Dec 12, 2016, 2:11:48 PM (8 years ago)
- Location:
- code/branches/SpaceRace_HS16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw
r11312 r11327 1 1 2 2 <!-- Authors: 3 Louis ...? :D3 Louis Meile 4 4 Berkay Berabi 5 5 @2016 … … 46 46 <!-- SOUNDS & MUSIC --> 47 47 48 48 49 49 <WorldSound name="Countdown" position="0,0,0" source="sounds/Countdown.ogg" > 50 50 <events> … … 82 82 83 83 <!-- ------------------SpawnPoint----------------- --> 84 <SpawnPoint position=" 0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" />84 <SpawnPoint position="-50,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" /> 85 85 86 86 <!-- Launch station --> -
code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRace.cc
r11322 r11327 82 82 83 83 84 std::vector<int> spawnpositions;84 /* std::vector<int> spawnpositions; 85 85 86 86 spawnpositions.push_back(200); … … 103 103 spawnpositions.push_back(100); 104 104 spawnpositions.push_back(0); 105 */ 106 int startpos[15]; 107 108 startpos[0] =100; 109 startpos[1] =-40; 110 startpos[2] =0; 111 112 startpos[3] =100; 113 startpos[4] =-40; 114 startpos[5] =100; 115 116 startpos[6] =100; 117 startpos[7] =-40; 118 startpos[8] =-100; 119 120 startpos[9] =0; 121 startpos[10] =-40; 122 startpos[11] =-80; 123 124 startpos[12] =0; 125 startpos[13] =-40; 126 startpos[14] =80; 127 128 /*startpos[15] = 129 startpos[0] = 130 startpos[0] = 131 startpos[0] = 132 startpos[0] = 133 startpos[0] =*/ 134 105 135 106 136 … … 122 152 c=2; 123 153 for (SpaceRaceBot* bot : ObjectList<SpaceRaceBot>()){ 124 bot->getControllableEntity()->setPosition(s pawnpositions.at(a),spawnpositions.at(b),spawnpositions.at(c));154 bot->getControllableEntity()->setPosition(startpos[a],startpos[b],startpos[c]); 125 155 a= a+3; 126 156 b = b+3; … … 131 161 } 132 162 133 134 163 164 135 165 std::string message("BE FAST BE FIRST"); 136 166 this->getGametypeInfo()->sendAnnounceMessage(message); … … 285 315 bool SpaceRace::allowPawnDeath(Pawn* victim, Pawn* originator) 286 316 { 287 return true;317 return false; 288 318 } 289 319 }
Note: See TracChangeset
for help on using the changeset viewer.