Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2012merge/data/levels/pickups.oxw @ 9318

Last change on this file since 9318 was 9318, checked in by landauf, 12 years ago

removed PickupIdentifier for a number of reasons (I talked to Damian about it before)
a pickup now references the PickupRepresentation by name with the "representation" attribute

  • Property svn:eol-style set to native
File size: 9.5 KB
Line 
1<LevelInfo
2 name = "Pickups showcase"
3 description = "Level to test and showcase pickups."
4 tags = "test, showcase"
5 screenshot = "pickupsshowcase.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11?>
12
13<?lua
14  include("templates/spaceshipAssff.oxt")
15  include("templates/pickupRepresentationTemplates.oxt")
16  include("templates/lodInformation.oxt")
17?>
18
19<Level>
20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23  <?lua include("includes/notifications.oxi") ?>
24
25  <Scene
26    ambientlight = "0.8, 0.8, 0.8"
27    skybox       = "Orxonox/Starbox"
28  >
29
30    <?lua
31      include("includes/pickups.oxi")
32    ?>
33
34    <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" />
35    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
36
37    <!-- Shield pickups -->
38
39    <PickupSpawner position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
40      <pickup>
41        <ShieldPickup template=smallshieldpickup />
42      </pickup>
43    </PickupSpawner>
44
45    <PickupSpawner position="0,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
46      <pickup>
47        <ShieldPickup template=mediumshieldpickup />
48      </pickup>
49    </PickupSpawner>
50
51    <PickupSpawner position="25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
52      <pickup>
53        <ShieldPickup template=hugeshieldpickup />
54      </pickup>
55    </PickupSpawner>
56
57    <!-- Health pickups -->
58
59    <PickupSpawner position="-25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
60      <pickup>
61        <HealthPickup template=smallhealthpickup />
62      </pickup>
63    </PickupSpawner>
64
65    <PickupSpawner position="0,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
66      <pickup>
67        <HealthPickup template=mediumhealthpickup />
68      </pickup>
69    </PickupSpawner>
70
71    <PickupSpawner position="25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
72      <pickup>
73        <HealthPickup template=hugehealthpickup />
74      </pickup>
75    </PickupSpawner>
76
77    <PickupSpawner position="50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
78      <pickup>
79        <HealthPickup template=crazyhealthpickup />
80      </pickup>
81    </PickupSpawner>
82
83    <!-- Speed pickups -->
84
85    <PickupSpawner position="-25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
86      <pickup>
87        <SpeedPickup template=smallspeedpickup />
88      </pickup>
89    </PickupSpawner>
90
91    <PickupSpawner position="0,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
92      <pickup>
93        <SpeedPickup template=mediumspeedpickup />
94      </pickup>
95    </PickupSpawner>
96
97    <PickupSpawner position="25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
98      <pickup>
99        <SpeedPickup template=hugespeedpickup />
100      </pickup>
101    </PickupSpawner>
102
103    <PickupSpawner position="50,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
104      <pickup>
105        <SpeedPickup template=smalljumppickup />
106      </pickup>
107    </PickupSpawner>
108
109    <!-- Invisible pickups -->
110
111    <PickupSpawner position="-25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
112      <pickup>
113        <InvisiblePickup template=smallinvisiblepickup />
114      </pickup>
115    </PickupSpawner>
116
117    <PickupSpawner position="0,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
118      <pickup>
119        <InvisiblePickup template=mediuminvisiblepickup />
120      </pickup>
121    </PickupSpawner>
122
123    <PickupSpawner position="25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
124      <pickup>
125        <InvisiblePickup template=hugeinvisiblepickup />
126      </pickup>
127    </PickupSpawner>
128
129    <!-- Meta pickups -->
130
131    <PickupSpawner position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
132      <pickup>
133        <MetaPickup representation="use" metaType="use" />
134      </pickup>
135    </PickupSpawner>
136
137    <PickupSpawner position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
138      <pickup>
139        <MetaPickup representation="drop" metaType="drop" />
140      </pickup>
141    </PickupSpawner>
142
143    <PickupSpawner position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
144      <pickup>
145        <MetaPickup metaType="destroy" />
146      </pickup>
147    </PickupSpawner>
148
149    <PickupSpawner position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
150      <pickup>
151        <MetaPickup metaType="destroyCarrier" />
152      </pickup>
153    </PickupSpawner>
154
155    <!-- Pickup Collection pickups -->
156
157    <PickupSpawner position="-50,25,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
158      <pickup>
159        <PickupCollection template=triplehealthspeedinvisibilitypickup />
160      </pickup>
161    </PickupSpawner>
162   
163    <!-- Drone pickup -->
164   
165    <PickupSpawner position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
166      <pickup>
167        <DronePickup template=dronepickup />
168      </pickup>
169    </PickupSpawner>
170   
171    <!-- DamageBoost pickup -->
172   
173    <PickupSpawner position="-50,75,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
174      <pickup>
175        <DamageBoostPickup template=smalldamageboostpickup />
176      </pickup>
177    </PickupSpawner>
178   
179      <PickupSpawner position="-50,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
180      <pickup>
181        <DamageBoostPickup template=mediumdamageboostpickup />
182      </pickup>
183    </PickupSpawner>
184   
185      <PickupSpawner position="-50,125,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
186      <pickup>
187        <DamageBoostPickup template=largedamageboostpickup />
188      </pickup>
189    </PickupSpawner>
190   
191   
192    <!-- Other pickups -->
193
194    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
195    <PickupRepresentation
196      name = "MediumHealth"
197      pickupName = "Medium Health Pack"
198      pickupDescription = "Once used adds a medium amout of health to the ship."
199      spawnerTemplate = "mediumhealthpickupRepresentation"
200      inventoryRepresentation = "MediumHealth"
201    />
202
203    <PickupSpawner position="-50,0,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
204      <pickup>
205        <HealthPickup representation="MediumHealth" health=500 activationType=immediate healthRate=10 durationType=continuous />
206      </pickup>
207    </PickupSpawner>
208
209    <PickupSpawner position="-25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
210      <pickup>
211        <ShrinkPickup template ="smallshrinkpickup"/>
212      </pickup>
213    </PickupSpawner>
214
215    <PickupSpawner position="0,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
216      <pickup>
217        <ShrinkPickup template ="mediumshrinkpickup"/>
218      </pickup>
219    </PickupSpawner>
220
221    <PickupSpawner position="25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
222      <pickup>
223        <ShrinkPickup template ="hugeshrinkpickup"/>
224      </pickup>
225    </PickupSpawner>
226   
227    <!-- @Objects: 4 boxes (uncontrolled pawns) -->
228    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
229        <events>
230          <visibility>
231            <EventListener event="flying4" />
232          </visibility>
233        </events>
234        <attached>
235            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
236        </attached>
237        <collisionShapes>
238            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
239        </collisionShapes>
240    </Pawn>
241
242    <Pawn team=1 health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 3">
243        <events>
244          <visibility>
245            <EventListener event="flying4" />
246          </visibility>
247        </events>
248        <attached>
249           <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
250        </attached>
251        <collisionShapes>
252            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
253        </collisionShapes>
254    </Pawn>
255
256    <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 2">
257        <events>
258          <visibility>
259            <EventListener event="flying4" />
260          </visibility>
261        </events>
262        <attached>
263           <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
264        </attached>
265        <collisionShapes>
266            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
267        </collisionShapes>
268    </Pawn>
269
270    <Pawn health=30 position="0,400,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 1">
271        <events>
272          <visibility>
273            <EventListener event="flying4" />
274          </visibility>
275        </events>
276        <attached>
277            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
278        </attached>
279        <collisionShapes>
280           <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
281        </collisionShapes>
282    </Pawn>
283
284    <!--StaticEntity position="0,-200,0" direction="0,-1,0" collisionType=static mass=500 friction=0.01 >
285      <attached>
286        <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
287      </attached>
288      <collisionShapes>
289        <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
290      </collisionShapes>
291  </StaticEntity-->
292
293  </Scene>
294</Level>
Note: See TracBrowser for help on using the repository browser.