Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10139 was 9941, checked in by jo, 11 years ago

Adding most of the changes that were proposed in the release2012 branch.

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