Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS13/data/levels/underAttack.oxw @ 9928

Last change on this file since 9928 was 9926, checked in by jo, 11 years ago

merged levelKaan

  • Property svn:eol-style set to native
File size: 6.1 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         = 10000
59      initialhealth     = 10000
60      radarname         = "Transporter"
61    >
62
63      <attached>
64        <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
65        <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
66        <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
67        <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
68        <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
69        <?lua for i = 1, 100, 1 do ?>
70          <TeamSpawnPoint
71            team=0
72            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)) ?>"
73            lookat="0,0,0"
74            spawnclass=SpaceShip
75            pawndesign=spaceshipassff
76          />
77
78          <!--more spawnpoints for team1-->
79          <!--
80          <TeamSpawnPoint
81            team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
82            lookat="0,0,0"
83            spawnclass=SpaceShip
84            pawndesign=spaceshipassff
85          />-->
86        <?lua end ?>
87
88        <Model mesh="Carrier.mesh" scale="5" />
89        <Backlight
90          mainstate=activity
91          active=false
92          scale=0.4
93          name=bltest
94          position=" 7.6, 0, 6"
95          colour="0.2, 0.65, 1.0, 1.0"
96          width=15
97          length=1500
98          lifetime=2
99          elements=50
100          trailmaterial="Trail/backlighttrail"
101          turnontime=1
102          turnofftime=1
103          material="Flares/ThrusterFlare1"
104        />
105        <?lua for i=0,8,1 do ?>
106          <BlinkingBillboard
107            position="<?lua print(200-270/8*i)?> ,15,2"
108            material="Examples/Flare"
109            colour="1.0, 0.5, 0.3"
110            phase="<?lua print(-360/8*i)?>"
111            amplitude=0.1
112            frequency=0.5
113            quadratic=1
114          />
115
116          <BlinkingBillboard
117            position="<?lua print(200-270/8*i)?>,-15,2"
118            material="Examples/Flare"
119            colour="1.0, 0.5, 0.3"
120            phase="<?lua print(-360/8*i)?>"
121            amplitude=0.1
122            frequency=0.5
123            quadratic=1
124          />
125        <?lua end ?>
126
127        <Backlight
128          scale=1
129          position=" 169, 75, -15"
130          colour="1, 0.85, 0.5, 0.5"
131          width=40
132          length=1000
133          lifetime=5
134          elements=15
135          trailmaterial="Trail/backlighttrail"
136          material="Examples/Flare"
137        />
138        <Backlight
139          scale=1
140          position=" 169, -75, -15"
141          colour="1, 0.85, 0.5, 0.5"
142          width=40
143          length=1000
144          lifetime=5
145          elements=15
146          trailmaterial="Trail/backlighttrail"
147          material="Examples/Flare" />
148      </attached>
149      <collisionShapes>
150        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
151        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
152        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
153        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
154        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
155        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
156        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
157      </collisionShapes>
158    </Destroyer>
159
160    <GlobalShader compositor="Bloom" visible=false>
161      <events>
162        <visibility>
163          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
164        </visibility>
165      </events>
166    </GlobalShader>
167
168    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
169    <StaticEntity position="0,0,0" collisionType=static>
170      <collisionShapes>
171        <SphereCollisionShape radius="20" />
172      </collisionShapes>
173    </StaticEntity>
174   
175  </Scene>
176</Level>
Note: See TracBrowser for help on using the repository browser.