Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spacestationentry/data/levels/presentationFS10.oxw @ 10169

Last change on this file since 10169 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 4.7 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 pickup=dronepickup position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
105
106    <!-- Shield pickups -->
107
108    <PickupSpawner pickup=hugeshieldpickup position="-25,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
109
110    <!-- Health pickups -->
111
112    <PickupSpawner pickup=hugehealthpickup position="0,-75,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
113
114    <!-- Speed pickups -->
115
116    <PickupSpawner pickup=hugespeedpickup position="25,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
117    <PickupSpawner pickup=smalljumppickup position="50,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
118
119    <!-- Invisible pickups -->
120
121    <PickupSpawner pickup=hugeinvisiblepickup position="0,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10" />
122
123    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
124    <PickupRepresentation
125      name = "MediumHealth"
126      pickupName = "Medium Health Pack"
127      pickupDescription = "Once used adds a medium amout of health to the ship."
128      spawnerTemplate = "mediumhealthpickupRepresentation"
129      inventoryRepresentation = "MediumHealth"
130    />
131
132    <Template name=onusehealthpickup baseclass=HealthPickup>
133      <HealthPickup representation="MediumHealth" health=50 activationType=onUse durationType=once />
134    </Template>
135
136    <PickupSpawner pickup=onusehealthpickup position="25,-75,-500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
137
138  </Scene>
139</Level>
Note: See TracBrowser for help on using the repository browser.