Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/questlog/data/levels/presentationFS10.oxw @ 9079

Last change on this file since 9079 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

  • Property svn:eol-style set to native
File size: 5.1 KB
Line 
1<LevelInfo
2 name = "Presentation XI"
3 description = "1st Presentation level for Orxonox Convention XI"
4 tags = "presentation"
5 screenshot = "presentationxi.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11?>
12
13<?lua
14  include("templates/lodInformation.oxt")
15  include("templates/spaceshipAssff.oxt")
16  include("templates/spaceshipPirate.oxt")
17  include("templates/spaceshipSwallow.oxt")
18  include("templates/pickupRepresentationTemplates.oxt")
19?>
20
21<Level
22 gametype = "TeamDeathmatch"
23>
24  <templates>
25    <Template link=lodtemplate_default />
26  </templates>
27  <?lua include("includes/notifications.oxi") ?>
28
29  <Scene
30    ambientlight = "0.8, 0.8, 0.8"
31    skybox       = "Orxonox/Starbox"
32  >
33
34    <?lua
35      include("includes/pickups.oxi")
36    ?>
37
38    <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" />
39    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
40
41    <Billboard position="12.5, -30, -500" material="Banners/Pickups" scale="0.5"/>
42    <Billboard position="500, -30, -500" material="Banners/Drone" scale="0.5"/>
43    <EventDispatcher>
44      <targets>
45        <EventTarget target=pirate />
46      </targets>
47      <events>
48        <activity>
49          <DistanceTrigger position="500, -50, -500" distance=20 target="SpaceShip" stayactive=true />
50        </activity>
51      </events>
52    </EventDispatcher>
53
54    <Billboard position="1000, -30, -500" material="Banners/Formation" scale="0.5"/>
55    <Billboard position="1000, -50, -500" material="Examples/Flare" scale="0.5"/>
56    <EventDispatcher>
57      <targets>
58        <EventTarget target=formation />
59      </targets>
60      <events>
61        <activity>
62          <DistanceTrigger position="1000, -50, -500" distance=20 target="SpaceShip" stayactive=true />
63        </activity>
64      </events>
65    </EventDispatcher>
66
67    <SpaceShip position="500,0,-1500">
68        <templates>
69          <Template link=spaceshippirate />
70        </templates>
71        <controller>
72          <AIController team=1 active=false name=pirate formationFlight=false passive=false />
73        </controller>
74    </SpaceShip>
75
76
77    <?lua
78      for i = 1, 10, 1 do
79        ?>
80      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
81        <templates>
82          <Template link=spaceshippirate />
83        </templates>
84        <controller>
85          <AIController formationFlight=true passive=true team=0 name=formation active=false />
86        </controller>
87      </SpaceShip>
88    <?lua end ?>
89
90
91    <?lua
92      for i = 1, 10, 1 do
93        ?>
94      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
95        <templates>
96          <Template link=spaceshipassff />
97        </templates>
98        <controller>
99          <AIController formationFlight=true passive=true team=1 name=formation active=false/>
100        </controller>
101      </SpaceShip>
102    <?lua end ?>
103
104    <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
105      <pickup>
106        <DronePickup template=dronepickup />
107      </pickup>
108    </PickupSpawner>
109
110    <!-- Shield pickups -->
111
112    <PickupSpawner position="-25,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
113      <pickup>
114        <ShieldPickup template=hugeshieldpickup />
115      </pickup>
116    </PickupSpawner>
117
118    <!-- Health pickups -->
119
120    <PickupSpawner position="0,-75,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
121      <pickup>
122        <HealthPickup template=hugehealthpickup />
123      </pickup>
124    </PickupSpawner>
125
126    <!-- Speed pickups -->
127
128    <PickupSpawner position="25,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
129      <pickup>
130        <SpeedPickup template=hugespeedpickup />
131      </pickup>
132    </PickupSpawner>
133
134    <PickupSpawner position="50,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
135      <pickup>
136        <SpeedPickup template=smalljumppickup />
137      </pickup>
138    </PickupSpawner>
139
140    <!-- Invisible pickups -->
141
142    <PickupSpawner position="0,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10">
143      <pickup>
144        <InvisiblePickup template=hugeinvisiblepickup />
145      </pickup>
146    </PickupSpawner>
147
148    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
149    <PickupRepresentation
150      pickupName = "Medium Health Pack"
151      pickupDescription = "Once used adds a medium amout of health to the ship."
152      spawnerTemplate = "mediumhealthpickupRepresentation"
153      inventoryRepresentation = "MediumHealth"
154    >
155      <pickup>
156        <HealthPickup health=50 activationType="onUse" durationType="once" />
157      </pickup>
158    </PickupRepresentation>
159
160    <PickupSpawner position="25,-75,-500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
161      <pickup>
162        <HealthPickup health=50 activationType=onUse durationType=once />
163      </pickup>
164    </PickupSpawner>
165
166  </Scene>
167</Level>
Note: See TracBrowser for help on using the repository browser.