Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10724 was 10724, checked in by fvultier, 9 years ago

The weapon system HUD rescales properly if the window size changes.

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