Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/underAttack.oxw @ 7679

Last change on this file since 7679 was 7679, checked in by dafrick, 14 years ago

Renaming levelfiles (and some other) according to our new naming conventions which is using camelCase, without '_' or spaces.

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