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 | > |
---|
37 | <?lua |
---|
38 | include("includes/pickups.oxi") |
---|
39 | ?> |
---|
40 | |
---|
41 | <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"/> |
---|
42 | <SpawnPoint team=0 position="3200,0,0" lookat="2800,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort /> |
---|
43 | |
---|
44 | <StaticEntity position = "2800,0,0" mass=10000 collisionType=static > |
---|
45 | <attached> |
---|
46 | <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 /> |
---|
47 | </attached> |
---|
48 | <collisionShapes> |
---|
49 | <BoxCollisionShape position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes --> |
---|
50 | <BoxCollisionShape position="290,0,-480" halfExtents="115,100,245" yaw=-120 /> |
---|
51 | <BoxCollisionShape position="290,0,480" halfExtents="115,100,245" yaw=-240 /> |
---|
52 | <BoxCollisionShape position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections --> |
---|
53 | <BoxCollisionShape position="140,0,-240" halfExtents="163,50,50" yaw=-120 /> |
---|
54 | <BoxCollisionShape position="140,0,240" halfExtents="163,50,50" yaw=-240 /> |
---|
55 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower --> |
---|
56 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-120 /> |
---|
57 | <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-240 /> |
---|
58 | <BoxCollisionShape position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one--> |
---|
59 | <BoxCollisionShape position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs --> |
---|
60 | <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=-30 /> |
---|
61 | <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=30 /> |
---|
62 | <BoxCollisionShape position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs --> |
---|
63 | <BoxCollisionShape position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 /> |
---|
64 | <BoxCollisionShape position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 /> |
---|
65 | </collisionShapes> |
---|
66 | </StaticEntity> |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | <!-- Docking --> |
---|
72 | <Dock position="2830,20,50" roll=0 yaw=0 > |
---|
73 | <animations> |
---|
74 | <MoveToDockingTarget target="destroyer" /> |
---|
75 | </animations> |
---|
76 | <effects> |
---|
77 | <DockToShip target="spaceShip" /> |
---|
78 | </effects> |
---|
79 | <events> |
---|
80 | <execute> |
---|
81 | <EventListener event="dockMe" /> |
---|
82 | </execute> |
---|
83 | <activity> |
---|
84 | <EventListener event=notGameEnd /> |
---|
85 | </activity> |
---|
86 | </events> |
---|
87 | <attached> |
---|
88 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 /> |
---|
89 | <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 /> |
---|
90 | <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 /> |
---|
91 | <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 /> |
---|
92 | <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 /> |
---|
93 | <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 /> |
---|
94 | <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 /> |
---|
95 | <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 /> |
---|
96 | <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 /> |
---|
97 | <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 /> |
---|
98 | <DistanceTrigger position="0,0,0" distance="200" target="Pawn" |
---|
99 | beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" |
---|
100 | /> |
---|
101 | </attached> |
---|
102 | |
---|
103 | </Dock> |
---|
104 | |
---|
105 | <!--SpaceShip |
---|
106 | template = "spaceshipcollateraldamage" |
---|
107 | team = "0" |
---|
108 | position = "2890,-40,6" |
---|
109 | orientation = "-0.14, 0.68, 0.68, 0.223" |
---|
110 | lookat = "0,0,0" |
---|
111 | roll = "180" |
---|
112 | name = "collateralDamage" |
---|
113 | radarname = "Collateral Damage" > |
---|
114 | <attached> |
---|
115 | <DockingTarget name="spaceShip" /> |
---|
116 | <DistanceTriggerBeacon name="bcnDestroyer" /> |
---|
117 | <DockingTarget name="destroyer" /> |
---|
118 | </attached> |
---|
119 | </SpaceShip--> |
---|
120 | |
---|
121 | <FpsPlayer template = "fps" radarname = "First Person Player" > |
---|
122 | <attached> |
---|
123 | <DockingTarget name="spaceShip" /> |
---|
124 | <DistanceTriggerBeacon name="bcnDestroyer" /> |
---|
125 | <DockingTarget name="destroyer" /> |
---|
126 | </attached> |
---|
127 | </FpsPlayer> |
---|
128 | |
---|
129 | <!-- triple large belt around the planet --> |
---|
130 | <?lua |
---|
131 | dofile("includes/asteroidField.lua") |
---|
132 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1) |
---|
133 | ?> |
---|
134 | <?lua |
---|
135 | dofile("includes/asteroidField.lua") |
---|
136 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1) |
---|
137 | ?> |
---|
138 | <?lua |
---|
139 | dofile("includes/asteroidField.lua") |
---|
140 | asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1) |
---|
141 | ?> |
---|
142 | |
---|
143 | <Planet |
---|
144 | position="15000,0,-1000" |
---|
145 | scale="5000" |
---|
146 | collisionType="dynamic" |
---|
147 | linearDamping="0.8" |
---|
148 | angularDamping="0" |
---|
149 | mass="10000000" |
---|
150 | pitch="0" |
---|
151 | mesh="planets/ganymede.mesh" |
---|
152 | atmosphere="atmosphere1" |
---|
153 | rotationaxis="1,0,0" |
---|
154 | rotationrate="1.0" |
---|
155 | atmospheresize="80.0f" |
---|
156 | imagesize="1024.0f" |
---|
157 | collisiondamage = 2 |
---|
158 | enablecollisiondamage = true |
---|
159 | > |
---|
160 | <attached> |
---|
161 | <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> |
---|
162 | </attached> |
---|
163 | <collisionShapes> |
---|
164 | <SphereCollisionShape radius="5000" position="0,0,0" /> |
---|
165 | </collisionShapes> |
---|
166 | </Planet> |
---|
167 | |
---|
168 | </Scene> |
---|
169 | </Level> |
---|
170 | |
---|