Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9776 was 9776, checked in by agermann, 10 years ago

Hack - Spacestation Docking mit abdocken funktioniert.

File size: 8.4 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  include("templates/FPS.oxt")
24?>
25
26<Level
27  gametype = Deathmatch
28>
29  <templates>
30    <Template link=lodtemplate_default />
31  </templates>
32
33  <Scene
34    ambientlight = "0.8, 0.8, 0.8"
35    skybox       = "Orxonox/Starbox"
36    negativeWorldRange = "-100000, -100000, -100000"
37    positiveWorldRange = " 100000,  100000,  100000"
38    gravity      = "0,0,0"
39    hasPhysics   = true
40  >
41
42    <?lua
43      include("includes/pickups.oxi")
44    ?>
45
46    <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"/>
47    <SpawnPoint team=0 position="3200,0,0" lookat="2800,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
48
49    <StaticEntity position  = "2800,0,0" mass=10000 collisionType=static >
50      <attached>
51        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
52      </attached>
53      <collisionShapes>
54        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
55        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
56        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
57        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
58        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
59        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
60        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
61        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
62        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
63        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
64        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
65        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
66        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
67        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
68        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
69        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
70      </collisionShapes>
71    </StaticEntity>
72
73   <!-- Docking (Andocken) -->
74    <Dock position="2830,20,50" roll=0 yaw=0 >
75        <animations>
76            <MoveToDockingTarget target="destroyer" />
77        </animations>
78        <effects>
79            <DockToShip target="spaceShip" />
80        </effects>
81        <events>
82            <execute>
83                <EventListener event="dockMe" />
84            </execute>
85            <activity>
86                <EventListener event=notGameEnd />
87            </activity>
88        </events>
89        <attached>
90                    <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
91        <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 />
92        <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 />
93        <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 />
94        <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 />
95        <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 />
96        <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 />
97        <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 />
98        <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 />
99        <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 />
100            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
101                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
102            />
103        </attached>
104
105    </Dock>
106
107
108   
109    <!--SpaceShip
110        template            = "spaceshipcollateraldamage"
111        team                = "0"
112        position            = "2890,-40,6"
113        orientation         = "-0.14, 0.68, 0.68, 0.223"
114        lookat              = "0,0,0"
115        roll                = "180"
116        name                = "collateralDamage"
117        radarname           = "Collateral Damage" >
118      <attached>
119        <DockingTarget name="spaceShip" />
120        <DistanceTriggerBeacon name="bcnDestroyer" />
121        <DockingTarget name="destroyer" />
122      </attached>
123    </SpaceShip-->
124   
125<FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-1900,0" >
126      <attached>
127        <DockingTarget name="spaceShip" />
128        <DistanceTriggerBeacon name="bcnDestroyer" />
129        <DockingTarget name="destroyer" />
130      </attached>
131</FpsPlayer>
132
133<!-- Wuerfel -->
134
135  <StaticEntity position="0,-2000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
136      <attached>
137        <Model position="0,0,0" mesh="crate.mesh" scale3D="22,22,5" />
138       
139      </attached>
140      <collisionShapes>
141        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
142      </collisionShapes>
143  </StaticEntity>
144
145<!-- Schwerkraftfeld -->
146
147<ForceField position="2500,-92000,2500" mode="sphere" diameter="182000" velocity="-5000" />
148<ForceField position="2500,-92000,-2500" mode="sphere" diameter="182000" velocity="-5000" />
149<ForceField position="-2500,-92000,2500" mode="sphere" diameter="182000" velocity="-5000" />
150<ForceField position="-2500,-92000,-2500" mode="sphere" diameter="182000" velocity="-5000" />
151
152<!-- Ausgang -->
153
154  <StaticEntity position="120,-1950,120" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
155      <attached>
156        <Model position="0,0,0" mesh="cube.mesh" scale3D="4,4,4" />
157      </attached>
158      <collisionShapes>
159        <BoxCollisionShape position="0,0,0" halfExtents="4,4,4" />
160      </collisionShapes>
161  </StaticEntity>
162
163<DistanceTrigger name="ausgang" position="120,-1950,120"  target="Pawn" distance=50 stayActive="false" delay=0 />
164    <Script code="undock" onLoad="false">
165        <events>
166            <trigger>
167                <EventListener event=ausgang />
168            </trigger>
169        </events>
170    </Script>
171
172
173
174    <!-- triple large belt around the planet  -->
175    <?lua
176        dofile("includes/asteroidField.lua")
177        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
178    ?>
179    <?lua
180        dofile("includes/asteroidField.lua")
181        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
182    ?>
183    <?lua
184        dofile("includes/asteroidField.lua")
185        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
186    ?>
187
188    <Planet
189      position="15000,0,-1000"
190      scale="5000"
191      collisionType="dynamic"
192      linearDamping="0.8"
193      angularDamping="0"
194      mass="10000000"
195      pitch="0"
196      mesh="planets/ganymede.mesh"
197      atmosphere="atmosphere1"
198      rotationaxis="1,0,0"
199      rotationrate="1.0"
200      atmospheresize="80.0f"
201      imagesize="1024.0f"
202      collisiondamage = 2
203      enablecollisiondamage = true
204    >
205      <attached>
206        <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
207      </attached>
208      <collisionShapes>
209        <SphereCollisionShape radius="5000" position="0,0,0" />
210      </collisionShapes>
211    </Planet>
212
213  </Scene>
214
215</Level>
216
Note: See TracBrowser for help on using the repository browser.