| [11492] | 1 | <LevelInfo | 
|---|
 | 2 |  name = "AsteroidFarming" | 
|---|
 | 3 |  description = "Testing the Asteroid Mining Project, PPS HS 17" | 
|---|
| [11646] | 4 |  tags = "test, showcase" | 
|---|
| [11733] | 5 |  screenshot = "asteroids.png" | 
|---|
| [11492] | 6 | /> | 
|---|
 | 7 |  | 
|---|
 | 8 | <?lua | 
|---|
 | 9 |   include("stats.oxo") | 
|---|
| [11733] | 10 |   include("HUDTemplates3.oxo") | 
|---|
| [11492] | 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 |  | 
|---|
| [11664] | 20 |  | 
|---|
| [11646] | 21 | <WorldAmbientSound source="Asteroid_rocks.ogg" looping="true" playOnLoad="true" /> | 
|---|
 | 22 |  | 
|---|
| [11664] | 23 |  | 
|---|
| [11492] | 24 | <Level> | 
|---|
 | 25 |   <templates> | 
|---|
 | 26 |     <Template link=lodtemplate_default /> | 
|---|
 | 27 |   </templates> | 
|---|
| [11646] | 28 |  | 
|---|
| [11492] | 29 |   <?lua include("includes/notifications.oxi") ?> | 
|---|
 | 30 |  | 
|---|
 | 31 |   <Scene | 
|---|
 | 32 |     ambientlight = "0.8, 0.8, 0.8" | 
|---|
 | 33 |     skybox       = "Orxonox/Starbox" | 
|---|
| [11646] | 34 |     hasPhysics = true | 
|---|
| [11492] | 35 |   > | 
|---|
 | 36 |  | 
|---|
| [11664] | 37 |  | 
|---|
| [11561] | 38 |   <?lua | 
|---|
 | 39 |       include("includes/pickups.oxi") | 
|---|
 | 40 |   ?> | 
|---|
 | 41 |  | 
|---|
| [11492] | 42 |     <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] | 43 |  | 
|---|
| [11492] | 44 |     <SpawnPoint team=0 position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
 | 45 |      | 
|---|
 | 46 |  | 
|---|
 | 47 |      <!-- Asteroid Display: --> | 
|---|
| [11640] | 48 |       <Model position="0,  0,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast1.mesh" /> | 
|---|
| [11492] | 49 |       <Model position="0, 20,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast2.mesh" /> | 
|---|
 | 50 |       <Model position="0, 40,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast3.mesh" /> | 
|---|
 | 51 |       <Model position="0, 60,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast4.mesh" /> | 
|---|
 | 52 |       <Model position="0,-20,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast5.mesh" /> | 
|---|
 | 53 |       <Model position="0,-40,40" yaw="90" pitch="-90" roll="0" scale="4" mesh="ast6.mesh" /> | 
|---|
 | 54 |       <Model position="0,-60,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_ice.mesh" /> | 
|---|
 | 55 |       <Model position="0,-80,40" yaw="90" pitch="-90" roll="0" scale="5" mesh="asteroid_UV.mesh" /> | 
|---|
 | 56 |  | 
|---|
 | 57 |      <!-- Display some pickup, 'Meta' --> | 
|---|
 | 58 |     <PickupSpawner pickup=usemetapickup position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> | 
|---|
 | 59 |     <PickupSpawner pickup=dropmetapickup position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> | 
|---|
 | 60 |     <PickupSpawner pickup=destroymetapickup position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> | 
|---|
 | 61 |     <PickupSpawner pickup=destroycarriermetapickup position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" /> | 
|---|
 | 62 |  | 
|---|
 | 63 |     <!-- Drone pickup --> | 
|---|
 | 64 |     <PickupSpawner pickup=dronepickup position="-25,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> | 
|---|
 | 65 |  | 
|---|
 | 66 |  | 
|---|
| [11508] | 67 |     <!-- @Objects: 4 boxes (uncontrolled pawns) Trying to understand the pickup generation--> | 
|---|
 | 68 |     <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" > | 
|---|
 | 69 |         <events> | 
|---|
 | 70 |           <visibility> | 
|---|
 | 71 |             <EventListener event="flying4" /> | 
|---|
 | 72 |           </visibility> | 
|---|
 | 73 |         </events> | 
|---|
 | 74 |         <attached> | 
|---|
 | 75 |             <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> | 
|---|
 | 76 |         </attached> | 
|---|
 | 77 |         <collisionShapes> | 
|---|
 | 78 |             <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> | 
|---|
 | 79 |         </collisionShapes> | 
|---|
 | 80 |  | 
|---|
 | 81 |     </Pawn> | 
|---|
 | 82 |  | 
|---|
| [11640] | 83 |     <!----Just a box with different mesh--> | 
|---|
| [11508] | 84 |     <Pawn team=1 health=50 position="0,1000,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Globi Asteroid" > | 
|---|
 | 85 |         <events> | 
|---|
 | 86 |           <visibility> | 
|---|
 | 87 |             <EventListener event="flying4" /> | 
|---|
| [11520] | 88 |  | 
|---|
| [11508] | 89 |           </visibility> | 
|---|
 | 90 |         </events> | 
|---|
 | 91 |         <attached> | 
|---|
 | 92 |             <Model position="0,0,0" mesh="ast4.mesh" scale3D="3,3,3" /> | 
|---|
 | 93 |         </attached> | 
|---|
 | 94 |         <collisionShapes> | 
|---|
 | 95 |             <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> | 
|---|
 | 96 |         </collisionShapes> | 
|---|
 | 97 |     </Pawn> | 
|---|
 | 98 |  | 
|---|
| [11520] | 99 |  | 
|---|
| [11667] | 100 |     <!-- AsteroidMinable --> | 
|---|
| [11551] | 101 |     <AsteroidMinable size=15 position="0,-500,0" /> | 
|---|
 | 102 |     <AsteroidMinable size=5 position="100,-500,100" /> | 
|---|
| [11581] | 103 |     <AsteroidMinable size=50 position="500,-500, 500" /> | 
|---|
| [11640] | 104 |     <AsteroidMinable size=30 position="-100, -500, -100" velocity= "0, -30, 0"/> | 
|---|
| [11520] | 105 |  | 
|---|
| [11667] | 106 |     <!-- SpicedAsteroidField --> | 
|---|
 | 107 |     <SpicedAsteroidField count=30 mDensity= 0.5 maxSize=40 minSize=1 position="5000, 0, 0" radius=1000 velocity="0,0,0"/> | 
|---|
| [11508] | 108 |  | 
|---|
 | 109 |  | 
|---|
| [11664] | 110 |     <!-- Asteroid Belt with a planet --> | 
|---|
| [11667] | 111 |  | 
|---|
 | 112 |     <SpicedAsteroidBelt position="-15000,0,0" mDensity=0.3 segments=50 minSize=1 maxSize=50 radius0=7190 radius1 = 7800 count=250 tiltBy=0.5 tiltAt=0/> | 
|---|
| [11664] | 113 |     <Planet | 
|---|
 | 114 |       position="-15000,0,0" | 
|---|
 | 115 |       scale="5000" | 
|---|
 | 116 |       collisionType="dynamic" | 
|---|
 | 117 |       linearDamping="0.8" | 
|---|
 | 118 |       angularDamping="0" | 
|---|
 | 119 |       mass="10000000" | 
|---|
 | 120 |       pitch="0" | 
|---|
 | 121 |       mesh="planets/muunilinst.mesh" | 
|---|
 | 122 |       atmosphere="atmosphere1" | 
|---|
 | 123 |       rotationaxis="1,0,0" | 
|---|
 | 124 |       rotationrate="1.0" | 
|---|
 | 125 |       atmospheresize="80.0f" | 
|---|
 | 126 |       imagesize="1024.0f" | 
|---|
 | 127 |       collisiondamage = 2 | 
|---|
 | 128 |       enablecollisiondamage = true | 
|---|
 | 129 |     >       | 
|---|
 | 130 |       <attached> | 
|---|
 | 131 |         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> | 
|---|
 | 132 |       </attached> | 
|---|
 | 133 |       <collisionShapes> | 
|---|
 | 134 |         <SphereCollisionShape radius="5000" position="0,0,0" /> | 
|---|
 | 135 |       </collisionShapes> | 
|---|
 | 136 |     </Planet> | 
|---|
| [11646] | 137 |  | 
|---|
| [11664] | 138 |  | 
|---|
 | 139 |  | 
|---|
 | 140 |  | 
|---|
| [11492] | 141 |   </Scene> | 
|---|
 | 142 | </Level> | 
|---|