Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/TowerDefense_HS18/data/levels/towerDefense.oxw @ 12126

Last change on this file since 12126 was 12125, checked in by michbaum, 6 years ago

Neuer Gegnercontroller und alle noetigen Aenderungen

  • Property svn:eol-style set to native
File size: 14.7 KB
Line 
1<!-- TODO: Update the level's image-->
2
3<!-- See TowerDefenseReadme.txt for Information on this file -->
4
5<LevelInfo
6 name = "Tower Defense"
7 description = "Defend your Spacestation from incoming waves."
8 tags = "minigame"
9 screenshot = "emptylevel.png"
10/>
11
12<?lua
13  include("stats.oxo")
14  include("HUDTemplates3.oxo")
15  include("towerdefenseHUD.oxo")
16  include("templates/lodInformation.oxt")
17  include("includes/weaponSettingsTurret.oxi")
18  include("templates/spaceshipAssff.oxt")
19  include("templates/standardTurret.oxt")
20?>
21
22<Template name=selectercameras defaults=0>
23  <TowerDefenseSelecter>
24    <camerapositions>
25      <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true drag=true mouselook=true/>
26    </camerapositions>
27  </TowerDefenseSelecter>
28</Template>
29
30<Template name=selectertemplate>
31  <TowerDefenseSelecter team=0 camerapositiontemplate=selectercameras>
32    <attached>
33      <Model position="0,0,0" pitch=90 mesh="TD_Selection.mesh" scale=25/>
34    </attached>
35  </TowerDefenseSelecter>
36</Template>
37
38<Template name=tower1template>
39  <TowerDefenseTower
40  explosionchunks=6
41  shieldrechargerate=10
42  shieldrechargewaittime=5
43  collisionType="none"
44  pitch="0"
45  yaw="0"
46  roll="0"
47  maxPitch=360
48  maxYaw=360
49  maxAttackRadius=1000
50  minAttackRadius=0
51  team=0
52  >
53    <controller>
54       <TurretController team = 0/>
55    </controller>
56    <weaponslots>
57      <WeaponSlot position="0,0,0" />
58    </weaponslots>
59    <weaponsets>
60      <WeaponSet firemode=0 />
61    </weaponsets>
62    <weaponpacks>
63      <WeaponPack>
64        <links>
65          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
66        </links>
67        <Weapon>
68          <HsW01 mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=1 material="Flares/point_lensflare" delay=0/>
69        </Weapon>
70      </WeaponPack>
71    </weaponpacks>
72    <munition>
73      <LaserMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10 replenishamount=1 replenishinterval=0.3/>
74    </munition>
75  </TowerDefenseTower>
76</Template>
77
78<Template name=tower2template>
79  <TowerDefenseTower
80  explosionchunks=6
81  shieldrechargerate=10
82  shieldrechargewaittime=5
83  collisionType="none"
84  pitch="0"
85  yaw="0"
86  roll="0"
87  maxPitch=360
88  maxYaw=360
89  maxAttackRadius=1000
90  minAttackRadius=0
91  team=0
92  >
93    <controller>
94       <TurretController team = 0/>
95    </controller>
96    <weaponslots>
97      <WeaponSlot position="0,0,0" />
98    </weaponslots>
99    <weaponsets>
100      <WeaponSet firemode=0 />
101    </weaponsets>
102    <weaponpacks>
103      <WeaponPack>
104        <links>
105          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
106        </links>
107        <Weapon>         
108          <LightningGun mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 />
109        </Weapon>
110      </WeaponPack>
111    </weaponpacks>
112    <munition>
113      <LightningMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
114    </munition>
115    <attached>
116      <Backlight position="0,0,0" scale=2.0 colour="0.4, 0.0, 1.0" width=10 length=10 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
117    </attached>   
118  </TowerDefenseTower>
119</Template>
120
121<Template name=tower3template>
122  <TowerDefenseTower
123  explosionchunks=6
124  shieldrechargerate=10
125  shieldrechargewaittime=5
126  collisionType="none"
127  pitch="0"
128  yaw="0"
129  roll="0"
130  maxPitch=360
131  maxYaw=360
132  maxAttackRadius=1000
133  minAttackRadius=0
134  team=0
135  >
136    <controller>
137       <TurretController team = 0/>
138    </controller>
139    <weaponslots>
140      <WeaponSlot position="0,0,0" />
141    </weaponslots>
142    <weaponsets>
143      <WeaponSet firemode=0 />
144    </weaponsets>
145    <weaponpacks>
146      <WeaponPack>
147        <links>
148          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
149        </links>
150        <Weapon>
151          <SplitGun mode=0 munitionpershot=0 damage=9.3 muzzleoffset=" 1.6, 1.3, -2.0" splittime=0.2 numberofsplits=2 numberofchilds=5 spread=0.1 damagereduction=3.0 />
152        </Weapon>
153      </WeaponPack>
154    </weaponpacks>
155    <munition>
156      <SplitMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
157    </munition>
158  </TowerDefenseTower>
159</Template>
160
161<Template name=tower4template>
162  <TowerDefenseTower
163  explosionchunks=6
164  shieldrechargerate=10
165  shieldrechargewaittime=5
166  collisionType="none"
167  pitch="0"
168  yaw="0"
169  roll="0"
170  maxPitch=360
171  maxYaw=360
172  maxAttackRadius=1000
173  minAttackRadius=0
174  team=0
175  >
176    <controller>
177       <TurretController team = 0/>
178    </controller>
179    <weaponslots>
180      <WeaponSlot position="0,0,0" />
181    </weaponslots>
182    <weaponsets>
183      <WeaponSet firemode=0 />
184    </weaponsets>
185    <weaponpacks>
186      <WeaponPack>
187        <links>
188          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
189        </links>
190        <Weapon>
191          <RocketFire mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 fuel=10/> 
192        </Weapon>
193      </WeaponPack>
194    </weaponpacks>
195    <munition>
196      <RocketMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
197    </munition>
198      <attached>
199      <ParticleSpawner position="0,0,0" source="Orxonox/sparks" lifetime=3.0 autostart=1 loop=1 />
200    </attached>
201  </TowerDefenseTower>
202</Template>
203
204<Template name=tower5template>
205  <TowerDefenseTower
206  explosionchunks=6
207  shieldrechargerate=10
208  shieldrechargewaittime=5
209  collisionType="none"
210  pitch="0"
211  yaw="0"
212  roll="0"
213  maxPitch=360
214  maxYaw=360
215  maxAttackRadius=1000
216  minAttackRadius=0
217  team=0
218  >
219    <controller>
220       <TurretController team = 0/>
221    </controller>
222    <weaponslots>
223      <WeaponSlot position="0,0,0" />
224    </weaponslots>
225    <weaponsets>
226      <WeaponSet firemode=0 />
227    </weaponsets>
228    <weaponpacks>
229      <WeaponPack>
230        <links>
231          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
232        </links>
233        <Weapon>
234          <IceGun mode=0 munitionpershot=0 delay=0.125 damage=9.3 muzzleoffset=" 0,0,0" freezefactor=0.5 freezetime=2.0 />
235        </Weapon>
236      </WeaponPack>
237    </weaponpacks>
238    <munition>
239      <IceMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
240    </munition>
241  </TowerDefenseTower>
242</Template>
243
244<Template name=enemytowerdefense1>
245  <TowerDefenseEnemy
246   hudtemplate            = spaceshiphud
247   camerapositiontemplate = spaceshipassffcameras
248   spawnparticlesource    = "Orxonox/fairytwirl"
249   spawnparticleduration  = 3
250   explosionchunks        = 6
251
252   health            = 15
253   maxhealth         = 15
254   initialhealth     = 15
255
256   shieldhealth        = 15
257   initialshieldhealth = 15
258   maxshieldhealth     = 15
259   shieldabsorption    = 0.8
260   shieldrechargerate  = 1
261   shieldrechargewaittime = 1
262
263   primaryThrust     = 1000
264   auxilaryThrust    = 30
265   rotationThrust    = 80
266
267   lift = 1;
268   stallSpeed = 220;
269
270   boostPower            = 15
271   boostPowerRate        = 1
272   boostRate             = 5
273   boostCooldownDuration = 10
274
275   shakeFrequency = 15
276   shakeAmplitude = 9
277
278   collisionType     = "dynamic"
279   mass              = 10
280   linearDamping     = 0.7
281   angularDamping    = 0.9999999
282
283   explosionSound = "sounds/Explosion2.ogg"   
284  >
285
286    <engines>
287      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine />
288      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
289    </engines>
290    <attached>
291      <Model position="0,0,0" yaw=90 pitch=90 roll=0 scale=4 mesh="assff.mesh" />
292      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
293      <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 />
294    </attached>
295    <collisionShapes>
296      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
297      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
298      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
299      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
300      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
301      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
302    </collisionShapes>
303    <!-- Hier wurde der Controller entfernt-->
304  </TowerDefenseEnemy>
305</Template>
306
307<Template name=enemytowerdefense2>
308  <TowerDefenseEnemy
309   hudtemplate            = spaceshiphud
310   camerapositiontemplate = spaceshipassffcameras
311   spawnparticlesource    = "Orxonox/fairytwirl"
312   spawnparticleduration  = 3
313   explosionchunks        = 6
314
315   health            = 30
316   maxhealth         = 30
317   initialhealth     = 30
318
319   shieldhealth        = 0
320   initialshieldhealth = 0
321   maxshieldhealth     = 0
322   shieldabsorption    = 0.8
323   shieldrechargerate = 1
324   shieldrechargewaittime = 1
325
326   primaryThrust     = 100
327   auxilaryThrust    = 30
328   rotationThrust    = 80
329
330   lift = 1;
331   stallSpeed = 220;
332
333   boostPower            = 15
334   boostPowerRate        = 1
335   boostRate             = 5
336   boostCooldownDuration = 10
337
338   shakeFrequency = 15
339   shakeAmplitude = 9
340
341   collisionType     = "dynamic"
342   mass              = 100
343   linearDamping     = 0.7
344   angularDamping    = 0.9999999
345
346   explosionSound = "sounds/Explosion2.ogg"
347  >
348
349    <engines>
350      <Engine position=" 0, 0, 0"
351        boostfactor    = 2
352        speedfront     = 100
353        speedback      =  50
354        speedleftright =  50
355        speedupdown    =  50       
356        accelerationfront     = 500
357        accelerationbrake     = 500
358        accelerationback      =  125
359        accelerationleftright =  125
360        accelerationupdown    =  125
361      />
362    </engines>
363    <attached>
364      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=2.5 mesh="JumpEnemy3.mesh" />
365    </attached>
366    <collisionShapes>
367      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
368      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
369      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
370      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
371      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
372      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
373    </collisionShapes>
374  </TowerDefenseEnemy>
375</Template>
376
377<Template name=enemytowerdefense3>
378  <TowerDefenseEnemy
379   hudtemplate            = spaceshiphud
380   camerapositiontemplate = spaceshipassffcameras
381   spawnparticlesource    = "Orxonox/fairytwirl"
382   spawnparticleduration  = 3
383   explosionchunks        = 6
384
385   health            = 15
386   maxhealth         = 15
387   initialhealth     = 15
388   
389   shieldhealth        = 5
390   initialshieldhealth = 5
391   maxshieldhealth     = 5
392   shieldabsorption    = 0.8
393   shieldrechargerate  = 1
394   shieldrechargewaittime = 1
395
396   primaryThrust     = 100
397   auxilaryThrust    = 30
398   rotationThrust    = 80
399
400   lift = 1;
401   stallSpeed = 220;
402
403   boostPower            = 15
404   boostPowerRate        = 1
405   boostRate             = 5
406   boostCooldownDuration = 10
407
408   shakeFrequency = 15
409   shakeAmplitude = 9
410
411   collisionType     = "dynamic"
412   mass              = 100
413   linearDamping     = 0.7
414   angularDamping    = 0.9999999
415
416   explosionSound = "sounds/Explosion2.ogg"
417  >
418
419    <engines>
420      <Engine position=" 0, 0, 0"
421        boostfactor    = 2
422        speedfront     = 300
423        speedback      =  300
424        speedleftright =  300
425        speedupdown    =  300         
426        accelerationfront     = 500
427        accelerationbrake     = 500
428        accelerationback      =  500
429        accelerationleftright =  500
430        accelerationupdown    =  500
431      />
432    </engines>
433    <attached>
434      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=2.5 mesh="JumpEnemy4.mesh" />
435    </attached>
436    <collisionShapes>
437      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
438      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
439      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
440      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
441      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
442      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
443    </collisionShapes>
444  </TowerDefenseEnemy>
445</Template>
446
447<Level plugins = "towerdefense" gametype = "TowerDefense">
448  <templates>
449    <Template link=lodtemplate_default />
450  </templates>
451
452  <?lua include("includes/notifications.oxi") ?>
453
454  <Scene
455    ambientlight = "0.8, 0.8, 0.8"
456    skybox       = "Orxonox/Starbox"
457  >
458
459    <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"/>
460
461    <SpawnPoint team=0 position="0,0,0"/>
462
463    <Model position="0,0,10000" lodLevel=1 mesh="TD_S1.mesh" scale=1/>
464    <Model position="0,0,10000" lodLevel=1 mesh="TD_S2.mesh" scale=1/>
465    <Model position="0,0,10000" lodLevel=1 mesh="TD_S3.mesh" scale=1/>
466    <Model position="0,0,10000" lodLevel=1 mesh="TD_S4.mesh" scale=1/>
467    <Model position="0,0,10000" lodLevel=1 mesh="TD_S5.mesh" scale=1/>
468    <Model position="0,0,10000" lodLevel=1 mesh="TD_T1.mesh" scale=1/>
469    <Model position="0,0,10000" lodLevel=1 mesh="TD_T2.mesh" scale=1/>
470    <Model position="0,0,10000" lodLevel=1 mesh="TD_T3.mesh" scale=1/>
471    <Model position="0,0,10000" lodLevel=1 mesh="TD_T4.mesh" scale=1/>
472    <Model position="0,0,10000" lodLevel=1 mesh="TD_T5.mesh" scale=1/>
473    <Model position="0,0,10000" lodLevel=1 mesh="TD_F1.mesh" scale=1/>
474
475    <!-- PlayField -->
476    <TowerDefenseCenterpoint
477    name=towerdefensecenter
478    selecterTemplate=selectertemplate
479    tower1Template=tower1template
480    tower2Template=tower2template
481    tower3Template=tower3template
482    tower4Template=tower4template
483    tower5Template=tower5template
484    tower1Cost=100
485    tower2Cost=100
486    tower3Cost=100
487    tower4Cost=100
488    tower5Cost=100
489    fields="F1F1F1R1I1I1I1I1O1F1F1F1F1F1F1F1
490            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
491            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
492            F1F1F1I2F1F1F1F1F1F1F1Y1Y1Y1F1F1
493            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
494            F1F1F1I2F1F1F1F1F1F1F1Y1Y1Y1F1F1
495            F1F1F1R2I3I3I3I3I3I3I3L3F1F1F1F1
496            F1F1F1F1F1F1F1F1F1F1F1I2F1F1F1F1
497            F1F1F1F1F1F1F1F1F1F1F1I2F1F1F1F1
498            X1I1I1I1R0F1F1F1F1F1F1I2F1F1F1F1
499            F1F1F1F1I0F1F1F1F1F1F1I2F1F1F1F1
500            F1F1F1F1I0F1F1F1F1F1F1I2F1F1F1F1
501            F1F1F1F1L1I1I1I1I1I1I1L2F1F1F1F1
502            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1
503            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1
504            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1"
505    width=16
506    height=16
507    tileScale=100
508    position="0,0,0"
509    direction="0,0,0"
510    collisionType=dynamic
511    mass=100000
512    >
513      <camerapositions>
514        <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true />
515      </camerapositions>   
516    </TowerDefenseCenterpoint>
517
518  </Scene>
519</Level>
520
Note: See TracBrowser for help on using the repository browser.