Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/testMultiplayerLevel.oxw @ 12049

Last change on this file since 12049 was 12027, checked in by merholzl, 6 years ago

Merged Masterserver, refresh button had to be removed

File size: 4.7 KB
Line 
1<LevelInfo
2 name = "00 Team Multiplayer Level"
3 description = "Team Deathmatch."
4 tags = "test"
5 screenshot = "teamdeathmatch.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         = "00 Team Multiplayer Level"
19 description  = "testmap for gametype teamdeathmatch"
20 gametype     =  "TeamDeathmatch"
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
32    <?lua
33      include("includes/pickups.oxi")
34    ?>
35   
36    <WorldAmbientSound source="Nebula_metal.ogg" looping="true" playOnLoad="true" />
37
38<Bot />
39
40<!-- ------------ middle asteroid -------------- -->
41    <StaticEntity position="0,20,0" collisionType=static>
42       <attached>
43           <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true />
44           <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / -->
45       </attached>
46      <collisionShapes>
47        <SphereCollisionShape radius="145" />
48      </collisionShapes>
49    </StaticEntity>
50
51    <PickupSpawner pickup=hugeinvisiblepickup position="-160,60,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="10" /><!--EasterEgg-->
52    <StaticEntity position="-160,60,28.4"><!--EasterEgg-Indicator-->
53      <attached>
54        <Model position="0,0,0" scale=1 mesh="sphere.mesh" />
55      </attached>
56    </StaticEntity>
57
58<!-- ---------------asteroid dome----------------- -->
59<?lua
60max = 16
61fac = 0.3
62for i = 0, max, 1
63do
64    y = math.sin(i/max*6)*750
65    z = math.cos(i/max*6)*750
66    j = 1
67    ?>
68
69
70    <TeamSpawnPoint team=0 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    <TeamSpawnPoint team=1 position="<?lua print(y*1.4*fac+z*0.2*fac) ?>,0,<?lua print(z*1.4*fac-y*0.2*fac) ?>" direction="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
72
73
74    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
75      <attached>
76        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
77        </Model>
78      </attached>
79      <collisionShapes>
80        <BoxCollisionShape    halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" />
81      </collisionShapes>
82    </StaticEntity>
83
84    <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
85      <attached>
86        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh">
87        </Model>
88      </attached>
89      <collisionShapes>
90        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
91      </collisionShapes>
92    </StaticEntity>
93
94    <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
95      <attached>
96        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh">
97        </Model>
98      </attached>
99      <collisionShapes>
100        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
101      </collisionShapes>
102    </StaticEntity>
103
104    <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
105      <attached>
106        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh">
107        </Model>
108      </attached>
109      <collisionShapes>
110        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
111      </collisionShapes>
112    </StaticEntity>
113
114    <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale="<?lua print(j * 2) ?>" collisionType=static >
115      <attached>
116        <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh">
117        </Model>
118      </attached>
119      <collisionShapes>
120        <BoxCollisionShape    halfExtents="45,100,45" position = "0,0,0" />
121      </collisionShapes>
122    </StaticEntity>
123
124<!-- ---------Top Asteroid----------- -->
125    <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 >
126      <attached>
127        <Model position="0,0,0" scale=25 mesh="ast6.mesh">
128        </Model>
129      </attached>
130      <collisionShapes>
131        <BoxCollisionShape    halfExtents="50,140,30" position="0,0,0"/>
132      </collisionShapes>
133    </StaticEntity>
134
135
136<?lua end ?>
137
138  </Scene>
139</Level>
140
141
Note: See TracBrowser for help on using the repository browser.