Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/pickups.oxw @ 9831

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

merged branch presentation2012merge back to trunk

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