Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boss_FS17/data/levels/kecks.oxw @ 11388

Last change on this file since 11388 was 11052, checked in by landauf, 8 years ago

merged branch presentationHS15 back to trunk

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