Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamecontent/data/levels/lastTeamStanding.oxw @ 8953

Last change on this file since 8953 was 8891, checked in by jo, 13 years ago

Ai and tutorial improvements merged back to the trunk. AI features: all weapons are used, the ai-firestrength is configurable, bots are able to collect pickups . I've set the tutorial level as default level.

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