Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2011/data/levels/docking.oxw @ 9215

Last change on this file since 9215 was 8977, checked in by smerkli, 13 years ago

Merged menue

  • 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."
[8977]4 tags = "showcase"
5 screenshot = "transporter.png"
[8137]6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
[8977]15<Level>
[8137]16  <templates>
[8382]17    <Template link="lodtemplate_default" />
[8137]18  </templates>
[8637]19  <?lua include("includes/notifications.oxi") ?>
[8137]20
21  <Scene
22   ambientlight = "0.5, 0.5, 0.5"
23   skybox       = "Orxonox/skypanoramagen1"
24  >
25
[8382]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" />
[8137]27
28    <?lua for i = 1, 10, 1 do ?>
[8434]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" />
[8137]30    <?lua end ?>
31
[8257]32
33
34      <SpaceShip
[8544]35   position               = "280, 150, 115"
36   orientation            = "0.5, 0.5, 0.5, 0.5"
[8382]37   hudtemplate            = "spaceshiphud"
38   camerapositiontemplate = "spaceshipassffcameras"
39   engine                 = "spaceshipassffengine"
[8257]40   spawnparticlesource    = "Orxonox/fairytwirl"
[8382]41   spawnparticleduration  = "3"
42   explosionchunks        = "6"
[8257]43
[8382]44   health            = "100"
45   maxhealth         = "200"
46   initialhealth     = "100"
[8257]47
[8382]48   primaryThrust     = "100;"
49   auxilaryThrust    = "30;"
50   rotationThrust    = "25;"
[8257]51
52   collisionType     = "dynamic"
[8382]53   mass              = "100"
54   linearDamping     = "0.7"
55   angularDamping    = "0.9999999"
[8257]56  >
57    <attached>
[8493]58        <DistanceTriggerBeacon name="bcnSpaceShip" />
59        <DockingTarget name="spaceShip" />
[8257]60
[8382]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" />
[8257]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
[8382]79   
[8257]80
[8382]81
82    <Destroyer
[8434]83      position          = "100,150,100"
[8382]84      collisionType     = "dynamic"
85      mass              = "100000"
[8257]86      velocity          = "0,0,0"
[8382]87      angularDamping    = "0.9999999"
88      health            = "10000"
89      maxhealth         = "10000"
90      initialhealth     = "10000"
[8257]91    >
92
93      <attached>
94
[8434]95        <DistanceTriggerBeacon name="bcnDestroyer" />
96        <DockingTarget name="destroyer" />
[8257]97
[8382]98
[8544]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>
[8560]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" />
[8544]114            </attached>
115        </Dock>
116
117
[8382]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" />
[8137]123        <?lua for i = 1, 100, 1 do ?>
124          <TeamSpawnPoint
[8382]125            team="0"
[8137]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"
[8382]128            spawnclass="SpaceShip"
129            pawndesign="spaceshipassff"
[8137]130          />
131        <?lua end ?>
132
133        <Model mesh="Carrier.mesh" scale="5" />
134        <Backlight
[8382]135          mainstate="activity"
136          active="false"
137          scale="0.4"
138          name="bltest"
[8137]139          position=" 7.6, 0, 6"
140          colour="0.2, 0.65, 1.0, 1.0"
[8382]141          width="15"
142          length="1500"
143          lifetime="2"
144          elements="50"
[8137]145          trailmaterial="Trail/backlighttrail"
[8382]146          turnontime="1"
147          turnofftime="1"
[8137]148          material="Flares/ThrusterFlare1"
149        />
[8382]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         />
[8137]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)?>"
[8382]178            amplitude="0.1"
179            frequency="0.5"
180            quadratic="1"
[8137]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)?>"
[8382]188            amplitude="0.1"
189            frequency="0.5"
190            quadratic="1"
[8137]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>
[8382]204
[8137]205    </Destroyer>
206
207  </Scene>
208</Level>
Note: See TracBrowser for help on using the repository browser.