Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8459 was 8434, checked in by sven, 14 years ago

Added simple GUI for docking..

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