Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ai2/data/levels/lastTeamStanding.oxw @ 8804

Last change on this file since 8804 was 8793, checked in by jo, 13 years ago

Destructor update.

  • Property svn:eol-style set to native
File size: 4.5 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>
[8706]24  <?lua include("includes/notifications.oxi") ?>
[7556]25
26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
[7903]28    skybox       = "Orxonox/skypanoramagen1"
[7556]29  >
[8706]30  <?lua include("includes/notifications.oxi") ?>
[7605]31
32    <?lua
33      include("includes/pickups.oxi")
34    ?>
35
[7561]36<Bot />
[7556]37
[7561]38<!-- ------------ middle asteroid -------------- -->
[7585]39    <StaticEntity position="0,20,0" collisionType=static>
[7561]40       <attached>
41           <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
[7573]42           <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / -->
[7561]43       </attached>
[7585]44      <collisionShapes>
45        <SphereCollisionShape radius="145" />
46      </collisionShapes>
[7561]47    </StaticEntity>
48
[8793]49    <PickupSpawner position="-160,60,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
[7605]50      <pickup>
51        <InvisiblePickup template=hugeinvisiblepickup />
52      </pickup>
53    </PickupSpawner>
54    <StaticEntity position="-160,60,28.4"><!--EasterEgg-Indicator-->
55      <attached>
56        <Model position="0,0,0" scale=1 mesh="sphere.mesh" />
57      </attached>
58    </StaticEntity>
59
[7561]60<!-- ---------------asteroid dome----------------- -->
[7556]61<?lua
[7617]62max = 16
63for i = 0, max, 1
[7556]64do
[7561]65    y = math.sin(i/max*6)*750
66    z = math.cos(i/max*6)*750
[7617]67    j = 1
[7561]68    ?>
[7556]69
[8179]70    <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]71
[8179]72    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]73      <attached>
[7561]74        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
75        </Model>
[7556]76      </attached>
[7585]77      <collisionShapes>
78        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
79      </collisionShapes>
[7556]80    </StaticEntity>
81
[8179]82    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]83      <attached>
[7561]84        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
85        </Model>
[7556]86      </attached>
[7585]87      <collisionShapes>
88        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
89      </collisionShapes>
[7605]90    </StaticEntity>
[7556]91
[8179]92    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7556]93      <attached>
[7561]94        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
95        </Model>
[7556]96      </attached>
[7585]97      <collisionShapes>
98        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
99      </collisionShapes>
[7561]100    </StaticEntity>
[7556]101
[8179]102    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]103      <attached>
[7573]104        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
[7561]105        </Model>
106      </attached>
[7585]107      <collisionShapes>
108        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
109      </collisionShapes>
[7561]110    </StaticEntity>
[7556]111
[8179]112    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
[7561]113      <attached>
114        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
115        </Model>
116      </attached>
[7585]117      <collisionShapes>
118        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
119      </collisionShapes>
[7561]120    </StaticEntity>
121
[7596]122<!-- ---------Top Asteroid----------- -->
[8179]123    <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]124      <attached>
125        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
126        </Model>
127      </attached>
128      <collisionShapes>
[7603]129        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
[7596]130      </collisionShapes>
131    </StaticEntity>
[7573]132
133
[7561]134<?lua end ?>
135
[7556]136  </Scene>
137</Level>
138
[7561]139
Note: See TracBrowser for help on using the repository browser.