Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ai2/data/levels/missionOne.oxw @ 8824

Last change on this file since 8824 was 8824, checked in by jo, 13 years ago

Some updates to the level.

File size: 13.0 KB
Line 
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
16include("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    <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"/>
48    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
49    <!-- Script code="artificialcontroller setbotlevel 0.1" /--> <!-- Does not influence waypointPatrolController-->
50
51<!-- END OF INCLUDES & NECESSARITIES -->
52
53<!-- TUTORIAL-TODO: -->
54
55<!-- 1. Aiming & Weapons (static targets, moving targets, dangerous targets)--> <!-- 3 Mouse buttons + "T"-->
56<!-- 2. Flying & manoeuvring (basic flying, using pickups, forcefields, docks & portals) --> <!-- "W","S","SPACE"-->
57<!-- 3. Game handling (quests, knowing when a game is over :-), pausing, chat, ... ) --> <!--"F3", "F2", "ESC" -->
58<!-- 4. Extras (other things to discover) --> <!-- "Q","E","A","D","C", "CTRL", "", ... -->
59
60<!--
61Four boxes for aiming
62TODO: Turn engine off at the beginning.
63TODO: display text: "Destroy those four boxes. Aim the a the box and shoot by using the left mouse button."
64"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."
65"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."
66"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."
67
68TODO: send in waypoint controlled ship that moves
69
70"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."
71
72TODO: Turn engine on. Display a waypoint.
73"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 to A 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 .."
74"That thing you've just collected is a drone. It will follow and protect you."
75TODO: send in a level 0.1 bot on a pirate ship.
76"Hi. We have been attacked by a pirate lately. Please protect us. The drone pickup will help you."
77
78-->
79<!-------------------------------------- PART ONE: Destroy boxes --------------------------------------->
80    <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=1 />
81    <SimpleNotification message="Destroy those four boxes.">
82        <events>
83            <trigger>
84                <EventListener event=spawndelaytrigger1 />
85            </trigger>
86        </events>
87    </SimpleNotification>
88
89    <DistanceTrigger name="spawndelaytrigger2" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=2 />
90    <SimpleNotification message=" 1. Aim the a the red cycle.">
91        <events>
92            <trigger>
93                <EventListener event=spawndelaytrigger2 />
94            </trigger>
95        </events>
96    </SimpleNotification>
97
98    <DistanceTrigger name="spawndelaytrigger3" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=4 />
99    <SimpleNotification message="2. Click! (hold the left mouse button)">
100        <events>
101            <trigger>
102                <EventListener event=spawndelaytrigger3 />
103            </trigger>
104        </events>
105    </SimpleNotification>
106
107<!-- BRIEFING END // Interactive briefing start -->
108
109  <SimpleNotification message="Right click on the next target." broadcast="true">
110        <events>
111            <trigger>
112                <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000>
113                    <attached>
114                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
115                    </attached>
116                    <collisionShapes>
117                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
118                    </collisionShapes>
119                </Pawn>
120            </trigger>
121        </events>
122    </SimpleNotification>
123
124  <SimpleNotification message="Middle click on the next target." broadcast="true">
125        <events>
126            <trigger>
127                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000>
128                    <attached>
129                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
130                    </attached>
131                    <collisionShapes>
132                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
133                    </collisionShapes>
134                </Pawn>
135            </trigger>
136        </events>
137    </SimpleNotification>
138
139  <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true">
140        <events>
141            <trigger>
142                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000>
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  <SimpleNotification message="Well done. Now press 'W'." broadcast="true">
155        <events>
156            <trigger>
157                <Pawn health=30 position="0,300,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
170<!--------------------------------------PART TWO: Moving targets --------------------------------------->
171
172    <SpaceShip position="0,1500,200" lookat="0,0,0">
173      <templates>
174        <Template link=spaceshippirate />
175      </templates>
176      <controller>
177        <WaypointController>
178          <waypoints>
179            <Model mesh="cube.mesh" scale=8 position="  0,1300,-200" />
180            <Model mesh="cube.mesh" scale=8 position="  0,1300,-700" />
181            <Model mesh="cube.mesh" scale=8 position="500,1300,-700" />
182            <Model mesh="cube.mesh" scale=8 position="500,1300,-200" />
183          </waypoints>
184        </WaypointController>
185      </controller>
186    </SpaceShip>
187    <PickupSpawner position="250,1300,-450" triggerDistance="10" respawnTime="30" maxSpawnedItems="1">
188      <pickup>
189        <DronePickup template=dronepickup />
190      </pickup>
191    </PickupSpawner>
192
193    <SpaceShip position="0,1500,400" lookat="0,0,0">
194      <templates>
195        <Template link=spaceshippirate />
196      </templates>
197      <controller>
198        <WaypointController>
199          <waypoints>
200            <Model mesh="cube.mesh" scale=8 position="  0,1300,1000" />
201            <Model mesh="cube.mesh" scale=8 position="  0,1300,500" />
202            <Model mesh="cube.mesh" scale=8 position="500,1300,500" />
203            <Model mesh="cube.mesh" scale=8 position="500,1300, 1000" />
204          </waypoints>
205        </WaypointController>
206      </controller>
207    </SpaceShip>
208
209
210<!--------------------------------------PART THREE: to the space station --------------------------------------->
211    <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=2 />
212    <SimpleNotification message="Welcome to the Duball Space Station!">
213        <events>
214            <trigger>
215                <EventListener event=duball1 />
216            </trigger>
217        </events>
218    </SimpleNotification>
219
220    <DistanceTrigger name="duball2" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=4 />
221    <SimpleNotification message="Warning: Something big is coming.">
222        <events>
223            <trigger>
224                <EventListener event=duball2 />
225            </trigger>
226        </events>
227    </SimpleNotification>
228
229    <DistanceTrigger name="duball2" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=6 />
230    <SimpleNotification message="Be on your guard!">
231        <events>
232            <trigger>
233                <EventListener event=duball3 />
234            </trigger>
235        </events>
236    </SimpleNotification>
237
238<StaticEntity position="-1000,-300,700" collisionType=static>
239      <attached>
240        <Model scale=11 mesh="DuBall1.mesh" position = "-100,0,0"/>
241        <Model scale=11 mesh="DuBall2.mesh" position = "100,0,0"/>
242        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
243        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>       
244      </attached>
245      <collisionShapes>
246        <SphereCollisionShape radius="80"            position = "-100,0,0" />
247        <SphereCollisionShape radius="120"           position = "100,0,0" />
248        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
249      </collisionShapes>
250</StaticEntity>
251
252    <DistanceTrigger name="duball3" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=6 />
253    <!-- SpaceShip position="-1000,900,700" lookat="0,0,0">
254      <templates>
255        <Template link=spaceshipTransporter />
256      </templates>
257      <controller>
258        <WaypointPatrolController>
259          <waypoints>
260            <Model mesh="cube.mesh" scale=8 position="-1000,500,700" />
261          </waypoints>
262        </WaypointPatrolController>
263      </controller>
264        <events>
265            <trigger>
266                <EventListener event=duball3 />
267            </trigger>
268        </events>
269    </SpaceShip -->
270
271<!--------------------------------------PART FOUR --------------------------------------->
272
273<!--------------------------------------DUMP YARD --------------------------------------->
274<!-- Idea: Pawndeath should trigger several , delayed events. -->
275    <!--EventTrigger name="PawnDied4" >
276        <events>
277            <trigger>
278                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000>
279                    <attached>
280                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
281                    </attached>
282                    <collisionShapes>
283                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
284                    </collisionShapes>
285                </Pawn>
286            </trigger>
287        </events>
288    </EventTrigger-->
289
290    <!--SimpleNotification message="Manual rockets are difficult to use.">
291        <events>
292            <trigger>
293                <EventListener event=PawnDied4 />
294            </trigger>
295        </events>
296    </SimpleNotification>
297
298    <Trigger name=boxend1 mode=and >
299        <EventTrigger name=trigger6>
300            <events>
301                <trigger>
302                    <EventListener event=PawnDied4/>
303                </trigger>
304            </events>
305        </EventTrigger>
306        <DistanceTrigger name="boxend2" position="-200,0,0" target="Pawn" distance=100 stayActive="true" delay=2 />
307    </Trigger>
308
309    <SimpleNotification message="Let's move on to the pirate ships.">
310        <events>
311            <trigger>
312                <EventListener event=boxend1 />
313            </trigger>
314        </events>
315    </SimpleNotification-->
316
317
318  </Scene>
319</Level>
320
Note: See TracBrowser for help on using the repository browser.