Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7051 was 7038, checked in by dafrick, 15 years ago

Updated pickups level and template and include file to properly include the DronePickup.
Additionally adjusted the level of output generated by the PickupSpawner.

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