Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Erstellung einer neuen Funktion execute2 in Dock.cc um ein Ausdocken zu realisieren.

File size: 7.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  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       
86            <activity>
87                <EventListener event=notGameEnd />
88            </activity>
89        </events>
90        <attached>
91            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
92            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
93                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
94            />
95        </attached>
96
97    </Dock>
98
99   <!-- Docking (Ausdocken)-->
100    <Dock position="100,-1950,100" roll=0 yaw=0 >
101        <animations>
102            <MoveToDockingTarget target="spaceShip" />
103        </animations>
104        <effects>
105            <DockToShip target="destroyer" />
106        </effects>
107        <events>
108            <execute>
109                <EventListener event="undockMe" />
110            </execute>
111       
112            <activity>
113                <EventListener event=notGameEnd />
114            </activity>
115        </events>
116        <attached>
117            <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
118            <DistanceTrigger position="0,0,0" distance="5" target="Pawn"
119                beaconMode="exclude" targetname="bcnDestroyer" name="undockMe"
120            />
121        </attached>
122
123    </Dock>
124
125       
126
127   
128    <!--SpaceShip
129        template            = "spaceshipcollateraldamage"
130        team                = "0"
131        position            = "2890,-40,6"
132        orientation         = "-0.14, 0.68, 0.68, 0.223"
133        lookat              = "0,0,0"
134        roll                = "180"
135        name                = "collateralDamage"
136        radarname           = "Collateral Damage" >
137      <attached>
138        <DockingTarget name="spaceShip" />
139        <DistanceTriggerBeacon name="bcnDestroyer" />
140        <DockingTarget name="destroyer" />
141      </attached>
142    </SpaceShip-->
143   
144<FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-1900,0" >
145      <attached>
146        <DockingTarget name="spaceShip" />
147        <DistanceTriggerBeacon name="bcnDestroyer" />
148        <DockingTarget name="destroyer" />
149      </attached>
150</FpsPlayer>
151
152<!-- Wuerfel -->
153
154  <StaticEntity position="0,-2000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
155      <attached>
156        <Model position="0,0,0" mesh="crate.mesh" scale3D="22,22,5" />
157       
158      </attached>
159      <collisionShapes>
160        <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" />
161      </collisionShapes>
162  </StaticEntity>
163
164<!-- Schwerkraftfeld -->
165
166<ForceField position="2500,-92000,2500" mode="sphere" diameter="184000" velocity="-5000" />
167<ForceField position="2500,-92000,-2500" mode="sphere" diameter="184000" velocity="-5000" />
168<ForceField position="-2500,-92000,2500" mode="sphere" diameter="184000" velocity="-5000" />
169<ForceField position="-2500,-92000,-2500" mode="sphere" diameter="184000" velocity="-5000" />
170
171<!-- Ausgang Trigger Falsch
172
173  <StaticEntity position="100,-1950,100" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
174      <attached>
175        <Model position="0,0,0" mesh="cube.mesh" scale3D="4,4,4" />
176      </attached>
177      <collisionShapes>
178        <BoxCollisionShape position="0,0,0" halfExtents="4,4,4" />
179      </collisionShapes>
180  </StaticEntity>
181
182<DistanceTrigger name="ausgang" position="100,-1950,100"  target="Pawn" distance=50 stayActive="false" delay=0 />
183    <Script code="undock" onLoad="false">
184        <events>
185            <trigger>
186                <EventListener event=ausgang />
187            </trigger>
188        </events>
189    </Script>
190-->
191
192
193
194    <!-- triple large belt around the planet  -->
195    <?lua
196        dofile("includes/asteroidField.lua")
197        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
198    ?>
199    <?lua
200        dofile("includes/asteroidField.lua")
201        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
202    ?>
203    <?lua
204        dofile("includes/asteroidField.lua")
205        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
206    ?>
207
208    <Planet
209      position="15000,0,-1000"
210      scale="5000"
211      collisionType="dynamic"
212      linearDamping="0.8"
213      angularDamping="0"
214      mass="10000000"
215      pitch="0"
216      mesh="planets/ganymede.mesh"
217      atmosphere="atmosphere1"
218      rotationaxis="1,0,0"
219      rotationrate="1.0"
220      atmospheresize="80.0f"
221      imagesize="1024.0f"
222      collisiondamage = 2
223      enablecollisiondamage = true
224    >
225      <attached>
226        <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
227      </attached>
228      <collisionShapes>
229        <SphereCollisionShape radius="5000" position="0,0,0" />
230      </collisionShapes>
231    </Planet>
232
233  </Scene>
234
235</Level>
236
Note: See TracBrowser for help on using the repository browser.