Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10105 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
RevLine 
[9939]1<!-- -->
[7648]2<LevelInfo
3 name = "Pickups showcase"
4 description = "Level to test and showcase pickups."
5 tags = "test, showcase"
[9016]6 screenshot = "pickupsshowcase.png"
[7648]7/>
8
[6512]9<?lua
10  include("stats.oxo")
[7679]11  include("HUDTemplates3.oxo")
[6512]12?>
13
14<?lua
[7679]15  include("templates/spaceshipAssff.oxt")
16  include("templates/pickupRepresentationTemplates.oxt")
17  include("templates/lodInformation.oxt")
[6512]18?>
19
[9016]20<Level>
[7036]21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
[8706]24  <?lua include("includes/notifications.oxi") ?>
[7083]25
[6512]26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/Starbox"
29  >
30
[7007]31    <?lua
32      include("includes/pickups.oxi")
33    ?>
34
[6712]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 />
[6512]37
[6998]38    <!-- Shield pickups -->
[7007]39
[9348]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" />
[6998]43
[6712]44    <!-- Health pickups -->
[7007]45
[9348]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" />
[7007]50
[6712]51    <!-- Speed pickups -->
[7007]52
[9348]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" />
[6512]57
[6712]58    <!-- Invisible pickups -->
[7007]59
[9348]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" />
[6712]63
64    <!-- Meta pickups -->
[7007]65
[9348]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" />
[6712]86
87    <!-- Pickup Collection pickups -->
[7007]88
[9348]89    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="-50,25,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
[7038]90   
91    <!-- Drone pickup -->
92   
[9348]93    <PickupSpawner pickup=dronepickup position="-50,50,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
[7038]94   
[9348]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   
[7038]101    <!-- Other pickups -->
[7007]102
[7008]103    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
[7007]104    <PickupRepresentation
[9348]105      name = "MediumHealth"
[7007]106      pickupName = "Medium Health Pack"
107      pickupDescription = "Once used adds a medium amout of health to the ship."
108      spawnerTemplate = "mediumhealthpickupRepresentation"
109      inventoryRepresentation = "MediumHealth"
[9348]110    />
[7007]111
[9348]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" />
[7007]117
[9348]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>
[8706]136
[9348]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>
[8706]150
[9348]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>
[8706]164
[9348]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
[8706]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
[6512]188  </Scene>
189</Level>
Note: See TracBrowser for help on using the repository browser.