1 | <!-- --> |
---|
2 | |
---|
3 | <LevelInfo |
---|
4 | name = "Level_01" |
---|
5 | description = "A level with absolutely nothing in it." |
---|
6 | tags = "mission" |
---|
7 | screenshot = "emptylevel.png" |
---|
8 | /> |
---|
9 | |
---|
10 | <?lua |
---|
11 | include("stats.oxo") |
---|
12 | include("HUDTemplates3.oxo") |
---|
13 | include("templates/lodInformation.oxt") |
---|
14 | ?> |
---|
15 | |
---|
16 | <?lua |
---|
17 | include("templates/spaceshipAssff.oxt") |
---|
18 | include("templates/spaceshipAssff2.oxt") |
---|
19 | include("templates/spaceshipPirate.oxt") |
---|
20 | include("templates/spaceshipEscort.oxt") |
---|
21 | include("templates/spaceshipSpacecruiser.oxt") |
---|
22 | ?> |
---|
23 | |
---|
24 | <Level gametype="Mission"> |
---|
25 | |
---|
26 | <templates> |
---|
27 | <Template link=lodtemplate_default /> |
---|
28 | </templates> |
---|
29 | <?lua include("includes/notifications.oxi") ?> |
---|
30 | |
---|
31 | <NotificationQueueCEGUI |
---|
32 | name="narrative" |
---|
33 | targets="simpleNotification" |
---|
34 | size=3 |
---|
35 | displayTime=3.9 |
---|
36 | position="0.2, 0, 0.1, 0" |
---|
37 | fontSize="23" |
---|
38 | fontColor="0.3, 1, 0.2, 0.8" |
---|
39 | alignment="HorzCentred" |
---|
40 | displaySize="0.6, 0, 0, 0" |
---|
41 | /> |
---|
42 | |
---|
43 | <Scene |
---|
44 | ambientlight = "0.5, 0.5, 0.5" |
---|
45 | skybox = "Orxonox/Starbox" |
---|
46 | hasPhysics = true |
---|
47 | |
---|
48 | > |
---|
49 | |
---|
50 | <?lua |
---|
51 | include("includes/pickups.oxi") |
---|
52 | ?> |
---|
53 | |
---|
54 | |
---|
55 | <?lua |
---|
56 | dofile("includes/CuboidSpaceStation.lua") |
---|
57 | ?> |
---|
58 | |
---|
59 | |
---|
60 | <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"/> |
---|
61 | |
---|
62 | <SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort /> |
---|
63 | |
---|
64 | <SpaceBoundaries warnDistance="1" maxDistance="1000" showDistance="300" healthDecrease="0.1" position="0,0,0"/> |
---|
65 | |
---|
66 | <?lua |
---|
67 | for i = 1, 250, 1 |
---|
68 | do |
---|
69 | j = math.random() |
---|
70 | ?> |
---|
71 | |
---|
72 | <MovableEntity |
---|
73 | position = "<?lua print(math.random()* 6000-3000) ?>,<?lua print(math.random() * 6000 -3000) ?>,<?lua print(math.random() * 6000-3000) ?>" |
---|
74 | collisionType = dynamic |
---|
75 | linearDamping = 0.8 |
---|
76 | angularDamping = 0 |
---|
77 | scale = "<?lua print(j * 150)?>" |
---|
78 | collisiondamage = 0.005 |
---|
79 | enablecollisiondamage = true |
---|
80 | velocity = "-5,0,0" |
---|
81 | > |
---|
82 | <attached> |
---|
83 | <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
84 | </attached> |
---|
85 | <collisionShapes> |
---|
86 | <SphereCollisionShape radius="<?lua print(j * 350) ?>" /> |
---|
87 | </collisionShapes> |
---|
88 | </MovableEntity> |
---|
89 | |
---|
90 | <?lua |
---|
91 | end |
---|
92 | ?> |
---|
93 | |
---|
94 | |
---|
95 | <!-----------------------------------------------------------------------------------------------------> |
---|
96 | <!-------------------------------------- PART ZERO: Docking on ---------------------------------------> |
---|
97 | <!-----------------------------------------------------------------------------------------------------> |
---|
98 | |
---|
99 | <!-- OBJECTS IN THIS PART --> |
---|
100 | |
---|
101 | <!-- @Objects: HYDROGEN FARMER & DOCKING --> |
---|
102 | |
---|
103 | <!-- @Objects: HYDROGEN FARMER & DOCKING --> |
---|
104 | <SpaceShip |
---|
105 | team = 0 |
---|
106 | position = "-4000,4000,4000" |
---|
107 | roll = 90 yaw=0 pitch=20 |
---|
108 | mass = 10000 |
---|
109 | health = 100000 initialhealth=100000 maxhealth="100000" |
---|
110 | name = "HydroFarmer" |
---|
111 | radarname = "Hydrogen Farmer" > |
---|
112 | <attached> |
---|
113 | <!-- Docking --> |
---|
114 | <DistanceTriggerBeacon name="bcnDestroyer" /> |
---|
115 | <DockingTarget name="destroyer" /> |
---|
116 | |
---|
117 | <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 /> |
---|
118 | <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245" /> |
---|
119 | <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 /> |
---|
120 | <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 /> |
---|
121 | <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" /> |
---|
122 | <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50" yaw=-120/> |
---|
123 | <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/> |
---|
124 | <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" /> |
---|
125 | <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/> |
---|
126 | <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/> |
---|
127 | <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 /> |
---|
128 | <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" /> |
---|
129 | <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/> |
---|
130 | <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/> |
---|
131 | <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/> |
---|
132 | <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/> |
---|
133 | <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/> --> |
---|
134 | </attached> |
---|
135 | <collisionShapes> |
---|
136 | <BoxCollisionShape position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes --> |
---|
137 | <BoxCollisionShape position="290,0,-480" halfExtents="115,100,245" yaw=-120 /> |
---|
138 | <BoxCollisionShape position="290,0,480" halfExtents="115,100,245" yaw=-240 /> |
---|
139 | <BoxCollisionShape position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections --> |
---|
140 | <BoxCollisionShape position="140,0,-240" halfExtents="163,50,50" yaw=-120 /> |
---|
141 | <BoxCollisionShape position="140,0,240" halfExtents="163,50,50" yaw=-240 /> |
---|
142 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower --> |
---|
143 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-120 /> |
---|
144 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-240 /> |
---|
145 | <BoxCollisionShape position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one--> |
---|
146 | <BoxCollisionShape position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs --> |
---|
147 | <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=-30 /> |
---|
148 | <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=30 /> |
---|
149 | <BoxCollisionShape position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs --> |
---|
150 | <BoxCollisionShape position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 /> |
---|
151 | <BoxCollisionShape position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 /> |
---|
152 | </collisionShapes> |
---|
153 | </SpaceShip> |
---|
154 | |
---|
155 | <Dock position="-4000,3900,4000" roll=90 yaw=180 > |
---|
156 | <animations> |
---|
157 | <MoveToDockingTarget target="destroyer" /> |
---|
158 | </animations> |
---|
159 | <effects> |
---|
160 | <DockToShip target="spaceShip" /> |
---|
161 | </effects> |
---|
162 | <events> |
---|
163 | <execute> |
---|
164 | <EventListener event="dockMe" /> |
---|
165 | </execute> |
---|
166 | <activity> |
---|
167 | <EventListener event=notGameEnd /> |
---|
168 | </activity> |
---|
169 | </events> |
---|
170 | <attached> |
---|
171 | <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn" |
---|
172 | beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" |
---|
173 | /> |
---|
174 | </attached> |
---|
175 | |
---|
176 | </Dock> |
---|
177 | |
---|
178 | <!--@Objects: SpaceCruiser as docking target --> |
---|
179 | <SpaceShip |
---|
180 | template = "spaceshipspacecruiser" |
---|
181 | team = "0" |
---|
182 | position = "-4000,4700,4000" |
---|
183 | orientation = "-0.14, 0.68, 0.68, 0.223" |
---|
184 | health = "400" |
---|
185 | initialhealth = "400" |
---|
186 | maxhealth = "500" |
---|
187 | shieldhealth = "80" |
---|
188 | initialshieldhealth = "80" |
---|
189 | maxshieldhealth = "120" |
---|
190 | shieldabsorption = "0.8" |
---|
191 | reloadrate = "1" |
---|
192 | reloadwaittime = "1" |
---|
193 | name = "cruiser" |
---|
194 | radarname = "Spacecruiser" > |
---|
195 | <attached> |
---|
196 | <DockingTarget name="spaceShip" /> |
---|
197 | </attached> |
---|
198 | </SpaceShip> |
---|
199 | |
---|
200 | |
---|
201 | <MovableEntity position="-500,500, 500"> |
---|
202 | <attached> |
---|
203 | <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=0.5/> |
---|
204 | </attached> |
---|
205 | </MovableEntity> |
---|
206 | |
---|
207 | |
---|
208 | <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=4/> |
---|
209 | <SimpleNotification message="Hey Rookie.. We got a new mission for you."> |
---|
210 | <events> |
---|
211 | <trigger> |
---|
212 | <EventListener event="flying1" /> |
---|
213 | </trigger> |
---|
214 | </events> |
---|
215 | </SimpleNotification> |
---|
216 | |
---|
217 | <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=8/> |
---|
218 | <SimpleNotification message="Go to the main station for more information."> |
---|
219 | <events> |
---|
220 | <trigger> |
---|
221 | <EventListener event="flying2" /> |
---|
222 | </trigger> |
---|
223 | </events> |
---|
224 | </SimpleNotification> |
---|
225 | |
---|
226 | <DistanceTrigger name="flying3" position="-500,500, 500" target="Pawn" distance=50 stayActive="true" delay=3/> |
---|
227 | <SimpleNotification message="Our friends from District 69 are under attack"> |
---|
228 | <events> |
---|
229 | <trigger> |
---|
230 | <EventListener event="flying3" /> |
---|
231 | </trigger> |
---|
232 | </events> |
---|
233 | </SimpleNotification> |
---|
234 | |
---|
235 | <DistanceTrigger name="flying4" position="-500,500, 500" target="Pawn" distance=50 stayActive="true" delay=7/> |
---|
236 | <SimpleNotification message="We need you to help them."> |
---|
237 | <events> |
---|
238 | <trigger> |
---|
239 | <EventListener event="flying4" /> |
---|
240 | </trigger> |
---|
241 | </events> |
---|
242 | </SimpleNotification> |
---|
243 | |
---|
244 | <DistanceTrigger name="flying5" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=11/> |
---|
245 | <SimpleNotification message="Dock on the station to get a better ship."> |
---|
246 | <events> |
---|
247 | <trigger> |
---|
248 | <EventListener event="flying5" /> |
---|
249 | </trigger> |
---|
250 | </events> |
---|
251 | </SimpleNotification> |
---|
252 | |
---|
253 | <DistanceTrigger name="wormhole1" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" mode="and"> |
---|
254 | <EventTrigger name="ondock" activations="1" stayactive="true" delay=6> |
---|
255 | <events> |
---|
256 | <trigger> |
---|
257 | <EventListener event="dockMe" /> |
---|
258 | </trigger> |
---|
259 | </events> |
---|
260 | <Trigger mode=and> |
---|
261 | <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" /> |
---|
262 | <EventTrigger activations="1" invert="true"> |
---|
263 | <events> |
---|
264 | <trigger> |
---|
265 | <EventListener event="gameEnd" /> |
---|
266 | </trigger> |
---|
267 | </events> |
---|
268 | </EventTrigger> |
---|
269 | </Trigger> |
---|
270 | </EventTrigger> |
---|
271 | <EventTrigger activations="1" invert="true"> |
---|
272 | <events> |
---|
273 | <trigger> |
---|
274 | <EventListener event="earlyEnd" /> |
---|
275 | </trigger> |
---|
276 | </events> |
---|
277 | </EventTrigger> |
---|
278 | </DistanceTrigger> |
---|
279 | |
---|
280 | <!-----------------------------------------------------------------------------------------------------> |
---|
281 | <!-------------------------------- PART ONE: Passing throug wormhole ---------------------------------> |
---|
282 | <!-----------------------------------------------------------------------------------------------------> |
---|
283 | |
---|
284 | <!-- OBJECTS IN THIS PART --> |
---|
285 | |
---|
286 | <Template name=PortalDefault> |
---|
287 | <PortalEndPoint> |
---|
288 | <attached> |
---|
289 | <Model mesh="Spacegate.mesh" yaw="90"/> |
---|
290 | </attached> |
---|
291 | </PortalEndPoint> |
---|
292 | </Template> |
---|
293 | |
---|
294 | <PortalEndPoint position="0,2000,0" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> |
---|
295 | <PortalEndPoint position="0,50000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> |
---|
296 | <PortalLink fromID="1" toID="2" /> |
---|
297 | <!--<PortalLink fromID="2" toID="1" />--> |
---|
298 | |
---|
299 | <?lua |
---|
300 | for i = 1, 500, 1 |
---|
301 | do |
---|
302 | j = math.random() |
---|
303 | ?> |
---|
304 | |
---|
305 | <MovableEntity |
---|
306 | position = "<?lua print(math.random()* 10000 - 5000) ?>,<?lua print(math.random() * 15000 + 45000) ?>,<?lua print(math.random() * 10000 - 5000) ?>" |
---|
307 | collisionType = dynamic |
---|
308 | linearDamping = 0.8 |
---|
309 | angularDamping = 0 |
---|
310 | scale = "<?lua print(j * 200)?>" |
---|
311 | collisiondamage = 0.05 |
---|
312 | enablecollisiondamage = true |
---|
313 | > |
---|
314 | <attached> |
---|
315 | <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
316 | </attached> |
---|
317 | <collisionShapes> |
---|
318 | <SphereCollisionShape radius="<?lua print(j * 350) ?>" /> |
---|
319 | </collisionShapes> |
---|
320 | </MovableEntity> |
---|
321 | |
---|
322 | <?lua |
---|
323 | end |
---|
324 | ?> |
---|
325 | |
---|
326 | <DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/> |
---|
327 | <SimpleNotification message="Now go to the portal"> |
---|
328 | <events> |
---|
329 | <trigger> |
---|
330 | <EventListener event="portal2" /> |
---|
331 | </trigger> |
---|
332 | </events> |
---|
333 | </SimpleNotification> |
---|
334 | |
---|
335 | <DistanceTrigger name="portal3" position="0,50000,0" target="Pawn" distance=50 stayActive="true" delay=3/> |
---|
336 | <SimpleNotification message="You came to District 69"> |
---|
337 | <events> |
---|
338 | <trigger> |
---|
339 | <EventListener event="portal3" /> |
---|
340 | </trigger> |
---|
341 | </events> |
---|
342 | </SimpleNotification> |
---|
343 | |
---|
344 | </Scene> |
---|
345 | </Level> |
---|
346 | |
---|