Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/hud/data/levels/underAttack.oxw @ 9022

Last change on this file since 9022 was 8929, checked in by mspaling, 13 years ago

added xmlport for rvnames and misc menu options

  • Property svn:eol-style set to native
File size: 6.0 KB
Line 
1<?lua
2  include("HUDTemplates3.oxo")
3  include("stats.oxo")
4  include("underAttackHUD.oxo")
5  include("templates/spaceshipAssff.oxt")
6  include("templates/lodInformation.oxt")
7?>
8
9<Level
10 name         = "UnderAttack testing"
11 description  = "A simple testlevel"
12 gametype     = UnderAttack
13>
14  <templates>
15    <Template link=lodtemplate_default />
16  </templates>
17  <?lua include("includes/notifications.oxi") ?>
18
19  <Scene
20   ambientlight = "0.5, 0.5, 0.5"
21   skybox       = "Orxonox/skypanoramagen1"
22  >
23    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
24
25    <?lua for i = 1, 30, 1 do ?>
26      <MovableEntity
27          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
28          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
29      >
30        <attached>
31          <Model
32              <?lua x = math.random() * 150 + 30 ?>
33              scale="<?lua print(x) ?>"
34              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
35              position="0,0,0"
36          />
37        </attached>
38          <collisionShapes>
39            <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" />
40          </collisionShapes>
41      </MovableEntity>
42    <?lua end ?>
43
44    <Destroyer
45      position          = "100,150,0"
46      collisionType     = dynamic
47      mass              = 100000
48      velocity          = "-35,0,0"
49      angularDamping    = 0.9999999
50      health            = 10000
51      maxhealth         = 10000
52      initialhealth     = 10000
53      RVName            = "Transporter"
54    >
55
56      <attached>
57        <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
58        <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
59        <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
60        <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
61        <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
62        <?lua for i = 1, 100, 1 do ?>
63          <TeamSpawnPoint
64            team=0
65            position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
66            lookat="0,0,0"
67            spawnclass=SpaceShip
68            pawndesign=spaceshipassff
69          />
70
71          <!--more spawnpoints for team1-->
72          <!--
73          <TeamSpawnPoint
74            team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
75            lookat="0,0,0"
76            spawnclass=SpaceShip
77            pawndesign=spaceshipassff
78          />-->
79        <?lua end ?>
80
81        <Model mesh="Carrier.mesh" scale="5" />
82        <Backlight
83          mainstate=activity
84          active=false
85          scale=0.4
86          name=bltest
87          position=" 7.6, 0, 6"
88          colour="0.2, 0.65, 1.0, 1.0"
89          width=15
90          length=1500
91          lifetime=2
92          elements=50
93          trailmaterial="Trail/backlighttrail"
94          turnontime=1
95          turnofftime=1
96          material="Flares/ThrusterFlare1"
97        />
98        <?lua for i=0,8,1 do ?>
99          <BlinkingBillboard
100            position="<?lua print(200-270/8*i)?> ,15,2"
101            material="Examples/Flare"
102            colour="1.0, 0.5, 0.3"
103            phase="<?lua print(-360/8*i)?>"
104            amplitude=0.1
105            frequency=0.5
106            quadratic=1
107          />
108
109          <BlinkingBillboard
110            position="<?lua print(200-270/8*i)?>,-15,2"
111            material="Examples/Flare"
112            colour="1.0, 0.5, 0.3"
113            phase="<?lua print(-360/8*i)?>"
114            amplitude=0.1
115            frequency=0.5
116            quadratic=1
117          />
118        <?lua end ?>
119
120        <Backlight
121          scale=1
122          position=" 169, 75, -15"
123          colour="1, 0.85, 0.5, 0.5"
124          width=40
125          length=1000
126          lifetime=5
127          elements=15
128          trailmaterial="Trail/backlighttrail"
129          material="Examples/Flare"
130        />
131        <Backlight
132          scale=1
133          position=" 169, -75, -15"
134          colour="1, 0.85, 0.5, 0.5"
135          width=40
136          length=1000
137          lifetime=5
138          elements=15
139          trailmaterial="Trail/backlighttrail"
140          material="Examples/Flare" />
141      </attached>
142      <collisionShapes>
143        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
144        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
145        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
146        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
147        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
148        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
149        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
150      </collisionShapes>
151    </Destroyer>
152
153    <GlobalShader compositor="Bloom" visible=false>
154      <events>
155        <visibility>
156          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
157        </visibility>
158      </events>
159    </GlobalShader>
160
161    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
162    <StaticEntity position="0,0,0" collisionType=static>
163      <collisionShapes>
164        <SphereCollisionShape radius="20" />
165      </collisionShapes>
166    </StaticEntity>
167   
168  </Scene>
169</Level>
Note: See TracBrowser for help on using the repository browser.