Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9241 was 8643, checked in by landauf, 14 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
RevLine 
[8137]1<LevelInfo
2 name = "Transporter"
[8560]3 description = "Level with a Transporter. Demonstrates 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>
[8637]21  <?lua include("includes/notifications.oxi") ?>
[8137]22
23  <Scene
24   ambientlight = "0.5, 0.5, 0.5"
25   skybox       = "Orxonox/skypanoramagen1"
26  >
27
[8382]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" />
[8137]29
30    <?lua for i = 1, 10, 1 do ?>
[8434]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" />
[8137]32    <?lua end ?>
33
[8257]34
35
36      <SpaceShip
[8544]37   position               = "280, 150, 115"
38   orientation            = "0.5, 0.5, 0.5, 0.5"
[8382]39   hudtemplate            = "spaceshiphud"
40   camerapositiontemplate = "spaceshipassffcameras"
41   engine                 = "spaceshipassffengine"
[8257]42   spawnparticlesource    = "Orxonox/fairytwirl"
[8382]43   spawnparticleduration  = "3"
44   explosionchunks        = "6"
[8257]45
[8382]46   health            = "100"
47   maxhealth         = "200"
48   initialhealth     = "100"
[8257]49
[8382]50   primaryThrust     = "100;"
51   auxilaryThrust    = "30;"
52   rotationThrust    = "25;"
[8257]53
54   collisionType     = "dynamic"
[8382]55   mass              = "100"
56   linearDamping     = "0.7"
57   angularDamping    = "0.9999999"
[8257]58  >
59    <attached>
[8493]60        <DistanceTriggerBeacon name="bcnSpaceShip" />
61        <DockingTarget name="spaceShip" />
[8257]62
[8382]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" />
[8257]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
[8382]81   
[8257]82
[8382]83
84    <Destroyer
[8434]85      position          = "100,150,100"
[8382]86      collisionType     = "dynamic"
87      mass              = "100000"
[8257]88      velocity          = "0,0,0"
[8382]89      angularDamping    = "0.9999999"
90      health            = "10000"
91      maxhealth         = "10000"
92      initialhealth     = "10000"
[8257]93    >
94
95      <attached>
96
[8434]97        <DistanceTriggerBeacon name="bcnDestroyer" />
98        <DockingTarget name="destroyer" />
[8257]99
[8382]100
[8544]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>
[8560]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" />
[8544]116            </attached>
117        </Dock>
118
119
[8382]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" />
[8137]125        <?lua for i = 1, 100, 1 do ?>
126          <TeamSpawnPoint
[8382]127            team="0"
[8137]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"
[8382]130            spawnclass="SpaceShip"
131            pawndesign="spaceshipassff"
[8137]132          />
133        <?lua end ?>
134
135        <Model mesh="Carrier.mesh" scale="5" />
136        <Backlight
[8382]137          mainstate="activity"
138          active="false"
139          scale="0.4"
140          name="bltest"
[8137]141          position=" 7.6, 0, 6"
142          colour="0.2, 0.65, 1.0, 1.0"
[8382]143          width="15"
144          length="1500"
145          lifetime="2"
146          elements="50"
[8137]147          trailmaterial="Trail/backlighttrail"
[8382]148          turnontime="1"
149          turnofftime="1"
[8137]150          material="Flares/ThrusterFlare1"
151        />
[8382]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         />
[8137]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)?>"
[8382]180            amplitude="0.1"
181            frequency="0.5"
182            quadratic="1"
[8137]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)?>"
[8382]190            amplitude="0.1"
191            frequency="0.5"
192            quadratic="1"
[8137]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>
[8382]206
[8137]207    </Destroyer>
208
209  </Scene>
210</Level>
Note: See TracBrowser for help on using the repository browser.