Changeset 11260 for code/branches/SpaceRace_HS16
- Timestamp:
- Oct 31, 2016, 4:09:44 PM (8 years ago)
- Location:
- code/branches/SpaceRace_HS16
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw
r11256 r11260 121 121 122 122 123 <!-- First checkpoint launch station -->123 <!-- Launch station --> 124 124 <StaticEntity mass="50" position="-400,-20,0" direction="0,-90,0" collisionType="static"> 125 125 <attached> … … 137 137 </StaticEntity> 138 138 139 139 <!-- ---------------asteroid ellipse1----------------- --> 140 <?lua 141 max = 50 142 for i = 0, max, 1 143 do 144 x = i*1000 145 y = math.cos(i)*20 146 z = math.sin(i)*20 147 ?> 148 <?lua 149 for k = 1, 15, 1 150 do 151 j = math.random() 152 ?> 153 154 <MovableEntity 155 position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>" 156 collisionType = "dynamic" 157 linearDamping = "0.5" 158 angularDamping = "0.01" 159 collisiondamage = "0.01" 160 enablecollisiondamage = "true" 161 scale="<?lua print(j * 5) ?>" > 162 <attached> 163 <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> 164 <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- --> 165 <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> 166 </attached> <?lua end ?> 167 </Model> 168 </attached> 169 <collisionShapes> 170 <SphereCollisionShape radius="<?lua print(j * 80) ?>" /> 171 </collisionShapes> 172 </MovableEntity> 173 <?lua 174 end 175 ?> 176 <?lua end ?> 177 178 <!-- ---------------asteroid ellipse1----------------- --> 179 <?lua 180 max = 50 181 for i = 0, max, 1 182 do 183 x = i*1000 184 y = math.cos(i)*-20 185 z = math.sin(i)*-20 186 ?> 187 <?lua 188 for k = 1, 15, 1 189 do 190 j = math.random() 191 ?> 192 193 <MovableEntity 194 position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>" 195 collisionType = "dynamic" 196 linearDamping = "0.5" 197 angularDamping = "0.01" 198 collisiondamage = "0.01" 199 enablecollisiondamage = "true" 200 scale="<?lua print(j * 5) ?>" > 201 <attached> 202 <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> 203 <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- --> 204 <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> 205 </attached> <?lua end ?> 206 </Model> 207 </attached> 208 <collisionShapes> 209 <SphereCollisionShape radius="<?lua print(j * 80) ?>" /> 210 </collisionShapes> 211 </MovableEntity> 212 <?lua 213 end 214 ?> 215 <?lua end ?> 140 216 141 217 142 218 <!-- ---------------ForceFields----------------- --> 143 <ForceField position="0,0,0" direction="0,-1,0" diameter=500 velocity=2000 length=1000/> 144 145 <OldRaceCheckPoint name="checkpoint1" position="600,0,0" direction="1,0,0" collisionType="static" scale="1" distance="600" checkpointindex="0" islast="false"/> 219 <ForceField position="0,0,0" direction="0,-1,0" diameter=500 velocity=2000 length=1200/> 220 221 <!-- ------------------CheckPoints----------------- --> 222 <OldRaceCheckPoint name="checkpoint1" direction="0,2,0" position="800,20,0" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false"> 223 <attached> 224 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 225 </attached> 226 <collisionShapes> 227 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 228 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 229 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 230 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 231 </collisionShapes> 232 </OldRaceCheckPoint> 233 234 <OldRaceCheckPoint name="checkpoint2" position="1600,60,40" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false"> 235 <attached> 236 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 237 </attached> 238 <collisionShapes> 239 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 240 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 241 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 242 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 243 </collisionShapes> 244 </OldRaceCheckPoint> 245 246 <OldRaceCheckPoint name="checkpoint3" position="2400,100,70" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false"> 247 <attached> 248 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 249 </attached> 250 <collisionShapes> 251 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 252 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 253 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 254 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 255 </collisionShapes> 256 </OldRaceCheckPoint> 257 258 <OldRaceCheckPoint name="checkpoint4" position="3200,150,120" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="false"> 259 <attached> 260 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 261 </attached> 262 <collisionShapes> 263 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 264 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 265 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 266 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 267 </collisionShapes> 268 </OldRaceCheckPoint> 269 270 <OldRaceCheckPoint name="checkpoint5" position="4000,200,140" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="4" islast="false"> 271 <attached> 272 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 273 </attached> 274 <collisionShapes> 275 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 276 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 277 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 278 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 279 </collisionShapes> 280 </OldRaceCheckPoint> 281 282 <OldRaceCheckPoint name="checkpoint6" position="4800,100,100" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="5" islast="false"> 283 <attached> 284 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 285 </attached> 286 <collisionShapes> 287 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 288 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 289 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 290 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 291 </collisionShapes> 292 </OldRaceCheckPoint> 293 294 <OldRaceCheckPoint name="checkpoint7" position="5600,0,-20" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="6" islast="true"> 295 <attached> 296 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 297 </attached> 298 <collisionShapes> 299 <BoxCollisionShape position="0,0,55" halfExtents="55, 10, 10" /> 300 <BoxCollisionShape position="0,0,-55" halfExtents="55, 10, 10" /> 301 <BoxCollisionShape position="55,0,0" halfExtents="10, 10, 55" /> 302 <BoxCollisionShape position="-55,0,0" halfExtents="10, 10, 55" /> 303 </collisionShapes> 304 </OldRaceCheckPoint> 146 305 147 306 </Scene> -
code/branches/SpaceRace_HS16/data/levels/spaceRace.oxw
r11246 r11260 360 360 <OldRaceCheckPoint name="checkpoint10" position="0,-2100,0" collisionType="static" scale="1" distance="40" checkpointindex="9" islast="true" timelimit="150"> 361 361 <attached> 362 < 362 <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" /> 363 363 </attached> 364 364 <collisionShapes> -
code/branches/SpaceRace_HS16/data/levels/templates/fastship.oxt
r11238 r11260 17 17 shieldrechargewaittime = 1 18 18 19 primaryThrust = 50020 auxilaryThrust = 5021 rotationThrust = 7019 primaryThrust = 10000 20 auxilaryThrust = 10000 21 rotationThrust = 50 22 22 23 lift = 1;23 lift = 0; 24 24 stallSpeed = 220; 25 25 26 boostPower = 500 27 boostPowerRate = 5 26 27 boostPower = 1500 28 boostPowerRate = 10 28 29 boostRate = 10 29 30 boostCooldownDuration = 10 30 31 31 shakeFrequency = 6032 shakeAmplitude = 3032 shakeFrequency = 30 33 shakeAmplitude = 15 33 34 34 35 collisionType = "dynamic" … … 84 85 <Template name=spaceshipassffengine baseclass=MultiStateEngine> 85 86 <MultiStateEngine 86 boostfactor = 287 boostfactor = 20 87 88 88 speedfront = 30089 speedback = 10089 speedfront = 500 90 speedback = 500 90 91 speedleftright = 50 91 92 speedupdown = 50 … … 94 95 defEngineSndBoost = "sounds/Engine_high.ogg" 95 96 96 accelerationfront = 100097 accelerationbrake = 100097 accelerationfront = 5000 98 accelerationbrake = 5000 98 99 accelerationback = 125 99 100 accelerationleftright = 125 -
code/branches/SpaceRace_HS16/src/modules/gametypes/OldSpaceRace.cc
r11256 r11260 88 88 int s = this->clock_.getSeconds(); 89 89 int ms = static_cast<int>(this->clock_.getMilliseconds()-1000*s); 90 const std::string& message = " You win!! You have reached the last check pointafter "+ multi_cast<std::string>(s)90 const std::string& message = "Congratulations! Last check point reached after "+ multi_cast<std::string>(s) 91 91 + "." + multi_cast<std::string>(ms) + " seconds."; 92 92 this->getGametypeInfo()->sendAnnounceMessage(message);
Note: See TracChangeset
for help on using the changeset viewer.