Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/docking.oxw @ 11881

Last change on this file since 11881 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

  • Property svn:eol-style set to native
File size: 7.5 KB
RevLine 
[9939]1<!-- -->
[8137]2<LevelInfo
3 name = "Transporter"
[8560]4 description = "Level with a Transporter. Demonstrates the docking system."
[9016]5 tags = "showcase"
6 screenshot = "transporter.png"
[8137]7/>
8
9<?lua
10  include("HUDTemplates3.oxo")
11  include("stats.oxo")
12  include("templates/spaceshipAssff.oxt")
13  include("templates/lodInformation.oxt")
14?>
15
[9016]16<Level>
[8137]17  <templates>
[8382]18    <Template link="lodtemplate_default" />
[8137]19  </templates>
[8637]20  <?lua include("includes/notifications.oxi") ?>
[8137]21
22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
[9348]24   skybox       = "Orxonox/skyBoxBasic"
[8137]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
29    <?lua for i = 1, 10, 1 do ?>
[8434]30      <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]31    <?lua end ?>
32
[8257]33
34
35      <SpaceShip
[8544]36   position               = "280, 150, 115"
37   orientation            = "0.5, 0.5, 0.5, 0.5"
[8382]38   hudtemplate            = "spaceshiphud"
39   camerapositiontemplate = "spaceshipassffcameras"
40   engine                 = "spaceshipassffengine"
[8257]41   spawnparticlesource    = "Orxonox/fairytwirl"
[8382]42   spawnparticleduration  = "3"
43   explosionchunks        = "6"
[8257]44
[8382]45   health            = "100"
46   maxhealth         = "200"
47   initialhealth     = "100"
[8257]48
[8382]49   primaryThrust     = "100;"
50   auxilaryThrust    = "30;"
51   rotationThrust    = "25;"
[8257]52
53   collisionType     = "dynamic"
[8382]54   mass              = "100"
55   linearDamping     = "0.7"
56   angularDamping    = "0.9999999"
[8257]57  >
58    <attached>
[8493]59        <DistanceTriggerBeacon name="bcnSpaceShip" />
60        <DockingTarget name="spaceShip" />
[8257]61
[8382]62      <Model position="0,0,0" yaw="90" pitch="-90" roll="0" scale="4" mesh="assff.mesh" />
63      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude="0.1" frequency="0.5" quadratic="1" />
64      <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" />
65      <DistanceTriggerBeacon name="PlayerDistanceTrigger" />
[8257]66    </attached>
67    <collisionShapes>
68      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
69      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
70      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
71      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
72      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
73      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
74    </collisionShapes>
75<?lua
76  include("includes/weaponSettingsAssff.oxi")
77?>
78  </SpaceShip>
79
[8382]80   
[8257]81
[8382]82
83    <Destroyer
[8434]84      position          = "100,150,100"
[8382]85      collisionType     = "dynamic"
86      mass              = "100000"
[8257]87      velocity          = "0,0,0"
[8382]88      angularDamping    = "0.9999999"
89      health            = "10000"
90      maxhealth         = "10000"
91      initialhealth     = "10000"
[8257]92    >
93
94      <attached>
95
[8434]96        <DistanceTriggerBeacon name="bcnDestroyer" />
97        <DockingTarget name="destroyer" />
[8257]98
[8382]99
[8544]100        <Dock orientation="0.5, 0.5, 0.5, 0.5">
101            <animations>
102                <MoveToDockingTarget target="destroyer" position="10,150,40" />
103            </animations>
104            <effects>
105                <DockToShip target="spaceShip" />
106            </effects>
107            <events>
108                <execute>
109                    <EventListener event="dockMe" />
110                </execute>
111            </events>
112            <attached>
[8560]113                <DistanceTrigger position="0,0,-200" distance="30" target="Pawn" beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" />
114                <Billboard position="0,0,-200" material="Examples/Flare" colour="1.0, 0, 0" />
[8544]115            </attached>
116        </Dock>
117
118
[8382]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" />
[8137]124        <?lua for i = 1, 100, 1 do ?>
125          <TeamSpawnPoint
[8382]126            team="0"
[8137]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"
[8382]129            spawnclass="SpaceShip"
130            pawndesign="spaceshipassff"
[8137]131          />
132        <?lua end ?>
133
134        <Model mesh="Carrier.mesh" scale="5" />
135        <Backlight
[8382]136          mainstate="activity"
137          active="false"
138          scale="0.4"
139          name="bltest"
[8137]140          position=" 7.6, 0, 6"
141          colour="0.2, 0.65, 1.0, 1.0"
[8382]142          width="15"
143          length="1500"
144          lifetime="2"
145          elements="50"
[8137]146          trailmaterial="Trail/backlighttrail"
[8382]147          turnontime="1"
148          turnofftime="1"
[8137]149          material="Flares/ThrusterFlare1"
150        />
[8382]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         />
[8137]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)?>"
[8382]179            amplitude="0.1"
180            frequency="0.5"
181            quadratic="1"
[8137]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)?>"
[8382]189            amplitude="0.1"
190            frequency="0.5"
191            quadratic="1"
[8137]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>
[8382]205
[8137]206    </Destroyer>
207
208  </Scene>
209</Level>
Note: See TracBrowser for help on using the repository browser.