1 | <LevelInfo |
---|
2 | name = "AsteroidFarming" |
---|
3 | description = "Testing the Asteroid Mining Project, PPS HS 17" |
---|
4 | tags = "test, showcase" |
---|
5 | screenshot = "AsteroidFarming.png" |
---|
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") |
---|
17 | include("templates/pickupRepresentationTemplates.oxt") |
---|
18 | ?> |
---|
19 | |
---|
20 | |
---|
21 | <WorldAmbientSound source="Asteroid_rocks.ogg" looping="true" playOnLoad="true" /> |
---|
22 | |
---|
23 | |
---|
24 | <Level> |
---|
25 | <templates> |
---|
26 | <Template link=lodtemplate_default /> |
---|
27 | </templates> |
---|
28 | |
---|
29 | <?lua include("includes/notifications.oxi") ?> |
---|
30 | |
---|
31 | <Scene |
---|
32 | ambientlight = "0.8, 0.8, 0.8" |
---|
33 | skybox = "Orxonox/Starbox" |
---|
34 | hasPhysics = true |
---|
35 | > |
---|
36 | |
---|
37 | |
---|
38 | <?lua |
---|
39 | include("includes/pickups.oxi") |
---|
40 | ?> |
---|
41 | |
---|
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"/> |
---|
43 | |
---|
44 | <SpawnPoint team=0 position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
45 | |
---|
46 | |
---|
47 | <!-- Asteroid Display: --> |
---|
48 | <Model position="0, 0,40" yaw="90" pitch="-90" roll="0" scale="3" mesh="ast1.mesh" /> |
---|
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 | |
---|
65 | <PickupSpawner pickup=dronepickup position="-25,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" /> |
---|
66 | |
---|
67 | |
---|
68 | <!-- @Objects: 4 boxes (uncontrolled pawns) Trying to understand the pickup generation--> |
---|
69 | <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" > |
---|
70 | <events> |
---|
71 | <visibility> |
---|
72 | <EventListener event="flying4" /> |
---|
73 | </visibility> |
---|
74 | </events> |
---|
75 | <attached> |
---|
76 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
77 | </attached> |
---|
78 | <collisionShapes> |
---|
79 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
80 | </collisionShapes> |
---|
81 | |
---|
82 | </Pawn> |
---|
83 | |
---|
84 | <!----Just a box with different mesh--> |
---|
85 | <Pawn team=1 health=50 position="0,1000,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Globi Asteroid" > |
---|
86 | <events> |
---|
87 | <visibility> |
---|
88 | <EventListener event="flying4" /> |
---|
89 | |
---|
90 | </visibility> |
---|
91 | </events> |
---|
92 | <attached> |
---|
93 | <Model position="0,0,0" mesh="ast4.mesh" scale3D="3,3,3" /> |
---|
94 | </attached> |
---|
95 | <collisionShapes> |
---|
96 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
97 | </collisionShapes> |
---|
98 | </Pawn> |
---|
99 | |
---|
100 | |
---|
101 | <!-----AsteroidMinable ---> |
---|
102 | <AsteroidMinable size=15 position="0,-500,0" /> |
---|
103 | <AsteroidMinable size=5 position="100,-500,100" /> |
---|
104 | <AsteroidMinable size=50 position="500,-500, 500" /> |
---|
105 | <AsteroidMinable size=30 position="-100, -500, -100" velocity= "0, -30, 0"/> |
---|
106 | |
---|
107 | <!--- SpicedAsteroidField --> |
---|
108 | <SpicedAsteroidField count=30 mDensity= 0.5 maxSize=40 minSize=1 position="5000, 0, 0" radius=1000 velocity="-100,0,0"/> |
---|
109 | |
---|
110 | |
---|
111 | <!-- Asteroid Belt with a planet --> |
---|
112 | <SpicedAsteroidBelt position="-15000,0,0" mDensity=0.3 yaw=90 pitch=90 roll=90 segments=30 minSize=1 maxSize=50 radius0=7190 radius1 = 7800 count=250/> |
---|
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> |
---|
137 | |
---|
138 | |
---|
139 | |
---|
140 | |
---|
141 | |
---|
142 | </Scene> |
---|
143 | </Level> |
---|