Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cegui0.8_ogre1.9/data/levels/presentationHS11.oxw @ 11845

Last change on this file since 11845 was 11802, checked in by landauf, 7 years ago

migrated NotificationLayer.lua to cegui 0.8

  • Property svn:eol-style set to native
File size: 6.9 KB
RevLine 
[9348]1<!--  -->
2
3
[9006]4<LevelInfo
5 name = "Presentation HS 2011"
[9348]6 description = "New Features: Asteroid field/belt generator; Formationflight; HUD (Enemyhealthbar, displaying Names)"
[9006]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")
[9010]19  include("templates/spaceshipSwallow.oxt")
[9012]20  include("templates/spaceshipTransporter.oxt")
[9006]21?>
22
[9009]23<Level
[9010]24 gametype = "Mission"
[9012]25>                      <!--ALTERNATIVE: TeamGametype-->
[9006]26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
[9012]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"
[11802]39    alignment="CentreAligned"
[9012]40    displaySize="0.6, 0, 0, 0"
41    />
42
[9006]43  <Scene
44    ambientlight = "0.8, 0.8, 0.8"
45    skybox       = "Orxonox/skyBoxMoreNebula"
46  >
47
[9010]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"/>
[9006]49
[9010]50  <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow/>
[9006]51
[9010]52  <!-- TRIGGERS -->
53    <DistanceTrigger name="FormationInit" position="800,700,600"  target="Pawn" distance=60 stayActive="true" delay=0.1 />
[9012]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>
[9010]57
58
[9012]59
60
[9010]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>
[9008]75    </Script> <!-- make bots "friendly", doesn't work yet :-( -->
76
[9012]77    <SimpleNotification message="Let's go!">
78        <events>
79            <trigger>
80                <EventListener event="LetsGo" />
81            </trigger>
82        </events>
83    </SimpleNotification>
84
85
[9348]86
87
[9012]88<!-- ADDING FORMATION: 5 Swallows -->
[9010]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">
[9008]92        <!--events>
93            <visibility>
94                <EventListener event="ondock" />
95            </visibility>
96        </events-->
97        <templates>
[9010]98            <Template link=spaceshipswallow /> <!--spaceshipTransporter spaceshippirate-->
[9008]99        </templates>
100        <controller>
101            <AIController team=0>
[9010]102                <events>
[9008]103                    <activity>
[9010]104                        <EventListener event="LetsGo" />
[9008]105                     </activity>
[9010]106                </events>
[9008]107            </AIController>
108        </controller>
109    </SpaceShip>
[9010]110<?lua end ?>
[9008]111
[9013]112<?lua for i=0,2,1 do
113?>
[9008]114
[9013]115
116<!-- ENEMY TRANSPORTER -->
117    <SpaceShip position="<?lua print(-400+i*200) ?>,3000,-2000" lookat="-1300,-600,900" visible="true">
[9012]118        <!--events>
119            <visibility>
[9013]120                <EventListener event="LetsGo" />
[9012]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>
[9013]136<?lua end ?>
[9008]137
[9348]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>
[9012]181
[9008]182
[9010]183
[9348]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>
[9010]191
[9348]192    <SimpleNotification message="Toggle group behaviour: Press (1)"  broadcast="true">
193        <events>
194            <trigger>
195                <EventListener event=hint2 />
196            </trigger>
197        </events>
198    </SimpleNotification>
[9013]199
[9348]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>
[9013]207
[9348]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
[9006]232<!-- Generate asteroid field and asteroid belt -->
[9348]233<!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) -->
[9006]234    <?lua
[9348]235        dofile("includes/asteroidField.lua")
236        asteroidBelt(20000, 0, 13000, -48, -34, 70, 100, 200, 22000, 20000, 500, 1)
[9006]237
238    ?>
239
240
241
242
243  </Scene>
244</Level>
245
Note: See TracBrowser for help on using the repository browser.