Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/animated_space_boundaries/data/levels/underAttack.oxw @ 10004

Last change on this file since 10004 was 8637, checked in by dafrick, 13 years ago

Merging tutoriallevel3 branch into presentation branch.

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