Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/presentation09b.oxw @ 5571

Last change on this file since 5571 was 5571, checked in by bknecht, 15 years ago

added spacestation plus pirate carrier to pres_level

File size: 3.8 KB
Line 
1<?lua
2  include("overlay/hudtemplates3.oxo")
3  include("overlay/stats.oxo")
4  include("levels/templates/spaceship_assff.oxt")
5  include("levels/templates/spaceship_H2.oxt")
6?>
7
8<Level
9 name         = "Presentation09"
10 description  = "presentation level for Orxonox Convention X"
11
12>
13  <Scene
14   ambientlight = "0.5, 0.5, 0.5"
15   skybox       = "Orxonox/skypanoramagen2"
16  >
17    <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" />
18
19    <SpawnPoint position="-4200, 2500, 1200" spawnclass=SpaceShip pawndesign=spaceshipassff />
20
21    <StaticEntity position="7800, 4000, 3000">
22        <attached>
23            <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
24            <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
25        </attached>
26    </StaticEntity>
27   
28    <MovableEntity position="7000, -4000, -2000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
29        <attached>
30            <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
31            <Backlight
32                mainstate=activity
33                active=false
34                scale=0.4
35                name=bltest
36                position=" 7.6, 0, 6"
37                colour="0.2, 0.65, 1.0, 1.0"
38                width=15
39                length=1500
40                lifetime=2
41                elements=50
42                trailmaterial="Trail/backlighttrail"
43                turnontime=1
44                turnofftime=1
45                material="Flares/ThrusterFlare1"
46            />
47        </attached>
48        <collisionShapes>
49            <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
50            <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
51            <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
52            <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
53            <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
54            <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
55            <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
56        </collisionShapes>
57    </MovableEntity>
58<?lua
59for i = 1, 200, 1
60do
61x = math.random() * 100  + (i-50) * 100
62y = math.random() * 3000 - 1500
63z = math.random() * 3000 - 1500 + (i-100) * 10
64s = math.random() * 100 + 50
65?>
66   
67    <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
68      <attached>
69        <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
70      </attached>
71    </MovableEntity>
72<?lua
73end
74?>
75
76<?lua
77elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
78sizes = {4, 4, 4, 4, 4, 10, 20}
79elements.length = function()
80    return table.getn(elements)
81end
82for i = 1, 150, 1
83do
84x = math.random() * 750 - 4500
85y = math.random() * 1000 + 2000
86z = math.random() * 500 + 1000
87e = math.floor(math.random()*elements.length()+1)
88?>
89   
90    <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
91      <attached>
92        <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
93      </attached>
94    </MovableEntity>
95<?lua
96end
97?>
98   
99  </Scene>
100</Level>
Note: See TracBrowser for help on using the repository browser.