Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/fabienHS15/data/levels/pickups.oxw @ 10715

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