Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7023 was 7008, checked in by dafrick, 14 years ago

Fixed a bug in pickups that caused the clone method of Pickup.h not to be called via SUPER.

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