[11492] | 1 | <LevelInfo |
---|
| 2 | name = "AsteroidFarming" |
---|
| 3 | description = "Testing the Asteroid Mining Project, PPS HS 17" |
---|
[11646] | 4 | tags = "test, showcase" |
---|
[11561] | 5 | screenshot = "AsteroidFarming.png" |
---|
[11492] | 6 | /> |
---|
| 7 | |
---|
| 8 | <?lua |
---|
| 9 | include("stats.oxo") |
---|
| 10 | include("HUDPickupTemplate.oxo") |
---|
| 11 | include("templates/lodInformation.oxt") |
---|
| 12 | ?> |
---|
| 13 | |
---|
| 14 | <?lua |
---|
| 15 | include("templates/spaceshipAssff.oxt") |
---|
| 16 | include("templates/spaceshipPirate.oxt") |
---|
[11646] | 17 | include("templates/pickupRepresentationTemplates.oxt") |
---|
[11492] | 18 | ?> |
---|
| 19 | |
---|
[11646] | 20 | <WorldAmbientSound source="Asteroid_rocks.ogg" looping="true" playOnLoad="true" /> |
---|
| 21 | |
---|
[11492] | 22 | <Level> |
---|
| 23 | <templates> |
---|
| 24 | <Template link=lodtemplate_default /> |
---|
| 25 | </templates> |
---|
[11646] | 26 | |
---|
[11492] | 27 | <?lua include("includes/notifications.oxi") ?> |
---|
| 28 | |
---|
| 29 | <Scene |
---|
| 30 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 31 | skybox = "Orxonox/Starbox" |
---|
[11646] | 32 | hasPhysics = true |
---|
[11492] | 33 | > |
---|
| 34 | |
---|
[11561] | 35 | <?lua |
---|
| 36 | include("includes/pickups.oxi") |
---|
| 37 | ?> |
---|
| 38 | |
---|
[11492] | 39 | <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"/> |
---|
[11646] | 40 | |
---|
[11492] | 41 | <SpawnPoint team=0 position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | <!-- Asteroid Display: --> |
---|
[11640] | 45 | <Model position="0, 0,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast1.mesh" /> |
---|
[11492] | 46 | <Model position="0, 20,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast2.mesh" /> |
---|
| 47 | <Model position="0, 40,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast3.mesh" /> |
---|
| 48 | <Model position="0, 60,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast4.mesh" /> |
---|
| 49 | <Model position="0,-20,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast5.mesh" /> |
---|
| 50 | <Model position="0,-40,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast6.mesh" /> |
---|
| 51 | <Model position="0,-60,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_ice.mesh" /> |
---|
| 52 | <Model position="0,-80,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_UV.mesh" /> |
---|
| 53 | |
---|
| 54 | <!-- Display some pickup, 'Meta' --> |
---|
| 55 | <PickupSpawner pickup=usemetapickup position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> |
---|
| 56 | <PickupSpawner pickup=dropmetapickup position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> |
---|
| 57 | <PickupSpawner pickup=destroymetapickup position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> |
---|
| 58 | <PickupSpawner pickup=destroycarriermetapickup position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> |
---|
| 59 | |
---|
| 60 | <!-- Drone pickup --> |
---|
| 61 | |
---|
| 62 | <PickupSpawner pickup=dronepickup position="-25,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> |
---|
| 63 | |
---|
| 64 | |
---|
[11508] | 65 | <!-- @Objects: 4 boxes (uncontrolled pawns) Trying to understand the pickup generation--> |
---|
| 66 | <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" > |
---|
| 67 | <events> |
---|
| 68 | <visibility> |
---|
| 69 | <EventListener event="flying4" /> |
---|
| 70 | </visibility> |
---|
| 71 | </events> |
---|
| 72 | <attached> |
---|
| 73 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
| 74 | </attached> |
---|
| 75 | <collisionShapes> |
---|
| 76 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
| 77 | </collisionShapes> |
---|
| 78 | |
---|
| 79 | </Pawn> |
---|
| 80 | |
---|
[11640] | 81 | <!----Just a box with different mesh--> |
---|
[11508] | 82 | <Pawn team=1 health=50 position="0,1000,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Globi Asteroid" > |
---|
| 83 | <events> |
---|
| 84 | <visibility> |
---|
| 85 | <EventListener event="flying4" /> |
---|
[11520] | 86 | |
---|
[11508] | 87 | </visibility> |
---|
| 88 | </events> |
---|
| 89 | <attached> |
---|
| 90 | <Model position="0,0,0" mesh="ast4.mesh" scale3D="3,3,3" /> |
---|
| 91 | </attached> |
---|
| 92 | <collisionShapes> |
---|
| 93 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
| 94 | </collisionShapes> |
---|
| 95 | </Pawn> |
---|
| 96 | |
---|
[11520] | 97 | |
---|
| 98 | <!-----AsteroidMinable ---> |
---|
[11551] | 99 | <AsteroidMinable size=15 position="0,-500,0" /> |
---|
| 100 | <AsteroidMinable size=5 position="100,-500,100" /> |
---|
[11581] | 101 | <AsteroidMinable size=50 position="500,-500, 500" /> |
---|
[11640] | 102 | <AsteroidMinable size=30 position="-100, -500, -100" velocity= "0, -30, 0"/> |
---|
[11520] | 103 | |
---|
[11640] | 104 | <!--- SpicedAsteroidField ---> |
---|
| 105 | <SpicedAsteroidField count=30 mDensity= 0.5 maxSize=40 minSize=1 position="5000, 0, 0" radius=1000/> |
---|
[11508] | 106 | |
---|
| 107 | |
---|
[11646] | 108 | |
---|
[11492] | 109 | </Scene> |
---|
| 110 | </Level> |
---|