Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentationFS10.oxw @ 7346

Last change on this file since 7346 was 7163, checked in by dafrick, 14 years ago

Merged presentation3 branch into trunk.

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