Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8526 was 8493, checked in by sven, 14 years ago

Added docking animations, skeletton for DockingController..

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