Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/dockingsystem2/data/levels/docking.oxw @ 8382

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

Added dock/undock console commands.

File size: 7.2 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    <Dock position="-50,-100,50">
34            <effects>
35                <DockToShip target="theDestroyer" />
36            </effects>
37            <events>
38                <execute>
39                    <EventListener event="dockMe" />
40                </execute>
41            </events>
42            <attached>
43                <DistanceTrigger position="0,0,0" distance="20" target="Pawn" beaconMode="exclude" targetname="destroyerBeacon" name="dockMe" />
44                <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
45            </attached>
46        </Dock>
47
48
49   
50
51      <SpaceShip
52   hudtemplate            = "spaceshiphud"
53   camerapositiontemplate = "spaceshipassffcameras"
54   engine                 = "spaceshipassffengine"
55   spawnparticlesource    = "Orxonox/fairytwirl"
56   spawnparticleduration  = "3"
57   explosionchunks        = "6"
58
59   health            = "100"
60   maxhealth         = "200"
61   initialhealth     = "100"
62
63   primaryThrust     = "100;"
64   auxilaryThrust    = "30;"
65   rotationThrust    = "25;"
66
67   collisionType     = "dynamic"
68   mass              = "100"
69   linearDamping     = "0.7"
70   angularDamping    = "0.9999999"
71  >
72    <attached>
73        <DistanceTriggerBeacon name="beacon1" />
74        <DockingTarget name="asdf" />
75
76      <Model position="0,0,0" yaw="90" pitch="-90" roll="0" scale="4" mesh="assff.mesh" />
77      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude="0.1" frequency="0.5" quadratic="1" />
78      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude="0.1" frequency="0.5" phase="180" quadratic="1" />
79      <DistanceTriggerBeacon name="PlayerDistanceTrigger" />
80    </attached>
81    <collisionShapes>
82      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
83      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
84      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
85      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
86      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
87      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
88    </collisionShapes>
89<?lua
90  include("includes/weaponSettingsAssff.oxi")
91?>
92  </SpaceShip>
93
94   
95
96
97    <Destroyer
98      position          = "100,150,0"
99      collisionType     = "dynamic"
100      mass              = "100000"
101      velocity          = "0,0,0"
102      angularDamping    = "0.9999999"
103      health            = "10000"
104      maxhealth         = "10000"
105      initialhealth     = "10000"
106    >
107
108      <attached>
109
110        <DistanceTriggerBeacon name="destroyerBeacon" />
111        <DockingTarget name="theDestroyer" />
112
113
114        <TeamSpawnPoint team="1" position="150,0,7" direction="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
115        <TeamSpawnPoint team="1" position="0,0,7" lookat="-1,0,0" roll="90"  yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
116        <TeamSpawnPoint team="1" position="-50,0,7" lookat="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
117        <TeamSpawnPoint team="1" position="100,0,7" lookat="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
118        <TeamSpawnPoint team="1" position="50,0,7" lookat="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
119        <?lua for i = 1, 100, 1 do ?>
120          <TeamSpawnPoint
121            team="0"
122            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)) ?>"
123            lookat="0,0,0"
124            spawnclass="SpaceShip"
125            pawndesign="spaceshipassff"
126          />
127        <?lua end ?>
128
129        <Model mesh="Carrier.mesh" scale="5" />
130        <Backlight
131          mainstate="activity"
132          active="false"
133          scale="0.4"
134          name="bltest"
135          position=" 7.6, 0, 6"
136          colour="0.2, 0.65, 1.0, 1.0"
137          width="15"
138          length="1500"
139          lifetime="2"
140          elements="50"
141          trailmaterial="Trail/backlighttrail"
142          turnontime="1"
143          turnofftime="1"
144          material="Flares/ThrusterFlare1"
145        />
146        <Backlight
147                  scale="1"
148                  position=" 169, 75, -15"
149                  colour="1, 0.85, 0.5, 0.5"
150                  width="40"
151                  length="1000"
152                  lifetime="5"
153                  elements="15"
154                  trailmaterial="Trail/backlighttrail"
155                  material="Examples/Flare"
156                  />
157        <Backlight
158                  scale="1"
159                  position=" 169, -75, -15"
160                  colour="1, 0.85, 0.5, 0.5"
161                  width="40"
162                  length="1000"
163                  lifetime="5"
164                  elements="15"
165                  trailmaterial="Trail/backlighttrail"
166                  material="Examples/Flare"
167         />
168        <?lua for i=0,8,1 do ?>
169          <BlinkingBillboard
170            position="<?lua print(200-270/8*i)?> ,15,2"
171            material="Examples/Flare"
172            colour="1.0, 0.5, 0.3"
173            phase="<?lua print(-360/8*i)?>"
174            amplitude="0.1"
175            frequency="0.5"
176            quadratic="1"
177          />
178
179          <BlinkingBillboard
180            position="<?lua print(200-270/8*i)?>,-15,2"
181            material="Examples/Flare"
182            colour="1.0, 0.5, 0.3"
183            phase="<?lua print(-360/8*i)?>"
184            amplitude="0.1"
185            frequency="0.5"
186            quadratic="1"
187          />
188        <?lua end ?>
189
190      </attached>
191      <collisionShapes>
192        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
193        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
194        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
195        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
196        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
197        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
198        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
199      </collisionShapes>
200
201    </Destroyer>
202
203  </Scene>
204</Level>
Note: See TracBrowser for help on using the repository browser.