Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/underAttack.oxw @ 8762

Last change on this file since 8762 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • Property svn:eol-style set to native
File size: 5.9 KB
RevLine 
[5474]1<?lua
[7679]2  include("HUDTemplates3.oxo")
[5654]3  include("stats.oxo")
[7679]4  include("underAttackHUD.oxo")
5  include("templates/spaceshipAssff.oxt")
6  include("templates/lodInformation.oxt")
[5474]7?>
8
9<Level
10 name         = "UnderAttack testing"
11 description  = "A simple testlevel"
12 gametype     = UnderAttack
13>
[7163]14  <templates>
15    <Template link=lodtemplate_default />
16  </templates>
[8706]17  <?lua include("includes/notifications.oxi") ?>
[7163]18
[5474]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
[5518]25    <?lua for i = 1, 30, 1 do ?>
[7163]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>
[8079]39            <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" />
[7163]40          </collisionShapes>
41      </MovableEntity>
[5518]42    <?lua end ?>
[5528]43
[5518]44    <Destroyer
[7163]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
[5518]53    >
[5517]54
[7163]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          />
[5518]69
[7163]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 ?>
[5528]79
[7163]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"
[8079]102            phase="<?lua print(-360/8*i)?>"
[7163]103            amplitude=0.1
104            frequency=0.5
105            quadratic=1
106          />
[5518]107
[7163]108          <BlinkingBillboard
109            position="<?lua print(200-270/8*i)?>,-15,2"
110            material="Examples/Flare"
111            colour="1.0, 0.5, 0.3"
[8079]112            phase="<?lua print(-360/8*i)?>"
[7163]113            amplitude=0.1
114            frequency=0.5
115            quadratic=1
116          />
117        <?lua end ?>
[5487]118
[7163]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>
[5518]150    </Destroyer>
151
[5474]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>
[5487]159
[5474]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>
[7163]166   
[5474]167  </Scene>
168</Level>
Note: See TracBrowser for help on using the repository browser.