Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/soundEffects/data/levels/docking.oxw @ 9715

Last change on this file since 9715 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

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