Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/pickups.oxw @ 7180

Last change on this file since 7180 was 7162, checked in by dafrick, 14 years ago

Significant structural changes to the pickup module. Lots of bugs found and fixed.
Introduced a new class CollectiblePickup (which is now the only kind a PickupCollection can consist of) to solve some issues cleanly.
MetaPickup received additional functionality. It can now also be set to either destroy all the pickups of a PickupCarrier or destroy the PickupCarrier itself. (This was done mainly for testing purposes)
I've done some extensive testing on the pickups, so they should really work now.

  • Property svn:eol-style set to native
File size: 5.7 KB
RevLine 
[6512]1<?lua
2  include("stats.oxo")
3  include("hudtemplates3.oxo")
4?>
5
6<?lua
7  include("templates/spaceship_assff.oxt")
8  include("templates/pickup_representation_templates.oxt")
[7036]9  include("templates/lodinformation.oxt")
[6512]10?>
11
12<Level
13 name         = "Sample"
14 description  = "Just a few tests"
15>
[7036]16  <templates>
17    <Template link=lodtemplate_default />
18  </templates>
[7083]19
[6512]20  <Scene
21    ambientlight = "0.8, 0.8, 0.8"
22    skybox       = "Orxonox/Starbox"
23  >
24
[7007]25    <?lua
26      include("includes/pickups.oxi")
27    ?>
28
[6712]29    <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" />
30    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
[6512]31
[6998]32    <!-- Shield pickups -->
[7007]33
34    <PickupSpawner position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
35      <pickup>
36        <ShieldPickup template=smallshieldpickup />
37      </pickup>
[6998]38    </PickupSpawner>
39
[7007]40    <PickupSpawner position="0,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
41      <pickup>
42        <ShieldPickup template=mediumshieldpickup />
43      </pickup>
[6998]44    </PickupSpawner>
45
[7007]46    <PickupSpawner position="25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
47      <pickup>
48        <ShieldPickup template=hugeshieldpickup />
49      </pickup>
[6998]50    </PickupSpawner>
[7007]51
[6712]52    <!-- Health pickups -->
[7007]53
54    <PickupSpawner position="-25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
55      <pickup>
56        <HealthPickup template=smallhealthpickup />
57      </pickup>
[6512]58    </PickupSpawner>
[7007]59
60    <PickupSpawner position="0,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
61      <pickup>
62        <HealthPickup template=mediumhealthpickup />
63      </pickup>
[6512]64    </PickupSpawner>
[7007]65
66    <PickupSpawner position="25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
67      <pickup>
68        <HealthPickup template=hugehealthpickup />
69      </pickup>
[6512]70    </PickupSpawner>
[7007]71
72    <PickupSpawner position="50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
73      <pickup>
74        <HealthPickup template=crazyhealthpickup />
75      </pickup>
[6512]76    </PickupSpawner>
[7007]77
[6712]78    <!-- Speed pickups -->
[7007]79
80    <PickupSpawner position="-25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
81      <pickup>
82        <SpeedPickup template=smallspeedpickup />
83      </pickup>
[6519]84    </PickupSpawner>
[6512]85
[7007]86    <PickupSpawner position="0,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
87      <pickup>
88        <SpeedPickup template=mediumspeedpickup />
89      </pickup>
[6711]90    </PickupSpawner>
[6512]91
[7007]92    <PickupSpawner position="25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
93      <pickup>
94        <SpeedPickup template=hugespeedpickup />
95      </pickup>
[6712]96    </PickupSpawner>
97
[7007]98    <PickupSpawner position="50,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
99      <pickup>
100        <SpeedPickup template=smalljumppickup />
101      </pickup>
[6712]102    </PickupSpawner>
[7007]103
[6712]104    <!-- Invisible pickups -->
[7007]105
106    <PickupSpawner position="-25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
107      <pickup>
108        <InvisiblePickup template=smallinvisiblepickup />
109      </pickup>
[6712]110    </PickupSpawner>
111
[7007]112    <PickupSpawner position="0,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
113      <pickup>
114        <InvisiblePickup template=mediuminvisiblepickup />
115      </pickup>
[6712]116    </PickupSpawner>
117
[7007]118    <PickupSpawner position="25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
119      <pickup>
120        <InvisiblePickup template=hugeinvisiblepickup />
121      </pickup>
[6712]122    </PickupSpawner>
[7007]123
[6712]124    <!-- Meta pickups -->
[7007]125
126    <PickupSpawner position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
127      <pickup>
128        <MetaPickup metaType="use" />
129      </pickup>
[6712]130    </PickupSpawner>
131
[7007]132    <PickupSpawner position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
133      <pickup>
134        <MetaPickup metaType="drop" />
135      </pickup>
[6712]136    </PickupSpawner>
[7007]137
[7162]138    <PickupSpawner position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
139      <pickup>
140        <MetaPickup metaType="destroy" />
141      </pickup>
142    </PickupSpawner>
143
144    <PickupSpawner position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
145      <pickup>
146        <MetaPickup metaType="destroyCarrier" />
147      </pickup>
148    </PickupSpawner>
149
[6712]150    <!-- Pickup Collection pickups -->
[7007]151
[7008]152    <PickupSpawner position="-50,25,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
[7007]153      <pickup>
154        <PickupCollection template=triplehealthspeedinvisibilitypickup />
155      </pickup>
[6901]156    </PickupSpawner>
[7038]157   
158    <!-- Drone pickup -->
159   
160    <PickupSpawner position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
161      <pickup>
162        <DronePickup template=dronepickup />
163      </pickup>
164    </PickupSpawner>
165   
166    <!-- Other pickups -->
[7007]167
[7008]168    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
[7007]169    <PickupRepresentation
170      pickupName = "Medium Health Pack"
171      pickupDescription = "Once used adds a medium amout of health to the ship."
172      spawnerTemplate = "mediumhealthpickupRepresentation"
173      inventoryRepresentation = "MediumHealth"
174    >
175      <pickup>
[7162]176        <HealthPickup health=500 activationType=immediate healthRate=10 durationType=continuous />
[7007]177      </pickup>
178    </PickupRepresentation>
179
[7008]180    <PickupSpawner position="-50,0,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
[7007]181      <pickup>
[7162]182        <HealthPickup health=500 activationType=immediate healthRate=10 durationType=continuous />
[7007]183      </pickup>
184    </PickupSpawner>
185
[6512]186  </Scene>
187</Level>
Note: See TracBrowser for help on using the repository browser.