Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutoriallevel3/data/levels/lastTeamStanding.oxw @ 8636

Last change on this file since 8636 was 8636, checked in by dafrick, 13 years ago

Making NotificationQueue XML-loadable. Adding notifications to all levels.

  • Property svn:eol-style set to native
File size: 4.7 KB
RevLine 
[7903]1<LevelInfo
2 name = "Last Team Standing"
3 description = "Survive as a team."
4 tags = "singleplayer"
5/>
[7556]6<?lua
7  include("stats.oxo")
[7679]8  include("HUDTemplates3.oxo")
9  include("templates/lodInformation.oxt")
[7903]10  include("lastTeamStandingHUD.oxo")
[7679]11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipPirate.oxt")
13  include("templates/pickupRepresentationTemplates.oxt")
[7556]14?>
15
16<Level
[7903]17 name         = "Last Team Standing"
18 description  = "testmap for gametype last team standing"
19 gametype     =  "LastTeamStanding"
[7556]20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24
25  <Scene
26    ambientlight = "0.8, 0.8, 0.8"
[7903]27    skybox       = "Orxonox/skypanoramagen1"
[7556]28  >
[8636]29  <?lua include("includes/notifications.oxi") ?>
[7605]30
31    <?lua
32      include("includes/pickups.oxi")
33    ?>
34
[7561]35<Bot />
[7556]36
[7561]37<!-- ------------ middle asteroid -------------- -->
[7585]38    <StaticEntity position="0,20,0" collisionType=static>
[7561]39       <attached>
40           <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
[7573]41           <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / -->
[7561]42       </attached>
[7585]43      <collisionShapes>
44        <SphereCollisionShape radius="145" />
45      </collisionShapes>
[7561]46    </StaticEntity>
47
[7605]48    <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
49      <pickup>
50        <InvisiblePickup template=mediuminvisiblepickup />
51      </pickup>
52    </PickupSpawner>
53    <PickupSpawner position="-160,60,17" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
54      <pickup>
55        <InvisiblePickup template=hugeinvisiblepickup />
56      </pickup>
57    </PickupSpawner>
58    <StaticEntity position="-160,60,28.4"><!--EasterEgg-Indicator-->
59      <attached>
60        <Model position="0,0,0" scale=1 mesh="sphere.mesh" />
61      </attached>
62    </StaticEntity>
63
[7561]64<!-- ---------------asteroid dome----------------- -->
[7556]65<?lua
[7617]66max = 16
67for i = 0, max, 1
[7556]68do
[7561]69    y = math.sin(i/max*6)*750
70    z = math.cos(i/max*6)*750
[7617]71    j = 1
[7561]72    ?>
[7556]73
[8179]74    <TeamSpawnPoint team="<?lua print( math.mod(i,4)) ?>" position="<?lua print(y*1.4+z*0.2) ?>,0,<?lua print(z*1.4-y*0.2) ?>" direction="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
[7600]75
[8179]76    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]77      <attached>
[7561]78        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
79        </Model>
[7556]80      </attached>
[7585]81      <collisionShapes>
82        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
83      </collisionShapes>
[7556]84    </StaticEntity>
85
[8179]86    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]87      <attached>
[7561]88        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
89        </Model>
[7556]90      </attached>
[7585]91      <collisionShapes>
92        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
93      </collisionShapes>
[7605]94    </StaticEntity>
[7556]95
[8179]96    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]97      <attached>
[7561]98        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
99        </Model>
[7556]100      </attached>
[7585]101      <collisionShapes>
102        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
103      </collisionShapes>
[7561]104    </StaticEntity>
[7556]105
[8179]106    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]107      <attached>
[7573]108        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
[7561]109        </Model>
110      </attached>
[7585]111      <collisionShapes>
112        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
113      </collisionShapes>
[7561]114    </StaticEntity>
[7556]115
[8179]116    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]117      <attached>
118        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
119        </Model>
120      </attached>
[7585]121      <collisionShapes>
122        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
123      </collisionShapes>
[7561]124    </StaticEntity>
125
[7596]126<!-- ---------Top Asteroid----------- -->
[8179]127    <StaticEntity position="<?lua print(y) ?>,300,<?lua print(z) ?>" scale="<?lua print(j * 2.1) ?>" pitch="90" roll="180" yaw="<?lua print(-90+i*360/max) ?>" collisionType=static >
[7596]128      <attached>
129        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
130        </Model>
131      </attached>
132      <collisionShapes>
[7603]133        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
[7596]134      </collisionShapes>
135    </StaticEntity>
[7573]136
137
[7561]138<?lua end ?>
139
[7556]140  </Scene>
141</Level>
142
[7561]143
Note: See TracBrowser for help on using the repository browser.