Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 6926 was 6920, checked in by stmathia, 14 years ago

Changes in level files. Addition to TemaDeathmatch, should now be able to only use active SpawnPoints (at least if there are active ones), not fully working, yet, though.

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