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