Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spaceraceTwo/data/levels/presentationFS10.oxw @ 9018

Last change on this file since 9018 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

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