Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spacestationentry/data/levels/dockingToASpaceStation.oxw @ 9714

Last change on this file since 9714 was 9714, checked in by jo, 11 years ago

Creating new, clean level to test the new docking approach.

File size: 6.9 KB
Line 
1<!--  -->
2<LevelInfo
3 name = "Docking to a Space Station"
4 description = "Docking into a spacestation."
5 tags = "showcase"
6 screenshot = "emptylevel.png"
7/>
8
9<?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("templates/lodInformation.oxt")
13  include("templates/pickupRepresentationTemplates.oxt")
14?>
15
16<?lua
17  include("templates/spaceshipAssff.oxt")
18  include("templates/spaceshipPirate.oxt")
19  include("templates/spaceshipEscort.oxt")
20  include("templates/bigship.oxt")
21  include("templates/spaceshipTurret.oxt")
22  include("templates/spaceshipCollateralDamage.oxt")
23?>
24
25<Level
26  gametype = Deathmatch
27>
28  <templates>
29    <Template link=lodtemplate_default />
30  </templates>
31  <?lua include("includes/notifications.oxi") ?>
32
33  <NotificationQueueCEGUI
34    name="narrative"
35    targets="simpleNotification"
36    size=1
37    displayTime=30
38    position="0.2, 0, 0.1, 0"
39    fontSize="24"
40    fontColor="0.3, 1, 0.2, 0.8"
41    alignment="HorzCentred"
42    displaySize="0.6, 0, 0, 0"
43    />
44
45  <Scene
46    ambientlight = "0.8, 0.8, 0.8"
47    skybox       = "Orxonox/skyBoxMoreNebula"
48  > <!-- Orxonox/Starbox -->
49    <?lua
50      include("includes/pickups.oxi")
51    ?>
52
53    <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"/>
54    <SpawnPoint team=0 position="3200,0,0" lookat="2800,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
55
56    <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static >
57      <attached>
58        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
59      </attached>
60      <collisionShapes>
61        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
62        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
63        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
64        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
65        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
66        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
67        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
68        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
69        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
70        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
71        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
72        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
73        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
74        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
75        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
76        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
77      </collisionShapes>
78    </StaticEntity>
79   
80   
81   
82
83   <!-- Docking -->
84    <Dock position="2830,20,50" roll=0 yaw=0 >
85        <animations>
86            <MoveToDockingTarget target="destroyer" />
87        </animations>
88        <effects>
89            <DockToShip target="spaceShip" />
90        </effects>
91        <events>
92            <execute>
93                <EventListener event="dockMe" />
94            </execute>
95            <activity>
96                <EventListener event=notGameEnd />
97            </activity>
98        </events>
99        <attached>
100                    <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
101        <BlinkingBillboard position="10,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
102        <BlinkingBillboard position="20,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
103        <BlinkingBillboard position="30,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
104        <BlinkingBillboard position="0,10,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
105        <BlinkingBillboard position="0,20,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
106        <BlinkingBillboard position="0,30,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
107        <BlinkingBillboard position="0,0,10" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
108        <BlinkingBillboard position="0,0,20" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
109        <BlinkingBillboard position="0,0,30" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
110            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
111                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
112            />
113        </attached>
114
115    </Dock>
116    <SpaceShip
117        template            = "spaceshipcollateraldamage"
118        team                = "0"
119        position            = "2890,-40,6"
120        orientation         = "-0.14, 0.68, 0.68, 0.223"
121        lookat              = "0,0,0"
122        roll                = "180"
123        name                = "collateralDamage"
124        radarname           = "Collateral Damage" >
125        <!--
126        pitch               = "90"
127        yaw                 = "0"-->
128      <attached>
129        <DockingTarget name="spaceShip" />
130        <DistanceTriggerBeacon name="bcnDestroyer" />
131        <DockingTarget name="destroyer" />
132      </attached>
133    </SpaceShip>
134
135    <!-- triple large belt around the planet  -->
136    <?lua
137        dofile("includes/asteroidField.lua")
138        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
139    ?>
140    <?lua
141        dofile("includes/asteroidField.lua")
142        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
143    ?>
144    <?lua
145        dofile("includes/asteroidField.lua")
146        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
147    ?>
148
149    <Planet
150      position="15000,0,-1000"
151      scale="5000"
152      collisionType="dynamic"
153      linearDamping="0.8"
154      angularDamping="0"
155      mass="10000000"
156      pitch="0"
157      mesh="planets/ganymede.mesh"
158      atmosphere="atmosphere1"
159      rotationaxis="1,0,0"
160      rotationrate="1.0"
161      atmospheresize="80.0f"
162      imagesize="1024.0f"
163      collisiondamage = 2
164      enablecollisiondamage = true
165    >
166      <attached>
167        <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
168      </attached>
169      <collisionShapes>
170        <SphereCollisionShape radius="5000" position="0,0,0" />
171      </collisionShapes>
172    </Planet>
173
174  </Scene>
175</Level>
176
Note: See TracBrowser for help on using the repository browser.