[12177] | 1 | <LevelInfo |
---|
| 2 | name = "Asteroids Race" |
---|
| 3 | description = "Reach the checkpoints and avoid asteroids." |
---|
| 4 | tags = "gametype" |
---|
| 5 | screenshot = "asteroids.png" |
---|
| 6 | /> |
---|
| 7 | <WorldAmbientSound source="Asteroid_rocks.ogg" looping="true" playOnLoad="true" /> |
---|
| 8 | |
---|
| 9 | <?lua |
---|
| 10 | include("HUDTemplates3.oxo") |
---|
| 11 | include("stats.oxo") |
---|
| 12 | include("templates/spaceshipAssff.oxt") |
---|
| 13 | include("templates/lodInformation.oxt") |
---|
| 14 | ?> |
---|
| 15 | |
---|
| 16 | <Level |
---|
| 17 | gametype = "Asteroids" |
---|
| 18 | > |
---|
| 19 | <templates> |
---|
| 20 | <Template link=lodtemplate_default /> |
---|
| 21 | </templates> |
---|
| 22 | <?lua include("includes/notifications.oxi") ?> |
---|
| 23 | |
---|
| 24 | <Scene |
---|
| 25 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 26 | skybox = "Orxonox/Starbox" |
---|
| 27 | > |
---|
| 28 | |
---|
| 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" /> |
---|
| 30 | |
---|
| 31 | <SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 32 | |
---|
| 33 | <?lua |
---|
| 34 | for i = 1, 250, 1 |
---|
| 35 | do |
---|
| 36 | j = math.random() |
---|
| 37 | ?> |
---|
| 38 | |
---|
| 39 | <MovableEntity |
---|
| 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 |
---|
| 44 | scale = "<?lua print(j * 150)?>" |
---|
| 45 | collisiondamage = 1 |
---|
| 46 | enablecollisiondamage = true |
---|
| 47 | > |
---|
| 48 | <attached> |
---|
| 49 | <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
| 50 | </attached> |
---|
| 51 | <collisionShapes> |
---|
| 52 | <SphereCollisionShape radius="<?lua print(j * 350) ?>" /> |
---|
| 53 | </collisionShapes> |
---|
| 54 | </MovableEntity> |
---|
| 55 | |
---|
| 56 | <?lua |
---|
| 57 | end |
---|
| 58 | ?> |
---|
| 59 | |
---|
| 60 | <!-- |
---|
| 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> |
---|
| 69 | |
---|
| 70 | |
---|
| 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> |
---|
| 79 | |
---|
| 80 | |
---|
| 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> |
---|
| 89 | |
---|
| 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> |
---|
| 98 | --> |
---|
| 99 | |
---|
| 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> |
---|
| 108 | |
---|
| 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> |
---|
| 117 | |
---|
| 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> |
---|
| 126 | |
---|
| 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> |
---|
| 132 | |
---|
| 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> |
---|
| 138 | |
---|
| 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> |
---|
| 144 | |
---|
| 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> |
---|
| 150 | |
---|
| 151 | |
---|
| 152 | <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=24 /> |
---|
| 153 | |
---|
| 154 | |
---|
| 155 | <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=20> |
---|
| 156 | <events> |
---|
| 157 | <activity> |
---|
| 158 | <EventListener event=trigger1 /> |
---|
| 159 | </activity> |
---|
| 160 | </events> |
---|
| 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 | |
---|
| 206 | <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
| 207 | <events> |
---|
| 208 | <activity> |
---|
| 209 | <EventListener event=trigger2 /> |
---|
| 210 | </activity> |
---|
| 211 | </events> |
---|
| 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> |
---|
| 255 | |
---|
| 256 | |
---|
| 257 | <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
| 258 | <events> |
---|
| 259 | <activity> |
---|
| 260 | <EventListener event=trigger3 /> |
---|
| 261 | </activity> |
---|
| 262 | </events> |
---|
| 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> |
---|
| 306 | |
---|
| 307 | |
---|
| 308 | <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
| 309 | <events> |
---|
| 310 | <activity> |
---|
| 311 | <EventListener event=trigger4 /> |
---|
| 312 | </activity> |
---|
| 313 | </events> |
---|
| 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> |
---|
| 357 | |
---|
| 358 | |
---|
| 359 | <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=15> |
---|
| 360 | <events> |
---|
| 361 | <activity> |
---|
| 362 | <EventListener event=trigger5 /> |
---|
| 363 | </activity> |
---|
| 364 | </events> |
---|
| 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> |
---|
| 408 | |
---|
| 409 | |
---|
| 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"> |
---|
| 420 | <events> |
---|
| 421 | <visibility> |
---|
| 422 | <EventTrigger invert=true> |
---|
| 423 | <events> |
---|
| 424 | <trigger> |
---|
| 425 | <EventListener event=trigger6 /> |
---|
| 426 | </trigger> |
---|
| 427 | </events> |
---|
| 428 | </EventTrigger> |
---|
| 429 | </visibility> |
---|
| 430 | </events> |
---|
| 431 | </Billboard> |
---|
| 432 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
| 433 | <events> |
---|
| 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> |
---|
| 455 | <EventListener event=trigger7 /> |
---|
| 456 | </visibility> |
---|
| 457 | </events> |
---|
| 458 | </Billboard> |
---|
| 459 | </attached> |
---|
| 460 | </CheckPoint> |
---|
| 461 | </attached> |
---|
| 462 | </Model> |
---|
| 463 | |
---|
| 464 | </Scene> |
---|
| 465 | </Level> |
---|