Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/docking.oxw @ 8970

Last change on this file since 8970 was 8643, checked in by landauf, 13 years ago

set svn:eol-style to native, removed svn:executable property. no code changes.

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