Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11706 was 10297, checked in by landauf, 10 years ago

improved underAttack.oxw - now with lots of turrets attached to the big ship.

  • Property svn:eol-style set to native
File size: 8.8 KB
Line 
1<!---->
2
3<LevelInfo
4 name = "Under Attack"
5 description = "Fight the transporter."
6 tags = "gametype"
7 screenshot = "underattack.png"
8/>
9
10<?lua
11  include("HUDTemplates3.oxo")
12  include("stats.oxo")
13  include("templates/spaceshipAssff.oxt")
14  include("templates/standardTurret.oxt")
15  include("templates/lodInformation.oxt")
16?>
17
18<Level
19 gametype = "UnderAttack"
20>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25  <WorldAmbientSound source="Jupiter.ogg" looping="true" playOnLoad="true" />
26
27  <Scene
28   ambientlight = "0.5, 0.5, 0.5"
29   skybox       = "Orxonox/skyBoxBasic"
30  >
31    <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" />
32
33    <?lua for i = 1, 30, 1 do ?>
34      <MovableEntity
35          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
36          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
37      >
38        <attached>
39          <Model
40              <?lua x = math.random() * 150 + 30 ?>
41              scale="<?lua print(x) ?>"
42              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
43              position="0,0,0"
44          />
45        </attached>
46          <collisionShapes>
47            <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" />
48          </collisionShapes>
49      </MovableEntity>
50    <?lua end ?>
51
52    <Destroyer
53      position          = "100,150,0"
54      collisionType     = dynamic
55      mass              = 100000
56      velocity          = "-35,0,0"
57      angularDamping    = 0.9999999
58      health            = 10000
59      maxhealth         = 10000000
60      initialhealth     = 10000
61      radarname         = "Transporter"
62      team              = 1
63    >
64
65      <attached>
66        <SpaceBoundaries position="1,2,3" maxDistance="1600" warnDistance="300" showDistance="300" reactionMode="1" healthDecrease="5.0" />
67        <TeamSpawnPoint team=1 position="200,0,20" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
68        <TeamSpawnPoint team=1 position="50,0,100" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
69        <TeamSpawnPoint team=1 position="-200,0,-60" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
70        <TeamSpawnPoint team=1 position="100,0,-50" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
71        <TeamSpawnPoint team=1 position="400,0,20" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
72        <?lua for i = 1, 100, 1 do ?>
73          <TeamSpawnPoint
74            team=0
75            position="<?lua print((math.random() * 450 + 450) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 450 + 450) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 450 + 450) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
76            lookat="0,0,0"
77            spawnclass=SpaceShip
78            pawndesign=spaceshipassff
79          />
80
81          <!--more spawnpoints for team1-->
82          <!--
83          <TeamSpawnPoint
84            team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
85            lookat="0,0,0"
86            spawnclass=SpaceShip
87            pawndesign=spaceshipassff
88          />-->
89        <?lua end ?>
90
91        <Model mesh="Carrier.mesh" scale="5" />
92        <Backlight
93          mainstate=activity
94          active=false
95          scale=0.4
96          name=bltest
97          position=" 7.6, 0, 6"
98          colour="0.2, 0.65, 1.0, 1.0"
99          width=15
100          length=1500
101          lifetime=2
102          elements=50
103          trailmaterial="Trail/backlighttrail"
104          turnontime=1
105          turnofftime=1
106          material="Flares/ThrusterFlare1"
107        />
108        <?lua for i=0,8,1 do ?>
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
119          <BlinkingBillboard
120            position="<?lua print(200-270/8*i)?>,-15,2"
121            material="Examples/Flare"
122            colour="1.0, 0.5, 0.3"
123            phase="<?lua print(-360/8*i)?>"
124            amplitude=0.1
125            frequency=0.5
126            quadratic=1
127          />
128        <?lua end ?>
129
130        <Backlight
131          scale=1
132          position=" 169, 75, -15"
133          colour="1, 0.85, 0.5, 0.5"
134          width=40
135          length=1000
136          lifetime=5
137          elements=15
138          trailmaterial="Trail/backlighttrail"
139          material="Examples/Flare"
140        />
141        <Backlight
142          scale=1
143          position=" 169, -75, -15"
144          colour="1, 0.85, 0.5, 0.5"
145          width=40
146          length=1000
147          lifetime=5
148          elements=15
149          trailmaterial="Trail/backlighttrail"
150          material="Examples/Flare" />
151        <Turret position="170,47,35" pitch="90" scale="0.5">
152          <templates>
153            <Template link=standardturret />
154          </templates>
155        </Turret>
156        <Turret position="170,-47,35" pitch="-90" scale="0.5">
157          <templates>
158            <Template link=standardturret />
159          </templates>
160        </Turret>
161        <Turret position="167,0,90" pitch="180" scale="0.5">
162          <templates>
163            <Template link=standardturret />
164          </templates>
165        </Turret>
166        <Turret position="140,85,-15" pitch="90" scale="0.5">
167          <templates>
168            <Template link=standardturret />
169          </templates>
170        </Turret>
171        <Turret position="70,85,-15" pitch="90" scale="0.5">
172          <templates>
173            <Template link=standardturret />
174          </templates>
175        </Turret>
176        <Turret position="105,75,-3" pitch="180" scale="0.5">
177          <templates>
178            <Template link=standardturret />
179          </templates>
180        </Turret>
181        <Turret position="25,75,-15" yaw="90" scale="0.5">
182          <templates>
183            <Template link=standardturret />
184          </templates>
185        </Turret>
186        <Turret position="140,-85,-15" pitch="-90" scale="0.5">
187          <templates>
188            <Template link=standardturret />
189          </templates>
190        </Turret>
191        <Turret position="70,-85,-15" pitch="-90" scale="0.5">
192          <templates>
193            <Template link=standardturret />
194          </templates>
195        </Turret>
196        <Turret position="105,-75,-3" pitch="180" scale="0.5">
197          <templates>
198            <Template link=standardturret />
199          </templates>
200        </Turret>
201        <Turret position="25,-75,-15" yaw="90" scale="0.5">
202          <templates>
203            <Template link=standardturret />
204          </templates>
205        </Turret>
206        <Turret position="203,-35,-15" yaw="-90" scale="0.5">
207          <templates>
208            <Template link=standardturret />
209          </templates>
210        </Turret>
211        <Turret position="203,35,-15" yaw="-90" scale="0.5">
212          <templates>
213            <Template link=standardturret />
214          </templates>
215        </Turret>
216        <Turret position="-55,42,-15" yaw="90" pitch="73" scale="0.5">
217          <templates>
218            <Template link=standardturret />
219          </templates>
220        </Turret>
221        <Turret position="-55,-42,-15" yaw="90" pitch="-73" scale="0.5">
222          <templates>
223            <Template link=standardturret />
224          </templates>
225        </Turret>
226      </attached>
227      <collisionShapes>
228        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
229        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
230        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
231        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
232        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
233        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
234        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
235      </collisionShapes>
236    </Destroyer>
237
238    <GlobalShader compositor="Bloom" visible=false>
239      <events>
240        <visibility>
241          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
242        </visibility>
243      </events>
244    </GlobalShader>
245
246    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
247    <StaticEntity position="0,0,0" collisionType=static>
248      <collisionShapes>
249        <SphereCollisionShape radius="20" />
250      </collisionShapes>
251    </StaticEntity>
252   
253  </Scene>
254</Level>
Note: See TracBrowser for help on using the repository browser.