Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/keckslevelHS14/data/levels/kecks.oxw @ 10164

Last change on this file since 10164 was 10164, checked in by kecks, 9 years ago

Level file changed.

File size: 10.8 KB
Line 
1<LevelInfo
2 name = "kecks"
3 description = "Save your planet."
4 tags = "Test"
5 screenshot = "pirateattack.png"
6 gametype=Mission
7/>
8
9<!--"screenShot_12102014_144326778.png"-->
10
11<?lua
12  include("stats.oxo")
13  include("HUDTemplates3.oxo")
14  include("templates/lodInformation.oxt")
15
16?>
17
18<?lua
19    dofile("includes/asteroidField.lua")
20?>
21
22<?lua
23  include("templates/spaceshipAssff2.oxt")
24  include("templates/spaceshipPirate.oxt")
25  include("templates/spaceshipHXY.oxt")
26?>
27
28<Level gametype = "Mission">
29
30  <templates>
31    <Template link=lodtemplate_default />
32  </templates>
33
34<?lua include("includes/notifications.oxi") ?>
35
36<NotificationQueueCEGUI
37    name="narrative"
38    targets="simpleNotification"
39    size=3
40    displayTime=3.9
41    position="0.2, 0, 0.1, 0"
42    fontSize="23"
43    fontColor="0.3, 1, 0.2, 0.8"
44    alignment="HorzCentred"
45    displaySize="0.6, 0, 0, 0"
46    />
47
48<Scene
49        ambientlight = "0.8, 0.8, 0.8"
50        skybox       = "Orxonox/skyBoxBasic"
51>
52<!-- TODO: Trigger fuer Boxen, SimpleNotification, Gegner sollen nicht explodieren, Spawnpoint 2 -->
53
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
56    <SpawnPoint roll="180" position="0,0, 0" lookat="0, 1000, 0" spawnclass=SpaceShip pawndesign=spaceshipHXY team=0 active="true" />
57
58<!-- 2. Spawnpoint
59        <SpawnPoint roll="180" position="0, 114500, 0" lookat="0, 150000, 0" spawnclass=SpaceShip pawndesign=spaceshipHXY team=0 active="false" />     
60                <events>
61               <activity>
62                   <EventListener event="atPortal1" />
63               </activity>
64           </events>
65       </SpawnPoint>
66-->
67<DistanceTrigger name="startmission" position="0,100,0" target="SpaceShip" targetname="spaceshipHXY"  distance=90 activations=1 stayActive=true />
68
69        <SimpleNotification message="Follow the spaceships to escape" boadcast="true">
70                <events>
71                          <trigger>
72                                  <EventListener event="startmission" />
73                          </trigger>
74                  </events>
75        </SimpleNotification>
76
77<SimpleNotification message="Destroy the box to free the spaceships." boadcast="true">
78        <events>
79                  <trigger>
80                          <EventListener event="atPortal1" />
81                  </trigger>
82          </events>
83</SimpleNotification>
84
85        <SimpleNotification message="Defend your planet." broadcast="true">
86                <events>
87                          <trigger>
88                                  <EventListener event="boxDestroyed" />
89                          </trigger>
90                  </events>
91        </SimpleNotification>
92
93
94        <!-- Distance Trigger-->
95       
96        <DistanceTrigger name="atPortal1" position="0,112000,0" target="SpaceShip" targetname="spaceshipHXY" distance=100 activations=1 stayActive=true />
97        <EventTrigger name="boxtrigger" activations="1" stayactive="true" delay=0.1>
98            <events>
99              <trigger>
100                <EventListener event="boxDestroyed" />
101              </trigger>
102            </events>
103          </EventTrigger>
104
105    <!--Asteroiden-Guertel Versuch Schlaufe
106    <?lua
107        for i = 1, 3, 1
108                do
109    ?>
110
111     asteroidBelt(0, 0, 0, 0, 0, 100, 50+10*i, 100+10*i, 3000*i+500, 3000*i, 100+100*i  , 0)
112
113        <?lua
114        end
115        ?>
116    -->
117 
118   
119    <!-- Asteroidenguertel-->
120    <?lua
121        asteroidBelt(0, 0, 0, 0, 0, 50, 60, 110, 3300, 3000, 100        , 1)
122        asteroidBelt(0, 0, 0, 0, 0, 50, 70, 120, 6400, 6000, 125        , 1)
123        asteroidBelt(0, 0, 0, 0, 0, 50, 80, 130, 9500, 9000, 150        , 1)
124        ?>
125    <!--ENDE Asteroidenguertel-->
126
127        <!-- Beschuetzer und Wegweiser Innen-->         
128                               
129        <?lua
130                        for i = 0, (3*math.pi/2), (math.pi/2)
131                                  do       
132        ?>
133                               
134                               
135       
136        <SpaceShip position="<?lua print(250*math.sin(i)) ?>, <?lua print(250*math.cos(i)) ?>,0" lookat="<?lua print(1500*math.sin(i)) ?>,  <?lua print(1500*math.cos(i)) ?>,0" maxhealt="150" initialhealth="150" roll="<?lua print(180-i*180/math.pi)?>"  >
137                <templates>
138                  <Template link=spaceshipassff2 /> <!--spaceshipTransporter -->
139                </templates>
140                  <controller>
141                         <WaypointPatrolController alertnessradius=1500 active=true team=0>
142                           <waypoints>
143                                 <StaticEntity position="0,10350,0"/>
144                           </waypoints>
145                         </WaypointPatrolController>
146                  </controller>
147        </SpaceShip>
148                 
149                                 
150        <?lua
151        end
152        ?>
153                                 
154        <!-- ENDE Beschuetzer und Wegweiser Innen-->   
155       
156        <!-- Gegner Innen-->           
157       
158         <?lua
159                        for i = 0, (3*math.pi/2), (math.pi/2)
160                                  do
161        ?>
162                                 
163                                 
164        <SpaceShip position="<?lua print(1500*math.sin(i)) ?>,<?lua print(1500*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0">
165       
166          <templates>
167                  <Template link=spaceshippirate />
168          </templates>
169                  <controller>
170                <WaypointPatrolController alertnessradius=1500 active=true team=1>
171                  <waypoints>
172                        <StaticEntity position="0,0,0"/>
173                  </waypoints>
174                </WaypointPatrolController>
175                  </controller>
176        </SpaceShip>
177                                                                 
178        <?lua
179        end
180        ?>
181                                 
182        <!-- ENDE Gegner Innen-->
183                                 
184        <!-- Gegnerische Patrouille -->
185                         
186        <?lua
187                for i = 0, (7*math.pi/4), (math.pi/4)
188                        do
189        ?>
190       
191                 <?lua
192                        for j = 1, 3, 1
193                           do
194                 ?>
195                        <SpaceShip position="<?lua print((600+3200*j)*math.sin(i)) ?>,<?lua print((600+3200*j)*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0" >
196       
197                           <templates>
198                           <Template link=spaceshippirate />
199                           </templates>
200                                <controller>
201                           <WaypointPatrolController alertnessradius=1500 active=true team=1>
202                           <waypoints>
203                                           <?lua
204                                                 for k = 0, (29*math.pi/15), (math.pi/15)
205                                                           do
206                                                ?> 
207                                   
208                                                   <Model mesh="cube.mesh" scale=0 position="<?lua print((600+3200*j)*math.sin(i+k)) ?>,<?lua print((600+3200*j)*math.cos(i+k)) ?>,0" />
209       
210                                           <?lua       
211                                                end
212                                                ?>
213                                                                       
214                           </waypoints>
215                                </WaypointPatrolController>
216                           </controller>
217                        </SpaceShip>
218                <?lua
219                end
220                ?>
221        <?lua
222        end
223        ?>
224       
225        <!-- ENDE Gegnerische Patrouille -->                                                       
226                                                           
227        <!-- Gegnerische Flotte/ Totenkopfflotte-->                                               
228       
229        <?lua
230                for j = 0, 1, 1
231                        do
232        ?>
233                <?lua
234                        for i = 0, 4, 1
235                                do
236                ?>
237                <SpaceShip position="<?lua print (50*i-100)?>, 120000 ,<?lua print (-200*j+150)?>" roll="180" lookat="0, 0, 0">
238                  <templates>
239                          <Template link=spaceshippirate />
240                  </templates>
241                          <controller>
242                        <WaypointPatrolController alertnessradius=1000 active=false team=1>
243                          <waypoints>
244                                <StaticEntity position="<?lua print (5000*i-10000)?>, 0 ,<?lua print (-20000*j+15000)?>"/>
245                          </waypoints>
246                                 <events>
247                                          <activity>
248                                                  <EventListener event="atPortal1" />
249                                          </activity>
250                                  </events>
251                        </WaypointPatrolController>
252                          </controller>
253                </SpaceShip>                   
254                <?lua
255                end
256                ?>
257        <?lua
258        end
259        ?>
260                               
261        <?lua
262                for j = 0, 1, 1
263                        do
264        ?>
265                <?lua
266                                for i = 0, 6, 1
267                                        do
268                ?>
269                        <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,<?lua print (100-100*j)?>" roll="180" lookat="0, 0, 0">
270                          <templates>
271                                  <Template link=spaceshippirate />
272                          </templates>
273                                  <controller>
274                                <WaypointPatrolController alertnessradius=1250 active=false team=1>
275                                  <waypoints>
276                                        <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,<?lua print (10000-10000*j)?>"/>
277                                  </waypoints>
278                                         <events>
279                                          <activity>
280                                                  <EventListener event="atPortal1" />
281                                          </activity>
282                                  </events>
283                                </WaypointPatrolController>
284                                  </controller>
285                        </SpaceShip>                   
286                <?lua
287                end
288                ?>
289        <?lua
290        end
291        ?>
292       
293        <?lua
294                for i = 0, 6, 3
295                        do
296        ?>
297                        <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,50" roll="180" lookat="0, 0, 0">
298                          <templates>
299                                  <Template link=spaceshippirate />
300                          </templates>
301                                  <controller>
302                                <WaypointPatrolController alertnessradius=1500 active=false team=1>
303                                  <waypoints>
304                                        <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,5000"/>
305                                  </waypoints>
306                         <events>
307                                  <activity>
308                                          <EventListener event="atPortal1" />
309                                  </activity>
310                          </events>
311                                </WaypointPatrolController>
312                                  </controller>
313                        </SpaceShip>                   
314        <?lua
315        end
316        ?>
317                       
318               
319        <?lua
320                for i = 1, 5, 2
321                        do
322        ?>
323                       
324                <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,-100" roll="180" lookat="0, 0, 0">
325                  <templates>
326                          <Template link=spaceshippirate />
327                  </templates>
328                          <controller>
329                        <WaypointPatrolController alertnessradius=1000 active=false team=1>
330                          <waypoints>
331                                <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,-10000"/>
332                          </waypoints>
333                         <events>
334                                  <activity>
335                                          <EventListener event="atPortal1" />
336                                  </activity>
337                          </events>
338                        </WaypointPatrolController>
339                          </controller>
340                </SpaceShip>
341                       
342        <?lua
343        end
344        ?>
345                       
346        <!-- ENDE Gegnerische Flotte/ Totenkopfflotte-->       
347       
348        <!-- Boxen um Flotte zu befreien -->
349
350
351                        <Pawn health=20 position="0, 112900, 0" direction="0,-1,0" name="boxDestroyed" collisionType=dynamic mass=100000  radarname = "Gravitation Box" >
352                                <attached>
353                                        <Model position="0,0,0" scale="10" mesh="CuboidBody.mesh"  />
354                                </attached>
355                                <collisionShapes>
356                                        <BoxCollisionShape position="0,0,0" halfExtents="5,5,5" />
357                                </collisionShapes>
358                                <controller>
359                                        <WaypointController team=1>
360                                        </WaypointController>
361                                </controller>
362                         </Pawn>
363
364       
365        <!-- Flotte Erde-->
366        <?lua
367                        for j = 0, 2, 1
368                                  do       
369        ?>
370                <?lua
371                        for i = 0, 2, 1
372                                  do       
373                ?>
374                               
375
376                        <SpaceShip position="<?lua print(50-i*50) ?>, 113000,<?lua print(50-j*50) ?>" lookat="0,150000,0" maxhealt="200" initialhealth="200" >
377                                <templates>
378                                  <Template link=spaceshipassff2 /> <!--spaceshipTransporter -->
379                                </templates>
380                                  <controller>
381                                         <WaypointPatrolController alertnessradius=5000 active=false team=0>
382                                           <waypoints>
383                                                 <StaticEntity position="<?lua print(200-i*200) ?>,113000,<?lua print(400-j*400) ?>"/>
384                                           </waypoints>
385                                  <events>
386                                          <activity>
387                                                  <EventListener event="boxtrigger" />
388                                          </activity>
389                                  </events>
390                                         </WaypointPatrolController>
391                                  </controller>
392                        </SpaceShip> 
393   
394                                       
395                <?lua
396                end
397                ?>
398                                 
399        <?lua
400        end
401        ?>
402                                         
403        <!-- ENDE Flotte Erde-->
404                       
405        <!--Portal-->
406                <Template name=PortalDefault>
407                        <PortalEndPoint>
408                                <attached>
409                                        <Model mesh="Spacegate.mesh" />
410                                </attached>
411                        </PortalEndPoint>
412                </Template>
413       
414                <PortalEndPoint position="0,112000,0" id="1" pitch="90" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
415                <PortalEndPoint position="0,10350,0" id="2"  pitch="90" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
416                <PortalLink fromID="1" toID="2" />
417                <PortalLink fromID="2" toID="1" />
418        <!--ENDE Portal-->
419           
420        <!--Heimatplanet-->
421                <Planet
422                  position="0,100000,0"
423                  scale="10000"
424                  collisionType="dynamic"
425                  linearDamping="0.8"
426                  angularDamping="0"
427                  mass="5000000"
428                  pitch="180"
429                  yaw="0"
430                  roll="0"
431                  mesh="planets/earth.mesh"
432                  atmosphere="atmosphere1"
433                  rotationaxis="0,0,1"
434                  rotationrate="5.0"
435                  atmospheresize="80.0f"
436                  imagesize="1024.0f"
437                  collisiondamage = 1
438                  enablecollisiondamage = true
439                  >
440                  <attached>
441                          <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
442                        </attached>
443                        <collisionShapes>
444                          <SphereCollisionShape radius="10000" position="0,0,0" />
445                        </collisionShapes>
446                  </Planet>     
447        <!--ENDE Heimatplanet-->       
448
449  </Scene>
450                                                   
451</Level>
452
Note: See TracBrowser for help on using the repository browser.