Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/dockingsystem/data/levels/docking.oxw @ 8188

Last change on this file since 8188 was 8188, checked in by sven, 13 years ago

More verbose error handling in Dock

File size: 5.1 KB
Line 
1<LevelInfo
2 name = "Transporter"
3 description = "Level with a Transporter. Demostrates the docking system."
4 tags = ""
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/lodInformation.oxt")
12?>
13
14<Level
15 name         = "Transporter"
16 description  = "Docking example level"
17>
18  <templates>
19    <Template link=lodtemplate_default />
20  </templates>
21
22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
24   skybox       = "Orxonox/skypanoramagen1"
25  >
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, 10, 1 do ?>
30      <SpawnPoint position="<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
31    <?lua end ?>
32
33
34    <Dock>
35        <effects>
36            <DockToShip />
37        </effects>
38        <events>
39            <execute>
40                <EventListener event="dockMe" />
41            </execute>
42        </events>
43        <attached>
44            <DistanceTrigger position="0,0,0" distance="20" target="Pawn" name="dockMe" />
45            <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
46        </attached>
47    </Dock>
48
49
50    <!--
51    <Destroyer
52      position          = "100,150,0"
53      collisionType     = dynamic
54      mass              = 100000
55      velocity          = "0,0,0"
56      angularDamping    = 0.9999999
57      health            = 10000
58      maxhealth         = 10000
59      initialhealth     = 10000
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        <?lua end ?>
77
78        <Model mesh="Carrier.mesh" scale="5" />
79        <Backlight
80          mainstate=activity
81          active=false
82          scale=0.4
83          name=bltest
84          position=" 7.6, 0, 6"
85          colour="0.2, 0.65, 1.0, 1.0"
86          width=15
87          length=1500
88          lifetime=2
89          elements=50
90          trailmaterial="Trail/backlighttrail"
91          turnontime=1
92          turnofftime=1
93          material="Flares/ThrusterFlare1"
94        />
95        <?lua for i=0,8,1 do ?>
96          <BlinkingBillboard
97            position="<?lua print(200-270/8*i)?> ,15,2"
98            material="Examples/Flare"
99            colour="1.0, 0.5, 0.3"
100            phase="<?lua print(-360/8*i)?>"
101            amplitude=0.1
102            frequency=0.5
103            quadratic=1
104          />
105
106          <BlinkingBillboard
107            position="<?lua print(200-270/8*i)?>,-15,2"
108            material="Examples/Flare"
109            colour="1.0, 0.5, 0.3"
110            phase="<?lua print(-360/8*i)?>"
111            amplitude=0.1
112            frequency=0.5
113            quadratic=1
114          />
115        <?lua end ?>
116
117        <Backlight
118          scale=1
119          position=" 169, 75, -15"
120          colour="1, 0.85, 0.5, 0.5"
121          width=40
122          length=1000
123          lifetime=5
124          elements=15
125          trailmaterial="Trail/backlighttrail"
126          material="Examples/Flare"
127        />
128        <Backlight
129          scale=1
130          position=" 169, -75, -15"
131          colour="1, 0.85, 0.5, 0.5"
132          width=40
133          length=1000
134          lifetime=5
135          elements=15
136          trailmaterial="Trail/backlighttrail"
137          material="Examples/Flare" />
138      </attached>
139      <collisionShapes>
140        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
141        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
142        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
143        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
144        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
145        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
146        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
147      </collisionShapes>
148    </Destroyer>
149    //-->
150
151  </Scene>
152</Level>
Note: See TracBrowser for help on using the repository browser.