Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial4/data/levels/underAttack.oxw @ 10256

Last change on this file since 10256 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

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