Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/hoverHS15/data/levels/docking.oxw @ 10641

Last change on this file since 10641 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
Line 
1<!-- -->
2<LevelInfo
3 name = "Transporter"
4 description = "Level with a Transporter. Demonstrates the docking system."
5 tags = "showcase"
6 screenshot = "transporter.png"
7/>
8
9<?lua
10  include("HUDTemplates3.oxo")
11  include("stats.oxo")
12  include("templates/spaceshipAssff.oxt")
13  include("templates/lodInformation.oxt")
14?>
15
16<Level>
17  <templates>
18    <Template link="lodtemplate_default" />
19  </templates>
20  <?lua include("includes/notifications.oxi") ?>
21
22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
24   skybox       = "Orxonox/skyBoxBasic"
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() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" lookat="0,0,0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
31    <?lua end ?>
32
33
34
35      <SpaceShip
36   position               = "280, 150, 115"
37   orientation            = "0.5, 0.5, 0.5, 0.5"
38   hudtemplate            = "spaceshiphud"
39   camerapositiontemplate = "spaceshipassffcameras"
40   engine                 = "spaceshipassffengine"
41   spawnparticlesource    = "Orxonox/fairytwirl"
42   spawnparticleduration  = "3"
43   explosionchunks        = "6"
44
45   health            = "100"
46   maxhealth         = "200"
47   initialhealth     = "100"
48
49   primaryThrust     = "100;"
50   auxilaryThrust    = "30;"
51   rotationThrust    = "25;"
52
53   collisionType     = "dynamic"
54   mass              = "100"
55   linearDamping     = "0.7"
56   angularDamping    = "0.9999999"
57  >
58    <attached>
59        <DistanceTriggerBeacon name="bcnSpaceShip" />
60        <DockingTarget name="spaceShip" />
61
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" />
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
80   
81
82
83    <Destroyer
84      position          = "100,150,100"
85      collisionType     = "dynamic"
86      mass              = "100000"
87      velocity          = "0,0,0"
88      angularDamping    = "0.9999999"
89      health            = "10000"
90      maxhealth         = "10000"
91      initialhealth     = "10000"
92    >
93
94      <attached>
95
96        <DistanceTriggerBeacon name="bcnDestroyer" />
97        <DockingTarget name="destroyer" />
98
99
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>
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" />
115            </attached>
116        </Dock>
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.