Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/underAttack.oxw @ 8931

Last change on this file since 8931 was 8931, checked in by jo, 13 years ago

Adding new tags: 'gametype' and 'minigame'.

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