Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2012merge/data/levels/lastTeamStanding.oxw @ 9333

Last change on this file since 9333 was 9319, checked in by landauf, 12 years ago

refactored PickupSpawner - it doesn't clone a sample-pickup anymore, it creates new pickups from a template.
removed DroppedPickup because it is not needed anymore, PickupSpawner has now the same functionality.
the representation of the pickup spawner is now destroyed if the pickup is taken and re-created if it spawns again (instead of changing the visibility). makes it easier to change the pickup in a spawner during the game.
adjusted all level files accordingly

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