Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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