Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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