Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/release2012/data/levels/underAttack.oxw @ 9370

Last change on this file since 9370 was 9370, checked in by jo, 12 years ago

The transporter's life is now set depending on the number of players.

  • Property svn:eol-style set to native
File size: 6.0 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("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level
16 gametype = "UnderAttack"
17>
18  <templates>
19    <Template link=lodtemplate_default />
20  </templates>
21  <?lua include("includes/notifications.oxi") ?>
22
23  <Scene
24   ambientlight = "0.5, 0.5, 0.5"
25   skybox       = "Orxonox/skyBoxBasic"
26  >
27    <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" />
28
29    <?lua for i = 1, 30, 1 do ?>
30      <MovableEntity
31          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
32          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
33      >
34        <attached>
35          <Model
36              <?lua x = math.random() * 150 + 30 ?>
37              scale="<?lua print(x) ?>"
38              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
39              position="0,0,0"
40          />
41        </attached>
42          <collisionShapes>
43            <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" />
44          </collisionShapes>
45      </MovableEntity>
46    <?lua end ?>
47
48
49
50
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    >
63
64      <attached>
65        <TeamSpawnPoint team=1 position="150,0,-50" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
66        <TeamSpawnPoint team=1 position="0,0,-50" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
67        <TeamSpawnPoint team=1 position="-50,0,-50" 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="50,0,-50" 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() * 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)) ?>"
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.