Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/Level(Deathmatch).oxw @ 7036

Last change on this file since 7036 was 7036, checked in by scheusso, 14 years ago

some changes regarding lod:

  • added lodtemplate in different levels
  • trying to avoid sigabrt's because of models with too much lod levels
  • Property svn:eol-style set to native
File size: 17.2 KB
Line 
1<?lua
2  include("stats.oxo")
3  include("hudtemplates3.oxo")
4  include("underattackhud.oxo")
5  include("templates/spaceship_assff.oxt")
6  include("templates/spaceship_pirate.oxt")
7  include("templates/spaceship_Transporter.oxt")
8  include("templates/lodinformation.oxt")
9?>
10
11<!--*****************************************************************************************************************************************************************************************-->
12<!--Including Template for triggering on player-->
13
14<Template name=spaceshipassffplayer>
15  <SpaceShip
16   hudtemplate            = spaceshiphud
17   camerapositiontemplate = spaceshipassffcameras
18   engine                 = spaceshipassffengine
19   spawnparticlesource    = "Orxonox/fairytwirl"
20   spawnparticleduration  = 3
21   explosionchunks        = 6
22
23   health            = 100
24   maxhealth         = 200
25   initialhealth     = 100
26
27   primaryThrust     = 100;
28   auxilaryThrust    = 30;
29   rotationThrust    = 25;
30
31   collisionType     = "dynamic"
32   mass              = 100
33   linearDamping     = 0.7
34   angularDamping    = 0.9999999
35  >
36    <attached>
37      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
38      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
39      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
40      <DistanceTriggerBeacon name="PlayerDistanceTrigger" /> <!--added DistanceTrigger-->
41    </attached>
42    <collisionShapes>
43      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
44      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
45      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
46      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
47      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
48      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
49    </collisionShapes>
50<?lua
51  include("includes/weaponsettings3.oxi")
52?>
53  </SpaceShip>
54</Template>
55
56<!--*****************************************************************************************************************************************************************************************-->
57<!-- Ausgang: Level ===> name/description -->
58<Level
59  name="Level"
60  description="Level zerstoeren von Transportern"
61  gametype=TeamDeathmatch
62>
63  <templates>
64    <Template link=lodtemplate_default />
65  </templates>
66
67        <!-- Ausgang: Szene ===> ambientlight/skybox -->
68        <Scene
69          ambientlight="0.8,0.8,0.8"
70          skybox="Orxonox/skypanoramagen1"
71        >
72               
73                <!--Light: noch zu aendern -->
74                <Light type=directional position="0,0,0" direction="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 1.0, 0.9" />
75
76
77<!--*****************************************************************************************************************************************************************************************-->
78<!--Quests ==> id/title/description/failMessage/completeMessage-->
79        <GlobalQuest id="Levelname.nameofQuest1.testsasimplequesttoseehowitworks">    <!--QUESTIDS MUST HAVE AT LEAST 32 CHARACTERS-->
80                <QuestDescription title="ErkundungsFlug" description="Ein Erkundungsflug durch die Skybox!" failMessage="You failed!" completeMessage="You win!" />
81        </GlobalQuest>
82
83
84<!--QuestEnd-->
85<!--*****************************************************************************************************************************************************************************************-->
86
87                <!--Spieler Spawnpoint ===> position/direction-->
88                <SpawnPoint position="150,0,-50" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="true" name=spawn1>
89                        <events>
90                                <activity>
91                                        <EventListener event="activateFirstSpawnpoint" />
92                                </activity>
93                        </events>
94                        <attached>
95                            <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare"/>
96                        </attached>
97                </SpawnPoint>
98
99                <SpawnPoint position="10000,0,3000" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="false" name=spawn2>
100                        <events>
101                                <activity>
102                                        <EventListener event="activateSecondSpawnpoint" />
103                                </activity>
104                        </events>
105                        <attached>
106                            <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare"/>
107                        </attached>
108                </SpawnPoint>
109
110
111<!--Auslosen der 1 testQuest-->
112<!-- Funktioniert noch nicht (Fehler beim mehrfachen Ausfuehren)-->
113<!--            <QuestEffectBeacon position="1000,0,0" times="1">
114                        <effects>
115                                <AddQuest questId="Levelname.nameofQuest1.testsasimplequesttoseehowitworks"/>
116                        </effects>
117                        <events>
118                                <execute>
119                                        <EventListener event="Levelnamequest1"/>
120                                </execute>
121                        </events>
122                        <attached>
123                                <Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare"/>
124                                <DistanceTrigger name="Levelnamequest1" position="0,0,0" distance="50" target="ControllableEntity"/>
125                        </attached>
126                </QuestEffectBeacon><!---->
127
128<!--Erstellen der Transporter________nur noch zwei_________________________________________________________________________________________________________________________________________OK-->
129
130
131<?lua for i=0,0,1 do
132x=800
133health=1600
134?>
135                <!--Transporter 1 ++ FUNKTIONIERT-->
136        <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true">
137        <events>
138        <trigger>
139                <SpaceShip position="<?lua print(3800-i*x) ?>,0,3000" lookat="<?lua print(4800-i*x) ?>,0,4000" health=<?lua print(health) ?> maxhealth=<?lua print(health) ?> initialhealth=<?lua print(health) ?> >
140                        <templates>
141                                <Template link=spaceshipTransporter />
142                        </templates>
143                        <controller>
144                                <WaypointPatrolController alertnessradius=1000 team=1>
145                                        <waypoints>
146                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(14800-i*x) ?>,0,3000"/>
147                                        </waypoints>
148                                </WaypointPatrolController>
149                        </controller>
150                </SpaceShip><!---->
151        </trigger>
152        </events>
153        </EventTrigger>
154<?lua end ?>
155
156
157<?lua for j=0,1,1 do
158health=1600
159x=800
160z=j*300
161?>
162                <!--Transporter 2,3 ++ FUNKTIONIERT-->
163        <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true">
164        <events>
165        <trigger>
166                <SpaceShip position="<?lua print(2600+x) ?>,0,<?lua print(3150-z) ?>" lookat="<?lua print(3500+x) ?>,0,<?lua print(4150-z) ?>" health=<?lua print(health) ?> maxhealth=<?lua print(health) ?> initialhealth=<?lua print(health) ?> >
167                        <templates>
168                                <Template link=spaceshipTransporter />
169                        </templates>
170                        <controller>
171                                <WaypointPatrolController alertnessradius=1000 team=1>
172                                        <waypoints>
173                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(13500+x) ?>,0,<?lua print(3150-z) ?>"/>
174                                        </waypoints>
175                                </WaypointPatrolController>
176                        </controller>
177                </SpaceShip><!---->
178        </trigger>
179        </events>
180        </EventTrigger>
181<?lua end ?>
182
183
184<!--Erstellen der Transporter______ENDE______________________________________________________________________________________________________________________________________________________-->
185
186<!--Erstellen der Schiffe des ErkundungsTrupps_____________________________________________________________________________________________________________________________________________OK-->
187                <!--Spaceships team 0 (player:team=0)FUNKTIONIERT-->
188                <SpaceShip position="50,0,0" lookat="2050,0,-1000" health="500" maxhealth="500" initialhealth="500" >
189                        <templates>
190                                <Template link=spaceshipassff />
191                        </templates>
192                        <controller>
193                                <WaypointPatrolController alertnessradius=2000 team=0 >
194                                        <waypoints>
195                                                <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" />
196                                                <Model mesh="cube.mesh" scale=0 position="6050,0,0" />
197                                                <Model mesh="cube.mesh" scale=0 position="10050,0,3000" />
198                                                <Model mesh="cube.mesh" scale=0 position="3050,0,3000" />
199                                                <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" />
200                                        </waypoints>
201                                </WaypointPatrolController>
202                        </controller>
203                </SpaceShip>
204                <!--Second Spaceship team 0 (player: team 0)FUNKTIONIERT-->
205                <SpaceShip position="0,0,100" lookat="2000,0,-950" health="400" maxhealth="400" initialhealth="400" >
206                        <templates>
207                                <Template link=spaceshipassff />
208                        </templates>
209                        <controller>
210                                <WaypointPatrolController alertnessradius=2000 team=0 >
211                                        <waypoints>
212                                                <Model mesh="cube.mesh" scale=0 position="2000,0,-900" />
213                                                <Model mesh="cube.mesh" scale=0 position="6000,0,0" />
214                                                <Model mesh="cube.mesh" scale=0 position="10000,0,3100" />
215                                                <Model mesh="cube.mesh" scale=0 position="3000,0,3100" />
216                                                <Model mesh="cube.mesh" scale=0 position="-4000,0,3100"/>
217                                        </waypoints>
218                                </WaypointPatrolController>
219                        </controller>
220                </SpaceShip>
221                <!--third Spaceship team 0 (player: team 0)FUNKTIONIERT-->
222                <SpaceShip position="0,0,-100" lookat="2000,0,-1050" health="400" maxhealth="400" initialhealth="400" >
223                        <templates>
224                                <Template link=spaceshipassff />
225                        </templates>
226                        <controller>
227                                <WaypointPatrolController alertnessradius=2000 team=0 >
228                                        <waypoints>
229                                                <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" />
230                                                <Model mesh="cube.mesh" scale=0 position="6000,0,-100" />
231                                                <Model mesh="cube.mesh" scale=0 position="10000,0,2900" />
232                                                <Model mesh="cube.mesh" scale=0 position="3000,0,2900" />
233                                                <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" />
234                                        </waypoints>
235                                </WaypointPatrolController>
236                        </controller>
237                </SpaceShip>
238<!--Erstellen der Schiffe des ErkundungsTrupps ______ENDE ___________________________________________________________________________________________________________________________________-->
239
240
241<!--Erstellen des Asteroidenfeldes___FUNKTIONIERT_________________________________________________________________________________________________________________________________________OK-->
242
243                <?lua for i=0,100,1 do
244                x=math.random(250,4000)
245                y=math.random(-500,500)
246                z=math.random(1000,2000)
247                scale=math.random(20,70)
248                ?>
249                <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>">
250                        <attached>
251                                <Model scale=<?lua print(scale) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
252                        </attached>
253                        <collisionShapes>
254                                <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
255                                </collisionShapes>
256                </MovableEntity>
257                <?lua end ?>
258
259<!--Erstellen des Ateroidenfeldes______ENDE__________________________________________________________________________________________________________________________________________________-->
260
261<!--Erstellen von Asteroiden die zufaellig plaziert sind___________________________________________________________________________________________________________________________________OK-->
262
263        <?lua for i=0,150,1 do
264        x=math.random(-8000,8000)
265        y=math.random(-8000,8000)
266        z=math.random(-8000,8000)
267        ?>
268        <MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>" >
269                <attached>
270                        <Model scale=<?lua print(math.random(20,70)) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
271                </attached>
272                <collisionShapes>
273                        <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
274                </collisionShapes>
275        </MovableEntity>
276        <?lua end ?>
277
278<!--Erstellen von Asteroiden die zufaellig plaziert sind______ENDE___________________________________________________________________________________________________________________________-->
279
280<!--Erstellen der Hilfsschiffe_____________________________________________________________________________________________________________________________________________________________OK-->
281<!---->
282                <!--Trigger to activate this Team (TEAM NO 1)-->
283        <DistanceTrigger name="activateTeam0No1" position="8000,0,3100" distance="1000" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" />
284
285<!--TEAM NO 1 (activationType : distance || killing a spaceship what belongs to TEAM 0 NO 0)-->
286<?lua for i=0,9,1 do
287x=math.random(-500,500)
288y=math.random(-300,300)
289z=math.random(-300,300)
290?>
291        <EventTrigger name="activateTeam0No1" activations=1 stayactive="true">
292                <events>
293                        <trigger>
294                                <SpaceShip position="<?lua print(x+4500) ?>,<?lua print(y) ?>,<?lua print(z+6000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>">
295                                        <templates>
296                                                <Template link=spaceshipassff />
297                                        </templates>
298                                        <controller>
299                                                <WaypointPatrolController alertnessradius=2000 team=0 active=false>
300                                                        <waypoints>
301                                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(4500+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
302                                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(x-4000) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
303                                                        </waypoints>
304                                                        <events>
305                                                                <activity>
306                                                                        <EventListener event="activateTeam0No1" />
307                                                                </activity>
308                                                        </events>
309                                                </WaypointPatrolController>
310                                        </controller>
311                                </SpaceShip>
312                        </trigger>
313                </events>
314        </EventTrigger>
315
316
317<?lua end ?>
318
319<!---->
320<!--Erstellen der Hilfsschiffe______ENDE_____________________________________________________________________________________________________________________________________________________-->
321
322<!--Erstellen von Feinden die den Transportern zu Hilfe eilen_______________________________________________________________________________________________________________________________OK-->
323<!---->
324<!--TEAM 1 NO 1 (activationType : killing a Transporter || killing a spaceship what belongs to TEAM 1 NO 1)-->
325<?lua for i=0,11,1 do
326x=math.random(-500,500)
327y=math.random(-300,300)
328z=math.random(-300,300)
329?>
330        <EventTrigger name="activateTeam1No1" activations=1 stayactive="true" >
331                <events>
332                        <trigger>
333                                <SpaceShip position="<?lua print(x-4000) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>">
334                                        <templates>
335                                                <Template link=spaceshippirate />
336                                        </templates>
337                                        <controller>
338                                                <WaypointPatrolController alertnessradius=5000 team=1 active=false>
339                                                        <waypoints>
340                                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
341                                                        </waypoints>
342                                                        <events>
343                                                                <activity>
344                                                                        <EventListener event="activateTeam1No1" />
345                                                                </activity>
346                                                        </events>
347                                                </WaypointPatrolController>
348                                        </controller>
349                                </SpaceShip>
350                        </trigger>
351                </events>
352        </EventTrigger>
353
354<?lua end ?>
355<!---->
356<!--Erstellen von Feinden die dem Transporter zu Hilfe eilen_________________________________________________________________________________________________________________________________-->
357
358<!--Erstellen von Feinden auf dem Weg zu den Transportern___________________________________________________________________________________(noch besser machen [mehr Feinde/ Koordinierung])-->
359<?lua for i=0,1,1 do
360z=math.random(-300,300)
361?>
362                <SpaceShip position="<?lua print(5900+i*100) ?>,0,-3000" lookat="2500,0,-1000">
363                        <templates>
364                                <Template link=spaceshippirate/>
365                        </templates>
366                        <controller>
367                                <WaypointPatrolController alertnessRadius=1500 team=1>
368                                        <waypoints>
369                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(2500+100*i) ?>,0,-1000" />
370                                        </waypoints>
371                                </WaypointPatrolController>
372                        </controller>
373                </SpaceShip>
374
375
376                <SpaceShip position="<?lua print(9000) ?>,13000,<?lua print(z*i+3000) ?>" lookat="1000,0,3000">
377                        <templates>
378                                <Template link=spaceshippirate/>
379                        </templates>
380                        <controller>
381                                <WaypointPatrolController alertnessRadius=1500 team=1>
382                                        <waypoints>
383                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(10000) ?>,0,<?lua print(3000+z*i) ?>" />
384                                        </waypoints>
385                                </WaypointPatrolController>
386                        </controller>
387                </SpaceShip>
388
389<?lua end ?>
390
391<?lua for i=0,3,1 do ?>
392                <SpaceShip position="<?lua print(math.random(5500,6500)+2000) ?>,0,1000" lookat="2500,0,-1000">
393                        <templates>
394                                <Template link=spaceshippirate/>
395                        </templates>
396                        <controller>
397                                <WaypointPatrolController alertnessRadius=1500 team=1>
398                                        <waypoints>
399                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1250" />
400                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,250,1000" />
401                                                <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1000" />
402                                        </waypoints>
403                                </WaypointPatrolController>
404                        </controller>
405                </SpaceShip>
406<?lua end ?>
407<!--Erstellen von Feinden auf dem Weg zu den Transportern______ENDE__________________________________________________________________________________________________________________________-->
408
409<Trigger name=activateFirstSpawnpoint invert=true >
410    <DistanceTrigger name="activateSecondSpawnpoint" position="150,0,-300" distance="10" target="DistanceTriggerBeacon" targetname="PlayerDistanceTrigger" activations="1" stayactive="true">
411        <attached>
412                <Billboard position="0,0,0" colour="0,0,1.0" material="Examples/Flare" />
413        </attached>
414    </DistanceTrigger>
415</Trigger>
416
417        </Scene>
418</Level>
419
420
421
422
423
424
425
426
427
428
429
430
Note: See TracBrowser for help on using the repository browser.