1 | <LevelInfo |
---|
2 | name = "Mission One" |
---|
3 | description = "First guided steps in the orxonoxian universe." |
---|
4 | tags = "singleplayer" |
---|
5 | /> |
---|
6 | |
---|
7 | <?lua |
---|
8 | include("stats.oxo") |
---|
9 | include("HUDTemplates3.oxo") |
---|
10 | include("templates/lodInformation.oxt") |
---|
11 | include("templates/spaceshipAssff.oxt") |
---|
12 | include("templates/spaceshipPirate.oxt") |
---|
13 | ?> |
---|
14 | |
---|
15 | <?lua |
---|
16 | include("templates/pickupRepresentationTemplates.oxt") |
---|
17 | ?> |
---|
18 | |
---|
19 | <Level |
---|
20 | name = "Tutorial" |
---|
21 | description = "How to steer a spaceship." |
---|
22 | > |
---|
23 | <templates> |
---|
24 | <Template link=lodtemplate_default /> |
---|
25 | </templates> |
---|
26 | <?lua include("includes/notifications.oxi") ?> |
---|
27 | |
---|
28 | <NotificationQueueCEGUI |
---|
29 | name="narrative" |
---|
30 | targets="simpleNotification" |
---|
31 | size=1 |
---|
32 | displayTime=30 |
---|
33 | position="0.2, 0, 0.1, 0" |
---|
34 | fontSize="24" |
---|
35 | fontColor="0.3, 1, 0.2, 0.8" |
---|
36 | alignment="HorzCentred" |
---|
37 | displaySize="0.6, 0, 0, 0" |
---|
38 | /> |
---|
39 | <Scene |
---|
40 | ambientlight = "0.8, 0.8, 0.8" |
---|
41 | skybox = "Orxonox/Starbox" |
---|
42 | > |
---|
43 | <?lua |
---|
44 | include("includes/pickups.oxi") |
---|
45 | ?> |
---|
46 | |
---|
47 | <WorldAmbientSound |
---|
48 | ambientSource="AlphaCentauri.ogg" |
---|
49 | looping="true" |
---|
50 | playOnLoad="true" |
---|
51 | /> |
---|
52 | |
---|
53 | <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"/> |
---|
54 | <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
55 | <!-- Script code="artificialcontroller setbotlevel 0.1" /--> <!-- Does not influence waypointPatrolController--> |
---|
56 | |
---|
57 | <!-- END OF INCLUDES & NECESSARITIES --> |
---|
58 | |
---|
59 | <!-- TUTORIAL-TODO: --> |
---|
60 | |
---|
61 | <!-- 1. Aiming & Weapons (static targets, moving targets, dangerous targets)--> <!-- 3 Mouse buttons + "T"--> |
---|
62 | <!-- 2. Flying & manoeuvring (basic flying, using pickups, forcefields, docks & portals) --> <!-- "W","S","SPACE"--> |
---|
63 | <!-- 3. Game handling (quests, knowing when a game is over :-), pausing, chat, ... ) --> <!--"F3", "F2", "ESC" --> |
---|
64 | <!-- 4. Extras (other things to discover) --> <!-- "Q","E","A","D","C", "CTRL", "", ... --> |
---|
65 | |
---|
66 | <!-- |
---|
67 | Four boxes for aiming |
---|
68 | TODO: Turn engine off at the beginning. |
---|
69 | TODO: display text: "Destroy those four boxes. Aim the a the box and shoot by using the left mouse button." |
---|
70 | "The laser is a standard weapon. It is fast and precise but does not deal much damage. Now do the same with the next target, but right click instead." |
---|
71 | "That was the lightning gun. Its plasma munition is quite slow, but a normal spaceship can't take more than three hits of such a strong weapon. That should be your favourite in close range combat or if you want to hit a really slow enemy. Try to destroy the next box by right clicking at it." |
---|
72 | "The target seeking rockets follow their target on their own and the explosive load shouldn't be underestimated. Now its time to hit the last target with the hand guided rocket. You can release one by pressing T once. Note: If you miss the target, you can get out of the rocket by clicking or pressing T once more." |
---|
73 | |
---|
74 | TODO: send in waypoint controlled ship that moves |
---|
75 | |
---|
76 | "Task complete. Manual rockets are your most powerful weapon. But since you have to steer it to your target yourself, you will leave your spaceship unprotected for a while. Now lets move to a slightly more difficult target. Take a look at your radar. The red dot is an enemy's ship. Try to turn your ship towards it, such that the red dot is in the radar's centre. You should be able to see it then directly. Your task is to destroy it." |
---|
77 | |
---|
78 | TODO: Turn engine on. Display a waypoint. |
---|
79 | "Lets start flying. Use W to accelerate and S to brake. The goal is to reach the spacestation which is displayed on the radar. If you want to be faster you can temporarily boost by hitting additionally the space button. If you use too much boost your engine heats up and you won't be able to use boost for a while. By the way boost could be useful during combat .." |
---|
80 | "That thing you've just collected is a drone. It will follow and protect you." |
---|
81 | TODO: send in a level 0.1 bot on a pirate ship. |
---|
82 | "Hi. We have been attacked by a pirate lately. Please protect us. The drone pickup will help you." |
---|
83 | |
---|
84 | --> |
---|
85 | |
---|
86 | |
---|
87 | <!-------------------------------------- PART ONE: Destroy boxes ---------------------------------------> |
---|
88 | <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=2 /> |
---|
89 | <SimpleNotification message="Destroy those four boxes."> |
---|
90 | <events> |
---|
91 | <trigger> |
---|
92 | <EventListener event=spawndelaytrigger1 /> |
---|
93 | </trigger> |
---|
94 | </events> |
---|
95 | </SimpleNotification> |
---|
96 | |
---|
97 | <DistanceTrigger name="spawndelaytrigger2" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=5 /> |
---|
98 | <SimpleNotification message=" 1. Aim the a the red cycle."> |
---|
99 | <events> |
---|
100 | <trigger> |
---|
101 | <EventListener event=spawndelaytrigger2 /> |
---|
102 | </trigger> |
---|
103 | </events> |
---|
104 | </SimpleNotification> |
---|
105 | |
---|
106 | <DistanceTrigger name="spawndelaytrigger3" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=8 /> |
---|
107 | <SimpleNotification message="2. Click! (hold the left mouse button)"> |
---|
108 | <events> |
---|
109 | <trigger> |
---|
110 | <EventListener event=spawndelaytrigger3 /> |
---|
111 | </trigger> |
---|
112 | </events> |
---|
113 | </SimpleNotification> |
---|
114 | |
---|
115 | <!-- static briefing END // Interactive briefing start --> |
---|
116 | |
---|
117 | <SimpleNotification message="Right click on the next target." broadcast="true"> |
---|
118 | <events> |
---|
119 | <trigger> |
---|
120 | <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
121 | <attached> |
---|
122 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
123 | </attached> |
---|
124 | <collisionShapes> |
---|
125 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
126 | </collisionShapes> |
---|
127 | </Pawn> |
---|
128 | </trigger> |
---|
129 | </events> |
---|
130 | </SimpleNotification> |
---|
131 | |
---|
132 | <SimpleNotification message="Middle click on the next target." broadcast="true"> |
---|
133 | <events> |
---|
134 | <trigger> |
---|
135 | <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
136 | <!--events> |
---|
137 | <visibility> |
---|
138 | <EventListener event=spawndelaytrigger3 /> |
---|
139 | </visibility> |
---|
140 | </events--> |
---|
141 | |
---|
142 | <attached> |
---|
143 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
144 | </attached> |
---|
145 | <collisionShapes> |
---|
146 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
147 | </collisionShapes> |
---|
148 | </Pawn> |
---|
149 | </trigger> |
---|
150 | </events> |
---|
151 | </SimpleNotification> |
---|
152 | |
---|
153 | |
---|
154 | <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true"> |
---|
155 | <events> |
---|
156 | <trigger> |
---|
157 | <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
158 | <attached> |
---|
159 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
160 | </attached> |
---|
161 | <collisionShapes> |
---|
162 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
163 | </collisionShapes> |
---|
164 | </Pawn> |
---|
165 | </trigger> |
---|
166 | </events> |
---|
167 | </SimpleNotification> |
---|
168 | |
---|
169 | <SimpleNotification message="Fly towards the pirates. Press 'W'." broadcast="true"> |
---|
170 | <events> |
---|
171 | <trigger> |
---|
172 | <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
173 | <attached> |
---|
174 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
175 | </attached> |
---|
176 | <collisionShapes> |
---|
177 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
178 | </collisionShapes> |
---|
179 | </Pawn> |
---|
180 | </trigger> |
---|
181 | </events> |
---|
182 | </SimpleNotification> |
---|
183 | |
---|
184 | |
---|
185 | <!--------------------------------------PART TWO: Moving targets ---------------------------------------> |
---|
186 | <DistanceTrigger name="movingtargets" position="0,500,0" target="Pawn" distance=180 stayActive="true" delay=2 /> |
---|
187 | <Billboard position="0,500,0" material="Examples/Flare" colour="0.5,0,0" scale=3/><!-- TODO: hide. --> |
---|
188 | <SimpleNotification message="Try to hit the pirates while you are flying."> |
---|
189 | <events> |
---|
190 | <trigger> |
---|
191 | <EventListener event=movingtargets /> |
---|
192 | </trigger> |
---|
193 | </events> |
---|
194 | </SimpleNotification> |
---|
195 | |
---|
196 | |
---|
197 | |
---|
198 | <SimpleNotification message="Now get the other one." broadcast="true"> |
---|
199 | <events> |
---|
200 | <trigger> |
---|
201 | <SpaceShip position="0,2000,200" lookat="0,0,0"> |
---|
202 | <templates> |
---|
203 | <Template link=spaceshippirate /> |
---|
204 | </templates> |
---|
205 | <controller> |
---|
206 | <WaypointController> |
---|
207 | <waypoints> |
---|
208 | <Model mesh="cube.mesh" scale=8 position=" 0,1700,-200" /> |
---|
209 | <Model mesh="cube.mesh" scale=8 position=" 0,1700,-700" /> |
---|
210 | <Model mesh="cube.mesh" scale=8 position="500,1700,-700" /> |
---|
211 | <Model mesh="cube.mesh" scale=8 position="500,1700,-200" /> |
---|
212 | </waypoints> |
---|
213 | </WaypointController> |
---|
214 | </controller> |
---|
215 | </SpaceShip> |
---|
216 | </trigger> |
---|
217 | </events> |
---|
218 | </SimpleNotification> |
---|
219 | |
---|
220 | <SimpleNotification message="Fly towards the space station (grey dot)." broadcast="true"> |
---|
221 | <events> |
---|
222 | <trigger> |
---|
223 | <SpaceShip position="0,2000,400" lookat="0,0,0"> |
---|
224 | <templates> |
---|
225 | <Template link=spaceshippirate /> |
---|
226 | </templates> |
---|
227 | <controller> |
---|
228 | <WaypointController> |
---|
229 | <waypoints> |
---|
230 | <Model mesh="cube.mesh" scale=8 position=" 0,2400,1000" /> |
---|
231 | <Model mesh="cube.mesh" scale=8 position=" 0,2400,500" /> |
---|
232 | <Model mesh="cube.mesh" scale=8 position="500,2400,500" /> |
---|
233 | <Model mesh="cube.mesh" scale=8 position="500,2400, 1000" /> |
---|
234 | </waypoints> |
---|
235 | </WaypointController> |
---|
236 | </controller> |
---|
237 | </SpaceShip> |
---|
238 | </trigger> |
---|
239 | </events> |
---|
240 | </SimpleNotification> |
---|
241 | |
---|
242 | <!--------------------------------------PART THREE: to the space station ---------------------------------------> |
---|
243 | <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=2 /> |
---|
244 | <SimpleNotification message="Welcome to the Duball Space Station!"> |
---|
245 | <events> |
---|
246 | <trigger> |
---|
247 | <EventListener event=duball1 /> |
---|
248 | </trigger> |
---|
249 | </events> |
---|
250 | </SimpleNotification> |
---|
251 | |
---|
252 | <DistanceTrigger name="duball2" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=5 /> |
---|
253 | <SimpleNotification message="Warning: Something big is coming."> |
---|
254 | <events> |
---|
255 | <trigger> |
---|
256 | <EventListener event=duball2 /> |
---|
257 | </trigger> |
---|
258 | </events> |
---|
259 | </SimpleNotification> |
---|
260 | |
---|
261 | <!--DistanceTrigger name="duball3" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=9 /> |
---|
262 | <SimpleNotification message="Get some help, before it is too late."> |
---|
263 | <events> |
---|
264 | <trigger> |
---|
265 | <EventListener event=duball3 /> |
---|
266 | </trigger> |
---|
267 | </events> |
---|
268 | </SimpleNotification--> |
---|
269 | |
---|
270 | <DistanceTrigger name="duball4" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=10 /> |
---|
271 | <SimpleNotification message="Use the portals to get help. (grey dot)"> |
---|
272 | <events> |
---|
273 | <trigger> |
---|
274 | <EventListener event=duball4 /> |
---|
275 | </trigger> |
---|
276 | </events> |
---|
277 | </SimpleNotification> |
---|
278 | |
---|
279 | |
---|
280 | |
---|
281 | <!-- PORTALS --> |
---|
282 | <Template name=PortalDefault> |
---|
283 | <PortalEndPoint> |
---|
284 | <attached> |
---|
285 | <Billboard material="Portals/Default" /> |
---|
286 | </attached> |
---|
287 | </PortalEndPoint> |
---|
288 | </Template> |
---|
289 | |
---|
290 | <PortalEndPoint position="-1400,-500,800" id="1" distance="40" target="MobileEntity" design="PortalDefault"> |
---|
291 | <!--events> |
---|
292 | <visibility> |
---|
293 | <EventListener event=portal /> |
---|
294 | </visibility> |
---|
295 | </events--> |
---|
296 | </PortalEndPoint> |
---|
297 | |
---|
298 | <PortalEndPoint position="-47000,-1000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" /> |
---|
299 | <PortalLink fromID="1" toID="2" /> |
---|
300 | <PortalLink fromID="2" toID="1" /> |
---|
301 | <!-- PORTALS END--> |
---|
302 | |
---|
303 | |
---|
304 | |
---|
305 | <StaticEntity position="-1000,-300,700" collisionType=static> |
---|
306 | <attached> |
---|
307 | <Model scale=11 mesh="DuBall1.mesh" position = "-100,0,0"/> |
---|
308 | <Model scale=11 mesh="DuBall2.mesh" position = "100,0,0"/> |
---|
309 | <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> |
---|
310 | <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> |
---|
311 | </attached> |
---|
312 | <collisionShapes> |
---|
313 | <SphereCollisionShape radius="80" position = "-100,0,0" /> |
---|
314 | <SphereCollisionShape radius="120" position = "100,0,0" /> |
---|
315 | <BoxCollisionShape halfExtents="90,25,45" position = "-155,0,40" /> |
---|
316 | </collisionShapes> |
---|
317 | </StaticEntity> |
---|
318 | |
---|
319 | <DistanceTrigger name="duball3" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=6 /> |
---|
320 | <!-- SpaceShip position="-1000,900,700" lookat="0,0,0"> |
---|
321 | <templates> |
---|
322 | <Template link=spaceshipTransporter /> |
---|
323 | </templates> |
---|
324 | <controller> |
---|
325 | <WaypointPatrolController> |
---|
326 | <waypoints> |
---|
327 | <Model mesh="cube.mesh" scale=8 position="-1000,500,700" /> |
---|
328 | </waypoints> |
---|
329 | </WaypointPatrolController> |
---|
330 | </controller> |
---|
331 | <events> |
---|
332 | <trigger> |
---|
333 | <EventListener event=duball3 /> |
---|
334 | </trigger> |
---|
335 | </events> |
---|
336 | </SpaceShip --> |
---|
337 | |
---|
338 | <!-------------------------------------- PART FOUR : Get Help ---------------------------------------> |
---|
339 | <DistanceTrigger name="famer1" position="-48200,100,0" target="Pawn" distance=300 stayActive="true" delay=0 /> |
---|
340 | <SimpleNotification message="We just received a message from DuBall."> |
---|
341 | <events> |
---|
342 | <trigger> |
---|
343 | <EventListener event=famer1 /> |
---|
344 | </trigger> |
---|
345 | </events> |
---|
346 | </SimpleNotification> |
---|
347 | |
---|
348 | <DistanceTrigger name="famer2" position="-48200,100,0" target="Pawn" distance=300 stayActive="true" delay=4 /> |
---|
349 | <SimpleNotification message="We will lend you our strongest ship."> |
---|
350 | <events> |
---|
351 | <trigger> |
---|
352 | <EventListener event=famer2 /> |
---|
353 | </trigger> |
---|
354 | </events> |
---|
355 | </SimpleNotification> |
---|
356 | <!-- TODO: a) docking, b) spacecruiser, c) enemy --> |
---|
357 | |
---|
358 | <!-- HYDROGEN FARMER & DOCKING?? --> |
---|
359 | <SpaceShip position="-48600,100,0" roll=90 yaw=0 pitch=20 mass=10000 health=100000 > |
---|
360 | <attached> |
---|
361 | <!-- Docking --> |
---|
362 | <!--DistanceTriggerBeacon name="bcnDestroyer" /> |
---|
363 | <DockingTarget name="destroyer" /--> |
---|
364 | |
---|
365 | <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 /> |
---|
366 | <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245" /> |
---|
367 | <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 /> |
---|
368 | <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 /> |
---|
369 | <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" /> |
---|
370 | <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50" yaw=-120/> |
---|
371 | <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/> |
---|
372 | <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" /> |
---|
373 | <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/> |
---|
374 | <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/> |
---|
375 | <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 /> |
---|
376 | <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" /> |
---|
377 | <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/> |
---|
378 | <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/> |
---|
379 | <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/> |
---|
380 | <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/> |
---|
381 | <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/> --> |
---|
382 | </attached> |
---|
383 | <collisionShapes> |
---|
384 | <BoxCollisionShape position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes --> |
---|
385 | <BoxCollisionShape position="290,0,-480" halfExtents="115,100,245" yaw=-120 /> |
---|
386 | <BoxCollisionShape position="290,0,480" halfExtents="115,100,245" yaw=-240 /> |
---|
387 | <BoxCollisionShape position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections --> |
---|
388 | <BoxCollisionShape position="140,0,-240" halfExtents="163,50,50" yaw=-120 /> |
---|
389 | <BoxCollisionShape position="140,0,240" halfExtents="163,50,50" yaw=-240 /> |
---|
390 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower --> |
---|
391 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-120 /> |
---|
392 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-240 /> |
---|
393 | <BoxCollisionShape position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one--> |
---|
394 | <BoxCollisionShape position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs --> |
---|
395 | <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=-30 /> |
---|
396 | <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=30 /> |
---|
397 | <BoxCollisionShape position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs --> |
---|
398 | <BoxCollisionShape position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 /> |
---|
399 | <BoxCollisionShape position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 /> |
---|
400 | </collisionShapes> |
---|
401 | </SpaceShip> |
---|
402 | |
---|
403 | |
---|
404 | |
---|
405 | <!-- Pickup - find better place !! --> |
---|
406 | <DistanceTrigger name="pickupShield" position="-49300,100,0" target="Pawn" distance=20 stayActive="true" delay=0 /> |
---|
407 | <SimpleNotification message="This pickup enhances your shield."> |
---|
408 | <events> |
---|
409 | <trigger> |
---|
410 | <EventListener event=pickupShield /> |
---|
411 | </trigger> |
---|
412 | </events> |
---|
413 | </SimpleNotification> |
---|
414 | |
---|
415 | <PickupSpawner position="-49300,100,0" triggerDistance="20" respawnTime="30" maxSpawnedItems="1"> |
---|
416 | <pickup> |
---|
417 | <ShieldPickup template=hugeshieldpickup /> |
---|
418 | </pickup> |
---|
419 | </PickupSpawner> |
---|
420 | <!-- Pickup--> |
---|
421 | |
---|
422 | |
---|
423 | <Planet |
---|
424 | position="-44000,0,0" |
---|
425 | scale="2500" |
---|
426 | collisionType="dynamic" |
---|
427 | linearDamping="0.8" |
---|
428 | angularDamping="0" |
---|
429 | mass="10000000" |
---|
430 | pitch="0" |
---|
431 | mesh="planets/muunilinst.mesh" |
---|
432 | atmosphere="atmosphere1" |
---|
433 | rotationaxis="1,0,0" |
---|
434 | rotationrate="1.0" |
---|
435 | atmospheresize="80.0f" |
---|
436 | imagesize="1024.0f" |
---|
437 | collisiondamage = 2 |
---|
438 | enablecollisiondamage = true |
---|
439 | > |
---|
440 | <!--attached> |
---|
441 | <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> |
---|
442 | </attached--> <!-- Forcefield kills HYDROGEN FARMER--> |
---|
443 | <collisionShapes> |
---|
444 | <SphereCollisionShape radius="2350" position="0,0,0" /> <!-- Nasty: Collisionradius =! planet scale --> |
---|
445 | </collisionShapes> |
---|
446 | </Planet> |
---|
447 | |
---|
448 | |
---|
449 | <!--------------------------------------DUMP YARD ---------------------------------------> |
---|
450 | <!-- TODO: Docking causes game to crash !! what went wrong ?? --> |
---|
451 | <!-- Dock position="-48600,1288,-255" roll=90 yaw=180 > |
---|
452 | <animations> |
---|
453 | <MoveToDockingTarget target="destroyer" /> |
---|
454 | </animations> |
---|
455 | <effects> |
---|
456 | <DockToShip target="spaceShip" /> |
---|
457 | </effects> |
---|
458 | <events> |
---|
459 | <execute> |
---|
460 | <EventListener event="dockMe" /> |
---|
461 | </execute> |
---|
462 | </events> |
---|
463 | <attached> |
---|
464 | <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn" |
---|
465 | beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" |
---|
466 | /> |
---|
467 | <Billboard position="0,0,0" material="Examples/Flare" colour="0.5,0,0" scale=3/> |
---|
468 | </attached> |
---|
469 | </Dock> |
---|
470 | |
---|
471 | <SpaceShip template="spaceshipassff" position="-48600,5000,67" orientation="-0.14045, 0.68254, 0.68144, 0.223774" > |
---|
472 | <attached> |
---|
473 | <DockingTarget name="spaceShip" /> |
---|
474 | </attached> |
---|
475 | </SpaceShip--> |
---|
476 | |
---|
477 | |
---|
478 | |
---|
479 | <!-- TODO: a) bots trigger themselves b) bots are not in player's team c) bots do friendly fire --> |
---|
480 | |
---|
481 | <!--Trigger to activate this Team (TEAM NO 1)--> |
---|
482 | <!--DistanceTrigger name="activateTeam0No1" position="-40400,100,0" distance="300" target="Pawn" activations="1" stayactive="true" /--> |
---|
483 | <!--TEAM NO 1 (activationType : distance || killing a spaceship what belongs to TEAM 0 NO 0)--> |
---|
484 | <?lua for i=0,10,1 do |
---|
485 | x=math.random(-300,300) |
---|
486 | y=math.random(-200,200) |
---|
487 | z=math.random(-200,200) |
---|
488 | ?> |
---|
489 | <EventTrigger name="activateTeam0No1" activations=1 stayactive="true"> |
---|
490 | <events> |
---|
491 | <trigger> |
---|
492 | <SpaceShip position="<?lua print(x-39200) ?>,<?lua print(y-2000) ?>,<?lua print(z+4000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>"> |
---|
493 | <templates> |
---|
494 | <Template link=spaceshipassff /> |
---|
495 | </templates> |
---|
496 | <controller> |
---|
497 | <WaypointPatrolController alertnessradius=3129 team=0 active=false> |
---|
498 | <waypoints> |
---|
499 | <Model mesh="cube.mesh" scale=0 position="-40000,0,0" /> |
---|
500 | <Model mesh="cube.mesh" scale=0 position="-40100,250,-500" /> |
---|
501 | <Model mesh="cube.mesh" scale=0 position="0,0,0" /> |
---|
502 | </waypoints> |
---|
503 | <events> |
---|
504 | <activity> |
---|
505 | <EventListener event="activateTeam0No1" /> |
---|
506 | </activity> |
---|
507 | </events> |
---|
508 | </WaypointPatrolController> |
---|
509 | </controller> |
---|
510 | </SpaceShip> |
---|
511 | </trigger> |
---|
512 | </events> |
---|
513 | </EventTrigger> |
---|
514 | |
---|
515 | <?lua end ?> |
---|
516 | <!--Creating spaceships (player's team) END --> |
---|
517 | |
---|
518 | |
---|
519 | |
---|
520 | |
---|
521 | |
---|
522 | <!-- Idea: Pawndeath should trigger several , delayed events. --> |
---|
523 | <!--EventTrigger name="PawnDied4" > |
---|
524 | <events> |
---|
525 | <trigger> |
---|
526 | <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
527 | <attached> |
---|
528 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
529 | </attached> |
---|
530 | <collisionShapes> |
---|
531 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
532 | </collisionShapes> |
---|
533 | </Pawn> |
---|
534 | </trigger> |
---|
535 | </events> |
---|
536 | </EventTrigger--> |
---|
537 | |
---|
538 | <!--SimpleNotification message="Manual rockets are difficult to use."> |
---|
539 | <events> |
---|
540 | <trigger> |
---|
541 | <EventListener event=PawnDied4 /> |
---|
542 | </trigger> |
---|
543 | </events> |
---|
544 | </SimpleNotification> |
---|
545 | |
---|
546 | <Trigger name=boxend1 mode=and > |
---|
547 | <EventTrigger name=trigger6> |
---|
548 | <events> |
---|
549 | <trigger> |
---|
550 | <EventListener event=PawnDied4/> |
---|
551 | </trigger> |
---|
552 | </events> |
---|
553 | </EventTrigger> |
---|
554 | <DistanceTrigger name="boxend2" position="-200,0,0" target="Pawn" distance=100 stayActive="true" delay=2 /> |
---|
555 | </Trigger> |
---|
556 | |
---|
557 | <SimpleNotification message="Let's move on to the pirate ships."> |
---|
558 | <events> |
---|
559 | <trigger> |
---|
560 | <EventListener event=boxend1 /> |
---|
561 | </trigger> |
---|
562 | </events> |
---|
563 | </SimpleNotification--> |
---|
564 | |
---|
565 | |
---|
566 | </Scene> |
---|
567 | </Level> |
---|
568 | |
---|