Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cpp11/data/levels/pickups.oxw @ 10562

Last change on this file since 10562 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

  • Property svn:eol-style set to native
File size: 8.1 KB
Line 
1<!-- -->
2<LevelInfo
3 name = "Pickups showcase"
4 description = "Level to test and showcase pickups."
5 tags = "test, showcase"
6 screenshot = "pickupsshowcase.png"
7/>
8
9<?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12?>
13
14<?lua
15  include("templates/spaceshipAssff.oxt")
16  include("templates/pickupRepresentationTemplates.oxt")
17  include("templates/lodInformation.oxt")
18?>
19
20<Level>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/Starbox"
29  >
30
31    <?lua
32      include("includes/pickups.oxi")
33    ?>
34
35    <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" />
36    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
37
38    <!-- Shield pickups -->
39
40    <PickupSpawner pickup=smallshieldpickup position="-25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
41    <PickupSpawner pickup=mediumshieldpickup position="0,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
42    <PickupSpawner pickup=hugeshieldpickup position="25,-25,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
43
44    <!-- Health pickups -->
45
46    <PickupSpawner pickup=smallhealthpickup position="-25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
47    <PickupSpawner pickup=mediumhealthpickup position="0,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
48    <PickupSpawner pickup=hugehealthpickup position="25,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
49    <PickupSpawner pickup=crazyhealthpickup position="50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
50
51    <!-- Speed pickups -->
52
53    <PickupSpawner pickup=smallspeedpickup position="-25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
54    <PickupSpawner pickup=mediumspeedpickup position="0,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
55    <PickupSpawner pickup=hugespeedpickup position="25,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
56    <PickupSpawner pickup=smalljumppickup position="50,25,-125" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
57
58    <!-- Invisible pickups -->
59
60    <PickupSpawner pickup=smallinvisiblepickup position="-25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
61    <PickupSpawner pickup=mediuminvisiblepickup position="0,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
62    <PickupSpawner pickup=hugeinvisiblepickup position="25,50,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
63
64    <!-- Meta pickups -->
65
66    <Template name=usemetapickup baseclass=MetaPickup>
67      <MetaPickup representation="use" metaType="use" />
68    </Template>
69   
70    <Template name=dropmetapickup baseclass=MetaPickup>
71      <MetaPickup representation="drop" metaType="drop" />
72    </Template>
73   
74    <Template name=destroymetapickup baseclass=MetaPickup>
75      <MetaPickup metaType="destroy" />
76    </Template>
77   
78    <Template name=destroycarriermetapickup baseclass=MetaPickup>
79      <MetaPickup metaType="destroyCarrier" />
80    </Template>
81   
82    <PickupSpawner pickup=usemetapickup position="-25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
83    <PickupSpawner pickup=dropmetapickup position="0,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
84    <PickupSpawner pickup=destroymetapickup position="25,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
85    <PickupSpawner pickup=destroycarriermetapickup position="50,75,-125" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
86
87    <!-- Pickup Collection pickups -->
88
89    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="-50,25,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
90   
91    <!-- Drone pickup -->
92   
93    <PickupSpawner pickup=dronepickup position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
94   
95    <!-- DamageBoost pickup -->
96   
97    <PickupSpawner pickup=smalldamageboostpickup position="-50,75,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
98    <PickupSpawner pickup=mediumdamageboostpickup position="-50,100,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
99    <PickupSpawner pickup=largedamageboostpickup position="-50,125,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
100   
101    <!-- Other pickups -->
102
103    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
104    <PickupRepresentation
105      name = "MediumHealth"
106      pickupName = "Medium Health Pack"
107      pickupDescription = "Once used adds a medium amout of health to the ship."
108      spawnerTemplate = "mediumhealthpickupRepresentation"
109      inventoryRepresentation = "MediumHealth"
110    />
111
112    <Template name=continuoushealthpickup baseclass=HealthPickup>
113      <HealthPickup representation="MediumHealth" health=500 activationType=immediate healthRate=10 durationType=continuous />
114    </Template>
115   
116    <PickupSpawner pickup=continuoushealthpickup position="-50,0,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
117
118    <PickupSpawner pickup="smallshrinkpickup" position="-25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
119    <PickupSpawner pickup="mediumshrinkpickup" position="0,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
120    <PickupSpawner pickup="hugeshrinkpickup" position="25,-50,-125" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
121   
122    <!-- @Objects: 4 boxes (uncontrolled pawns) -->
123    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
124        <events>
125          <visibility>
126            <EventListener event="flying4" />
127          </visibility>
128        </events>
129        <attached>
130            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
131        </attached>
132        <collisionShapes>
133            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
134        </collisionShapes>
135    </Pawn>
136
137    <Pawn team=1 health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 3">
138        <events>
139          <visibility>
140            <EventListener event="flying4" />
141          </visibility>
142        </events>
143        <attached>
144           <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
145        </attached>
146        <collisionShapes>
147            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
148        </collisionShapes>
149    </Pawn>
150
151    <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 2">
152        <events>
153          <visibility>
154            <EventListener event="flying4" />
155          </visibility>
156        </events>
157        <attached>
158           <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
159        </attached>
160        <collisionShapes>
161            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
162        </collisionShapes>
163    </Pawn>
164
165    <Pawn health=30 position="0,400,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 1">
166        <events>
167          <visibility>
168            <EventListener event="flying4" />
169          </visibility>
170        </events>
171        <attached>
172            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
173        </attached>
174        <collisionShapes>
175           <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
176        </collisionShapes>
177    </Pawn>
178
179    <!--StaticEntity position="0,-200,0" direction="0,-1,0" collisionType=static mass=500 friction=0.01 >
180      <attached>
181        <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
182      </attached>
183      <collisionShapes>
184        <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
185      </collisionShapes>
186  </StaticEntity-->
187
188  </Scene>
189</Level>
Note: See TracBrowser for help on using the repository browser.