Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentationHS11.oxw @ 9668

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

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 6.9 KB
Line 
1<!--  -->
2
3
4<LevelInfo
5 name = "Presentation HS 2011"
6 description = "New Features: Asteroid field/belt generator; Formationflight; HUD (Enemyhealthbar, displaying Names)"
7 tags = "presentation"
8/>
9
10<?lua
11  include("stats.oxo")
12  include("HUDTemplates3.oxo")
13  include("templates/lodInformation.oxt")
14?>
15
16<?lua
17  include("templates/spaceshipAssff.oxt")
18  include("templates/spaceshipPirate.oxt")
19  include("templates/spaceshipSwallow.oxt")
20  include("templates/spaceshipTransporter.oxt")
21?>
22
23<Level
24 gametype = "Mission"
25>                      <!--ALTERNATIVE: TeamGametype-->
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <NotificationQueueCEGUI
32    name="narrative"
33    targets="simpleNotification"
34    size=3
35    displayTime=3.9
36    position="0.2, 0, 0.1, 0"
37    fontSize="23"
38    fontColor="0.3, 1, 0.2, 0.8"
39    alignment="HorzCentred"
40    displaySize="0.6, 0, 0, 0"
41    />
42
43  <Scene
44    ambientlight = "0.8, 0.8, 0.8"
45    skybox       = "Orxonox/skyBoxMoreNebula"
46  >
47
48  <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"/>
49
50  <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow/>
51
52  <!-- TRIGGERS -->
53    <DistanceTrigger name="FormationInit" position="800,700,600"  target="Pawn" distance=60 stayActive="true" delay=0.1 />
54    <DistanceTrigger name="LetsGo"        position="200,-200,1000" target="Pawn" distance=180 stayActive="true" delay=0.1 />
55      <BlinkingBillboard colour="1,1,0.05"position="200,-200,1000" frequency=0.6 amplitude=3 material="Flares/lensflare" >
56      </BlinkingBillboard>
57
58
59
60
61    <Script code="formationcontroller formationflight true" onLoad="false">
62        <events>
63            <trigger>
64                <EventListener event=FormationInit />
65            </trigger>
66        </events>
67    </Script> <!-- !!! activates formation behaviour !!! -->
68
69    <Script code="artificialcontroller setbotlevel 0.1" onLoad="false">
70        <events>
71            <trigger>
72                <EventListener event=FormationInit />
73            </trigger>
74        </events>
75    </Script> <!-- make bots "friendly", doesn't work yet :-( -->
76
77    <SimpleNotification message="Let's go!">
78        <events>
79            <trigger>
80                <EventListener event="LetsGo" />
81            </trigger>
82        </events>
83    </SimpleNotification>
84
85
86
87
88<!-- ADDING FORMATION: 5 Swallows -->
89<?lua for i=0,4,1 do
90?>
91    <SpaceShip position="<?lua print(400+i*200) ?>,-200,1000" lookat="-1300,-600,900" visible="true">
92        <!--events>
93            <visibility>
94                <EventListener event="ondock" />
95            </visibility>
96        </events-->
97        <templates>
98            <Template link=spaceshipswallow /> <!--spaceshipTransporter spaceshippirate-->
99        </templates>
100        <controller>
101            <AIController team=0>
102                <events>
103                    <activity>
104                        <EventListener event="LetsGo" />
105                     </activity>
106                </events>
107            </AIController>
108        </controller>
109    </SpaceShip>
110<?lua end ?>
111
112<?lua for i=0,2,1 do
113?>
114
115
116<!-- ENEMY TRANSPORTER -->
117    <SpaceShip position="<?lua print(-400+i*200) ?>,3000,-2000" lookat="-1300,-600,900" visible="true">
118        <!--events>
119            <visibility>
120                <EventListener event="LetsGo" />
121            </visibility>
122        </events-->
123        <templates>
124            <Template link=spaceshipTransporter />
125        </templates>
126        <controller>
127            <AIController team=1>
128                <events>
129                    <activity>
130                        <EventListener event="LetsGo" />
131                     </activity>
132                </events>
133            </AIController>
134        </controller>
135    </SpaceShip>
136<?lua end ?>
137
138<!-- @Triggers: "hintX" <->  delayed LetsGo -->
139    <EventTrigger name="hint1" activations="1" stayactive="true" delay=4.2>
140      <events>
141        <trigger>
142          <EventListener event="LetsGo" />
143        </trigger>
144      </events>
145    </EventTrigger>
146    <EventTrigger name="hint2" activations="1" stayactive="true" delay=8.4>
147      <events>
148        <trigger>
149          <EventListener event="LetsGo" />
150        </trigger>
151      </events>
152    </EventTrigger>
153    <EventTrigger name="hint3" activations="1" stayactive="true" delay=12.6>
154      <events>
155        <trigger>
156          <EventListener event="LetsGo" />
157        </trigger>
158      </events>
159    </EventTrigger>
160    <EventTrigger name="hint4" activations="1" stayactive="true" delay=16.8>
161      <events>
162        <trigger>
163          <EventListener event="LetsGo" />
164        </trigger>
165      </events>
166    </EventTrigger>
167    <EventTrigger name="hint5" activations="1" stayactive="true" delay=21>
168      <events>
169        <trigger>
170          <EventListener event="LetsGo" />
171        </trigger>
172      </events>
173    </EventTrigger>
174    <EventTrigger name="hint6" activations="1" stayactive="true" delay=25.2>
175      <events>
176        <trigger>
177          <EventListener event="LetsGo" />
178        </trigger>
179      </events>
180    </EventTrigger>
181
182
183
184    <SimpleNotification message="Make bots follow you: Press (1)"  broadcast="true">
185        <events>
186            <trigger>
187                <EventListener event=hint1 />
188            </trigger>
189        </events>
190    </SimpleNotification>
191
192    <SimpleNotification message="Toggle group behaviour: Press (1)"  broadcast="true">
193        <events>
194            <trigger>
195                <EventListener event=hint2 />
196            </trigger>
197        </events>
198    </SimpleNotification>
199
200    <SimpleNotification message="Tell the bots to defend you: Press (2)"  broadcast="true">
201        <events>
202            <trigger>
203                <EventListener event=hint3 />
204            </trigger>
205        </events>
206    </SimpleNotification>
207
208    <SimpleNotification message="Make them attack opponents: Press (2) again"  broadcast="true">
209        <events>
210            <trigger>
211                <EventListener event=hint4 />
212            </trigger>
213        </events>
214    </SimpleNotification>
215
216    <SimpleNotification message="Let the bots behave 'normal': Press (2) again"  broadcast="true">
217        <events>
218            <trigger>
219                <EventListener event=hint5 />
220            </trigger>
221        </events>
222    </SimpleNotification>
223
224    <SimpleNotification message="Have a look at the console to verify this."  broadcast="true">
225        <events>
226            <trigger>
227                <EventListener event=hint6 />
228            </trigger>
229        </events>
230    </SimpleNotification>
231
232<!-- Generate asteroid field and asteroid belt -->
233<!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) -->
234    <?lua
235        dofile("includes/asteroidField.lua")
236        asteroidBelt(20000, 0, 13000, -48, -34, 70, 100, 200, 22000, 20000, 500, 1)
237
238    ?>
239
240
241
242
243  </Scene>
244</Level>
245
Note: See TracBrowser for help on using the repository browser.