Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/presentationFS11.oxw @ 8570

Last change on this file since 8570 was 8570, checked in by dafrick, 13 years ago

Adding ring explosion particle effect to presentation level.

File size: 7.4 KB
Line 
1<LevelInfo
2 name = "Presentation FS11"
3 description = "Presentation level spring semester '11"
4 tags = "test"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11?>
12
13<?lua
14  include("templates/spaceshipAssff.oxt")
15  include("templates/spaceshipPirate.oxt")
16?>
17
18<?lua
19include("templates/pickupRepresentationTemplates.oxt")
20?>
21
22<Level
23 name         = "Sample"
24 description  = "Just a few tests"
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29
30  <Scene
31    ambientlight = "0.8, 0.8, 0.8"
32    skybox       = "Orxonox/skyboxempty"
33  >
34
35    <?lua
36      include("includes/pickups.oxi")
37    ?>
38
39    <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"/>
40    <SpawnPoint team=0 position="0,0,0" lookat="2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
41
42
43    <!-- PICKUPS -->
44    <PickupSpawner position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
45      <pickup>
46        <DronePickup template=dronepickup />
47      </pickup>
48    </PickupSpawner>
49
50    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp" lifetime=500 loop=1 startdelay=2.5 />
51    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp2" lifetime=500 loop=1 startdelay=2 />
52    <ParticleSpawner position="-50,50,-125" source="Orxonox/RingExp3" lifetime=500 loop=1 startdelay=2 />
53
54   
55    <!-- BOUNDARIES AND PORTALS -->
56   
57    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="0,0,0"/>
58
59    <Template name=PortalDefault>
60        <PortalEndPoint>
61            <attached>
62                <Billboard material="Portals/Default" />
63            </attached>
64        </PortalEndPoint>
65    </Template>
66
67    <PortalEndPoint position="350,0,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/>
68    <PortalEndPoint position="-90300,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/>
69    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="-90000,0,0"/>
70    <PortalEndPoint position="-350,0,0" id="3" distance="40" target="MobileEntity" design="PortalDefault"/>
71    <PortalEndPoint position="0,10300,0" id="4" distance="40" target="MobileEntity" design="PortalDefault"/>
72    <SpaceBoundaries warnDistance="1" maxDistance="400" showDistance="300" healthDecrease="0.1" position="0,10000,0"/>
73
74    <PortalLink fromID="1" toID="2" />
75    <PortalLink fromID="2" toID="1" />
76    <PortalLink fromID="3" toID="4" />
77    <PortalLink fromID="4" toID="3" />
78
79
80    <!-- MODELS, DEBRIS, ETC -->
81
82    <Planet
83      position="-5000,0,0"
84      scale="400"
85      collisionType="dynamic"
86      linearDamping="0.8"
87      angularDamping="0"
88      mass="10000000"
89      pitch="0"
90      mesh="planets/muunilinst.mesh"
91      atmosphere="atmosphere1"
92      rotationaxis="1,0,0"
93      rotationrate="1.0"
94      atmospheresize="300.0f"
95      imagesize="1024.0f"
96    >
97      <collisionShapes>
98        <SphereCollisionShape radius="400" position="0,0,0" />
99      </collisionShapes>
100    </Planet>
101
102    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
103    <Planet
104      position="70500,0,0"
105      scale="63000"
106      collisionType="dynamic"
107      linearDamping="0.8"
108      angularDamping="0"
109      mass="5.9e21"
110      pitch="-90"
111      mesh="planets/earth.mesh"
112      atmosphere="atmosphere1"
113      rotationaxis="0,1,0"
114      rotationrate="0.2"
115      atmospheresize="80.0f"
116      imagesize="1024.0f"
117      collisiondamage = 2
118      enablecollisiondamage = true
119    >
120      <attached>
121        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
122      </attached>
123      <collisionShapes>
124        <SphereCollisionShape radius="63000" position="0,0,0" />
125      </collisionShapes>
126    </Planet>
127
128    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
129    <Planet
130      position="-30000,0,0"
131      scale="8000"
132      collisionType="dynamic"
133      linearDamping="0.8"
134      angularDamping="0"
135      mass="7.36e19"
136      pitch="0"
137      mesh="planets/moon.mesh"
138      atmosphere="atmosphere1"
139      rotationaxis="0,1,0"
140      rotationrate="0.2"
141      atmospheresize="0.0f"
142      imagesize="1024.0f"
143      collisiondamage = 2
144      enablecollisiondamage = true
145    >
146      <attached>
147        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
148      </attached>
149      <collisionShapes>
150        <SphereCollisionShape radius="17370" position="0,0,0" />
151      </collisionShapes>
152    </Planet>
153
154    <MovableEntity position="0,0,0">
155      <attached>
156        <Billboard position="-5000,0,0" material="Examples/Flare" colour="0, 0, 1" scale=10/>
157      </attached>
158    </MovableEntity>
159
160    <Destroyer
161      position          = "100,150,0"
162      collisionType     = dynamic
163      mass              = 100000
164      velocity          = "0,0,0"
165      angularDamping    = 0.9999999
166      health            = 10000
167      maxhealth         = 10000
168      initialhealth     = 10000
169    >
170
171      <attached>
172        <Model mesh="Carrier.mesh" scale="5" />
173        <Backlight
174          mainstate=activity
175          active=false
176          scale=0.4
177          name=bltest
178          position=" 7.6, 0, 6"
179          colour="0.2, 0.65, 1.0, 1.0"
180          width=15
181          length=1500
182          lifetime=2
183          elements=50
184          trailmaterial="Trail/backlighttrail"
185          turnontime=1
186          turnofftime=1
187          material="Flares/ThrusterFlare1"
188        />
189        <?lua for i=0,8,1 do ?>
190          <BlinkingBillboard
191            position="<?lua print(200-270/8*i)?> ,15,2"
192            material="Examples/Flare"
193            colour="1.0, 0.5, 0.3"
194            phase="<?lua print(-360/8*i)?>"
195            amplitude=0.1
196            frequency=0.5
197            quadratic=1
198          />
199
200          <BlinkingBillboard
201            position="<?lua print(200-270/8*i)?>,-15,2"
202            material="Examples/Flare"
203            colour="1.0, 0.5, 0.3"
204            phase="<?lua print(-360/8*i)?>"
205            amplitude=0.1
206            frequency=0.5
207            quadratic=1
208          />
209        <?lua end ?>
210
211        <Backlight
212          scale=1
213          position=" 169, 75, -15"
214          colour="1, 0.85, 0.5, 0.5"
215          width=40
216          length=1000
217          lifetime=5
218          elements=15
219          trailmaterial="Trail/backlighttrail"
220          material="Examples/Flare"
221        />
222        <Backlight
223          scale=1
224          position=" 169, -75, -15"
225          colour="1, 0.85, 0.5, 0.5"
226          width=40
227          length=1000
228          lifetime=5
229          elements=15
230          trailmaterial="Trail/backlighttrail"
231          material="Examples/Flare" />
232      </attached>
233      <collisionShapes>
234        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
235        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
236        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
237        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
238        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
239        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
240        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
241      </collisionShapes>
242    </Destroyer>
243
244   
245  </Scene>
246</Level>
247
Note: See TracBrowser for help on using the repository browser.