[9016] | 1 | <LevelInfo |
---|
| 2 | name = "Asteroids Race" |
---|
| 3 | description = "Reach the checkpoints and avoid asteroids." |
---|
[9373] | 4 | tags = "gametype, singleplayer" |
---|
[9016] | 5 | screenshot = "asteroids.png" |
---|
| 6 | /> |
---|
| 7 | |
---|
[5453] | 8 | <?lua |
---|
[7679] | 9 | include("HUDTemplates3.oxo") |
---|
[5654] | 10 | include("stats.oxo") |
---|
[7679] | 11 | include("templates/spaceshipAssff.oxt") |
---|
| 12 | include("templates/lodInformation.oxt") |
---|
[5453] | 13 | ?> |
---|
| 14 | |
---|
| 15 | <Level |
---|
[9016] | 16 | gametype = "Asteroids" |
---|
[5453] | 17 | > |
---|
[7163] | 18 | <templates> |
---|
| 19 | <Template link=lodtemplate_default /> |
---|
| 20 | </templates> |
---|
[8706] | 21 | <?lua include("includes/notifications.oxi") ?> |
---|
[5453] | 22 | |
---|
[7163] | 23 | <Scene |
---|
| 24 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 25 | skybox = "Orxonox/Starbox" |
---|
| 26 | > |
---|
[5453] | 27 | |
---|
[7163] | 28 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
[5453] | 29 | |
---|
[7163] | 30 | <SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5453] | 31 | |
---|
[7163] | 32 | <?lua |
---|
| 33 | for i = 1, 250, 1 |
---|
| 34 | do |
---|
| 35 | j = math.random() |
---|
| 36 | ?> |
---|
[5453] | 37 | |
---|
[6417] | 38 | <MovableEntity |
---|
[7163] | 39 | position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>" |
---|
| 40 | collisionType = dynamic |
---|
| 41 | linearDamping = 0.8 |
---|
| 42 | angularDamping = 0 |
---|
[8079] | 43 | scale = "<?lua print(j * 150)?>" |
---|
[7163] | 44 | collisiondamage = 1 |
---|
| 45 | enablecollisiondamage = true |
---|
| 46 | > |
---|
[5521] | 47 | <attached> |
---|
[8079] | 48 | <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
[5521] | 49 | </attached> |
---|
| 50 | <collisionShapes> |
---|
[5540] | 51 | <SphereCollisionShape radius="<?lua print(j * 350) ?>" /> |
---|
[5521] | 52 | </collisionShapes> |
---|
| 53 | </MovableEntity> |
---|
[5453] | 54 | |
---|
[7163] | 55 | <?lua |
---|
| 56 | end |
---|
| 57 | ?> |
---|
| 58 | |
---|
[5540] | 59 | <!-- |
---|
[7163] | 60 | <MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
| 61 | <attached> |
---|
| 62 | <Model mass=100 mesh="ast1.mesh" /> |
---|
| 63 | </attached> |
---|
| 64 | <collisionShapes> |
---|
| 65 | <SphereCollisionShape radius=11.75 /> |
---|
| 66 | </collisionShapes> |
---|
| 67 | </MovableEntity> |
---|
[5453] | 68 | |
---|
[5540] | 69 | |
---|
[7163] | 70 | <MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
| 71 | <attached> |
---|
| 72 | <Model mass=100 mesh="ast1.mesh" /> |
---|
| 73 | </attached> |
---|
| 74 | <collisionShapes> |
---|
| 75 | <SphereCollisionShape radius=22.5 /> |
---|
| 76 | </collisionShapes> |
---|
| 77 | </MovableEntity> |
---|
[5453] | 78 | |
---|
[5521] | 79 | |
---|
[7163] | 80 | <MovableEntity position="0,600,0" scale=34 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
| 81 | <attached> |
---|
| 82 | <Model mass=100 mesh="ast1.mesh" /> |
---|
| 83 | </attached> |
---|
| 84 | <collisionShapes> |
---|
| 85 | <SphereCollisionShape radius=76.5 /> |
---|
| 86 | </collisionShapes> |
---|
| 87 | </MovableEntity> |
---|
[5540] | 88 | |
---|
[7163] | 89 | <MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
| 90 | <attached> |
---|
| 91 | <Model mass=100 mesh="ast1.mesh" /> |
---|
| 92 | </attached> |
---|
| 93 | <collisionShapes> |
---|
| 94 | <SphereCollisionShape radius=200 /> |
---|
| 95 | </collisionShapes> |
---|
| 96 | </MovableEntity> |
---|
[5540] | 97 | --> |
---|
| 98 | |
---|
[7163] | 99 | <SpaceShip position="2000,200,0" lookat="0,0,0" > |
---|
| 100 | <templates> |
---|
| 101 | <Template link=spaceshipassff /> |
---|
| 102 | </templates> |
---|
| 103 | <controller> |
---|
| 104 | <AIController /> |
---|
| 105 | </controller> |
---|
| 106 | </SpaceShip> |
---|
[5556] | 107 | |
---|
[7163] | 108 | <SpaceShip position="8000,300,700" lookat="0,0,0" > |
---|
| 109 | <templates> |
---|
| 110 | <Template link=spaceshipassff /> |
---|
| 111 | </templates> |
---|
| 112 | <controller> |
---|
| 113 | <AIController /> |
---|
| 114 | </controller> |
---|
| 115 | </SpaceShip> |
---|
[5556] | 116 | |
---|
[7163] | 117 | <SpaceShip position="10200,400,-600" lookat="0,0,0" > |
---|
| 118 | <templates> |
---|
| 119 | <Template link=spaceshipassff /> |
---|
| 120 | </templates> |
---|
| 121 | <controller> |
---|
| 122 | <AIController /> |
---|
| 123 | </controller> |
---|
| 124 | </SpaceShip> |
---|
[5556] | 125 | |
---|
[7163] | 126 | <ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120> |
---|
| 127 | <attached> |
---|
| 128 | <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 /> |
---|
| 129 | </attached> |
---|
| 130 | </ForceField> |
---|
[5521] | 131 | |
---|
[7163] | 132 | <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200> |
---|
| 133 | <attached> |
---|
| 134 | <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 /> |
---|
| 135 | </attached> |
---|
| 136 | </ForceField> |
---|
[5528] | 137 | |
---|
[7163] | 138 | <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400> |
---|
| 139 | <attached> |
---|
| 140 | <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 /> |
---|
| 141 | </attached> |
---|
| 142 | </ForceField> |
---|
[5528] | 143 | |
---|
[7163] | 144 | <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300> |
---|
| 145 | <attached> |
---|
| 146 | <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 /> |
---|
| 147 | </attached> |
---|
| 148 | </ForceField> |
---|
[5488] | 149 | |
---|
| 150 | |
---|
[9348] | 151 | <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=24 /> |
---|
[5488] | 152 | |
---|
[5497] | 153 | |
---|
[9348] | 154 | <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=20> |
---|
[5516] | 155 | <events> |
---|
[7163] | 156 | <activity> |
---|
| 157 | <EventListener event=trigger1 /> |
---|
| 158 | </activity> |
---|
[5516] | 159 | </events> |
---|
[7163] | 160 | <attached> |
---|
| 161 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
| 162 | <events> |
---|
| 163 | <visibility> |
---|
| 164 | <EventTrigger invert=true> |
---|
| 165 | <events> |
---|
| 166 | <trigger> |
---|
| 167 | <EventListener event=trigger1 /> |
---|
| 168 | </trigger> |
---|
| 169 | </events> |
---|
| 170 | </EventTrigger> |
---|
| 171 | </visibility> |
---|
| 172 | </events> |
---|
| 173 | </Billboard> |
---|
| 174 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
| 175 | <events> |
---|
| 176 | <visibility> |
---|
| 177 | <EventTrigger> |
---|
| 178 | <events> |
---|
| 179 | <trigger> |
---|
| 180 | <EventListener event=trigger1 /> |
---|
| 181 | </trigger> |
---|
| 182 | </events> |
---|
| 183 | <EventTrigger invert=true> |
---|
| 184 | <events> |
---|
| 185 | <trigger> |
---|
| 186 | <EventListener event=trigger2 /> |
---|
| 187 | </trigger> |
---|
| 188 | </events> |
---|
| 189 | </EventTrigger> |
---|
| 190 | </EventTrigger> |
---|
| 191 | </visibility> |
---|
| 192 | </events> |
---|
| 193 | </BlinkingBillboard> |
---|
| 194 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
| 195 | <events> |
---|
| 196 | <visibility> |
---|
| 197 | <EventListener event=trigger2 /> |
---|
| 198 | </visibility> |
---|
| 199 | </events> |
---|
| 200 | </Billboard> |
---|
| 201 | </attached> |
---|
| 202 | </CheckPoint> |
---|
| 203 | |
---|
| 204 | |
---|
[9348] | 205 | <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
[5521] | 206 | <events> |
---|
[7163] | 207 | <activity> |
---|
[5516] | 208 | <EventListener event=trigger2 /> |
---|
[7163] | 209 | </activity> |
---|
[5516] | 210 | </events> |
---|
[7163] | 211 | <attached> |
---|
| 212 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
| 213 | <events> |
---|
| 214 | <visibility> |
---|
| 215 | <EventTrigger invert=true> |
---|
| 216 | <events> |
---|
| 217 | <trigger> |
---|
| 218 | <EventListener event=trigger2 /> |
---|
| 219 | </trigger> |
---|
| 220 | </events> |
---|
| 221 | </EventTrigger> |
---|
| 222 | </visibility> |
---|
| 223 | </events> |
---|
| 224 | </Billboard> |
---|
| 225 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
| 226 | <events> |
---|
| 227 | <visibility> |
---|
| 228 | <EventTrigger> |
---|
| 229 | <events> |
---|
| 230 | <trigger> |
---|
| 231 | <EventListener event=trigger2 /> |
---|
| 232 | </trigger> |
---|
| 233 | </events> |
---|
| 234 | <EventTrigger invert=true> |
---|
| 235 | <events> |
---|
| 236 | <trigger> |
---|
| 237 | <EventListener event=trigger3 /> |
---|
| 238 | </trigger> |
---|
| 239 | </events> |
---|
| 240 | </EventTrigger> |
---|
| 241 | </EventTrigger> |
---|
| 242 | </visibility> |
---|
| 243 | </events> |
---|
| 244 | </BlinkingBillboard> |
---|
| 245 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
| 246 | <events> |
---|
| 247 | <visibility> |
---|
| 248 | <EventListener event=trigger3 /> |
---|
| 249 | </visibility> |
---|
| 250 | </events> |
---|
| 251 | </Billboard> |
---|
| 252 | </attached> |
---|
| 253 | </CheckPoint> |
---|
[5497] | 254 | |
---|
[5516] | 255 | |
---|
[9348] | 256 | <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
[5516] | 257 | <events> |
---|
[7163] | 258 | <activity> |
---|
[5521] | 259 | <EventListener event=trigger3 /> |
---|
[7163] | 260 | </activity> |
---|
[5521] | 261 | </events> |
---|
[7163] | 262 | <attached> |
---|
| 263 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
| 264 | <events> |
---|
| 265 | <visibility> |
---|
| 266 | <EventTrigger invert=true> |
---|
| 267 | <events> |
---|
| 268 | <trigger> |
---|
| 269 | <EventListener event=trigger3 /> |
---|
| 270 | </trigger> |
---|
| 271 | </events> |
---|
| 272 | </EventTrigger> |
---|
| 273 | </visibility> |
---|
| 274 | </events> |
---|
| 275 | </Billboard> |
---|
| 276 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
| 277 | <events> |
---|
| 278 | <visibility> |
---|
| 279 | <EventTrigger> |
---|
| 280 | <events> |
---|
| 281 | <trigger> |
---|
| 282 | <EventListener event=trigger3 /> |
---|
| 283 | </trigger> |
---|
| 284 | </events> |
---|
| 285 | <EventTrigger invert=true> |
---|
| 286 | <events> |
---|
| 287 | <trigger> |
---|
| 288 | <EventListener event=trigger4 /> |
---|
| 289 | </trigger> |
---|
| 290 | </events> |
---|
| 291 | </EventTrigger> |
---|
| 292 | </EventTrigger> |
---|
| 293 | </visibility> |
---|
| 294 | </events> |
---|
| 295 | </BlinkingBillboard> |
---|
| 296 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
| 297 | <events> |
---|
| 298 | <visibility> |
---|
| 299 | <EventListener event=trigger4 /> |
---|
| 300 | </visibility> |
---|
| 301 | </events> |
---|
| 302 | </Billboard> |
---|
| 303 | </attached> |
---|
| 304 | </CheckPoint> |
---|
[5516] | 305 | |
---|
| 306 | |
---|
[9348] | 307 | <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
[5521] | 308 | <events> |
---|
[7163] | 309 | <activity> |
---|
[5521] | 310 | <EventListener event=trigger4 /> |
---|
[7163] | 311 | </activity> |
---|
[5521] | 312 | </events> |
---|
[7163] | 313 | <attached> |
---|
| 314 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
| 315 | <events> |
---|
| 316 | <visibility> |
---|
| 317 | <EventTrigger invert=true> |
---|
| 318 | <events> |
---|
| 319 | <trigger> |
---|
| 320 | <EventListener event=trigger4 /> |
---|
| 321 | </trigger> |
---|
| 322 | </events> |
---|
| 323 | </EventTrigger> |
---|
| 324 | </visibility> |
---|
| 325 | </events> |
---|
| 326 | </Billboard> |
---|
| 327 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
| 328 | <events> |
---|
| 329 | <visibility> |
---|
| 330 | <EventTrigger> |
---|
| 331 | <events> |
---|
| 332 | <trigger> |
---|
| 333 | <EventListener event=trigger4 /> |
---|
| 334 | </trigger> |
---|
| 335 | </events> |
---|
| 336 | <EventTrigger invert=true> |
---|
| 337 | <events> |
---|
| 338 | <trigger> |
---|
| 339 | <EventListener event=trigger5 /> |
---|
| 340 | </trigger> |
---|
| 341 | </events> |
---|
| 342 | </EventTrigger> |
---|
| 343 | </EventTrigger> |
---|
| 344 | </visibility> |
---|
| 345 | </events> |
---|
| 346 | </BlinkingBillboard> |
---|
| 347 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
| 348 | <events> |
---|
| 349 | <visibility> |
---|
| 350 | <EventListener event=trigger5 /> |
---|
| 351 | </visibility> |
---|
| 352 | </events> |
---|
| 353 | </Billboard> |
---|
| 354 | </attached> |
---|
| 355 | </CheckPoint> |
---|
[5453] | 356 | |
---|
[5475] | 357 | |
---|
[9348] | 358 | <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=15> |
---|
[5521] | 359 | <events> |
---|
[7163] | 360 | <activity> |
---|
[5521] | 361 | <EventListener event=trigger5 /> |
---|
[7163] | 362 | </activity> |
---|
[5521] | 363 | </events> |
---|
[7163] | 364 | <attached> |
---|
| 365 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
| 366 | <events> |
---|
| 367 | <visibility> |
---|
| 368 | <EventTrigger invert=true> |
---|
| 369 | <events> |
---|
| 370 | <trigger> |
---|
| 371 | <EventListener event=trigger5 /> |
---|
| 372 | </trigger> |
---|
| 373 | </events> |
---|
| 374 | </EventTrigger> |
---|
| 375 | </visibility> |
---|
| 376 | </events> |
---|
| 377 | </Billboard> |
---|
| 378 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
| 379 | <events> |
---|
| 380 | <visibility> |
---|
| 381 | <EventTrigger> |
---|
| 382 | <events> |
---|
| 383 | <trigger> |
---|
| 384 | <EventListener event=trigger5 /> |
---|
| 385 | </trigger> |
---|
| 386 | </events> |
---|
| 387 | <EventTrigger invert=true> |
---|
| 388 | <events> |
---|
| 389 | <trigger> |
---|
| 390 | <EventListener event=trigger6 /> |
---|
| 391 | </trigger> |
---|
| 392 | </events> |
---|
| 393 | </EventTrigger> |
---|
| 394 | </EventTrigger> |
---|
| 395 | </visibility> |
---|
| 396 | </events> |
---|
| 397 | </BlinkingBillboard> |
---|
| 398 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
| 399 | <events> |
---|
| 400 | <visibility> |
---|
| 401 | <EventListener event=trigger6 /> |
---|
| 402 | </visibility> |
---|
| 403 | </events> |
---|
| 404 | </Billboard> |
---|
| 405 | </attached> |
---|
| 406 | </CheckPoint> |
---|
[5453] | 407 | |
---|
[5505] | 408 | |
---|
[7163] | 409 | <Model position="11200,400,-1800" scale=10 pitch=-90 mesh="Carrier.mesh"> |
---|
| 410 | <attached> |
---|
| 411 | <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100> |
---|
| 412 | <events> |
---|
| 413 | <activity> |
---|
| 414 | <EventListener event=trigger6 /> |
---|
| 415 | </activity> |
---|
| 416 | </events> |
---|
| 417 | <attached> |
---|
| 418 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
[5521] | 419 | <events> |
---|
[7163] | 420 | <visibility> |
---|
| 421 | <EventTrigger invert=true> |
---|
| 422 | <events> |
---|
| 423 | <trigger> |
---|
| 424 | <EventListener event=trigger6 /> |
---|
| 425 | </trigger> |
---|
| 426 | </events> |
---|
| 427 | </EventTrigger> |
---|
| 428 | </visibility> |
---|
[5521] | 429 | </events> |
---|
[7163] | 430 | </Billboard> |
---|
| 431 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
[5521] | 432 | <events> |
---|
[7163] | 433 | <visibility> |
---|
| 434 | <EventTrigger> |
---|
| 435 | <events> |
---|
| 436 | <trigger> |
---|
| 437 | <EventListener event=trigger6 /> |
---|
| 438 | </trigger> |
---|
| 439 | </events> |
---|
| 440 | <EventTrigger invert=true> |
---|
| 441 | <events> |
---|
| 442 | <trigger> |
---|
| 443 | <EventListener event=trigger7 /> |
---|
| 444 | </trigger> |
---|
| 445 | </events> |
---|
| 446 | </EventTrigger> |
---|
| 447 | </EventTrigger> |
---|
| 448 | </visibility> |
---|
| 449 | </events> |
---|
| 450 | </BlinkingBillboard> |
---|
| 451 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
| 452 | <events> |
---|
| 453 | <visibility> |
---|
[5521] | 454 | <EventListener event=trigger7 /> |
---|
[7163] | 455 | </visibility> |
---|
[5521] | 456 | </events> |
---|
[7163] | 457 | </Billboard> |
---|
| 458 | </attached> |
---|
| 459 | </CheckPoint> |
---|
| 460 | </attached> |
---|
| 461 | </Model> |
---|
[5505] | 462 | |
---|
[5453] | 463 | </Scene> |
---|
| 464 | </Level> |
---|