Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/levelKaan/data/levels/underAttack.oxw @ 9807

Last change on this file since 9807 was 9807, checked in by skaan, 10 years ago

Update meteorids, endofgame

  • Property svn:eol-style set to native
File size: 6.0 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
25  <Scene
26   ambientlight = "0.5, 0.5, 0.5"
27   skybox       = "Orxonox/skyBoxBasic"
28  >
29    <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" />
30
31    <?lua for i = 1, 30, 1 do ?>
32      <MovableEntity
33          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
34          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
35      >
36        <attached>
37          <Model
38              <?lua x = math.random() * 150 + 30 ?>
39              scale="<?lua print(x) ?>"
40              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
41              position="0,0,0"
42          />
43        </attached>
44          <collisionShapes>
45            <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" />
46          </collisionShapes>
47      </MovableEntity>
48    <?lua end ?>
49
50    <Destroyer
51      position          = "100,150,0"
52      collisionType     = dynamic
53      mass              = 100000
54      velocity          = "-35,0,0"
55      angularDamping    = 0.9999999
56      health            = 10000
57      maxhealth         = 10000
58      initialhealth     = 10000
59      radarname         = "Transporter"
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.