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