Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/fightInOurBack.oxw @ 8999

Last change on this file since 8999 was 8891, checked in by jo, 13 years ago

Ai and tutorial improvements merged back to the trunk. AI features: all weapons are used, the ai-firestrength is configurable, bots are able to collect pickups . I've set the tutorial level as default level.

  • Property svn:eol-style set to native
File size: 23.8 KB
Line 
1<LevelInfo
2  name = "Fight in our Back"
3  description = "Our fleet is far ahead of us. We need to get rid of all the enemies in its back, because we do not want our enemies to attack from everywhere. So let us clear this Sector!"
4  tags = "singleplayer"
5/>
6
7<?lua
8    include("stats.oxo")
9    include("HUDTemplates3.oxo")
10    include("templates/lodInformation.oxt")
11    include("templates/spaceshipAssff.oxt")
12    include("templates/spaceshipPirate.oxt")
13    include("templates/spaceshipTransporter.oxt")
14?>
15
16<!--*****************************************************************************************************************************************************************************************-->
17<!--Including Template for triggering on player-->
18
19<Template name=spaceshipassffplayer>
20  <SpaceShip
21   hudtemplate            = spaceshiphud
22   camerapositiontemplate = spaceshipassffcameras
23   spawnparticlesource    = "Orxonox/fairytwirl"
24   spawnparticleduration  = 3
25   explosionchunks        = 6
26
27   health            = 100
28   maxhealth         = 200
29   initialhealth     = 100
30
31   primaryThrust     = 100;
32   auxilaryThrust    = 30;
33   rotationThrust    = 25;
34
35   collisionType     = "dynamic"
36   mass              = 100
37   linearDamping     = 0.7
38   angularDamping    = 0.9999999
39  >
40      <engines>
41      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine />
42      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
43    </engines>
44    <attached>
45      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
46      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
47      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
48      <DistanceTriggerBeacon name="PlayerDistanceTrigger" /> <!--added DistanceTrigger-->
49    </attached>
50    <collisionShapes>
51      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
52      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
53      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
54      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
55      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
56      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
57    </collisionShapes>
58<?lua
59  include("includes/weaponSettingsAssff.oxi")
60?>
61  </SpaceShip>
62</Template>
63<Template name=spaceshipassffengine baseclass=MultiStateEngine>
64  <MultiStateEngine
65   boostfactor    = 2
66
67   speedfront     = 150
68   speedback      =  50
69   speedleftright =  50
70   speedupdown    =  50
71
72   defEngineSndNormal = "sounds/Engine_low.ogg"
73   defEngineSndBoost = "sounds/Engine_high.ogg"
74
75   accelerationfront     = 500
76   accelerationbrake     = 500
77   accelerationback      =  125
78   accelerationleftright =  125
79   accelerationupdown    =  125
80  >
81      <EffectContainer condition="idle">
82      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
83    </EffectContainer>
84    <EffectContainer condition="not idle">
85      <FadingBillboard mainstate=activity active=false scale=0.1 position="7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
86      <FadingBillboard mainstate=activity active=false scale=0.1 position="-7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
87    </EffectContainer>
88    <EffectContainer condition="normal or brake">
89
90    </EffectContainer>
91    <EffectContainer condition="normal or boost">
92      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
93      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
94    </EffectContainer>
95    <EffectContainer condition="boost">
96      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
97      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
98    </EffectContainer>
99<!--    <EffectContainer condition="brake">
100      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
101      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
102      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
103      <FadingBillboard mainstate=activity active=false scale=0.15 position="-8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
104    </EffectContainer>
105-->
106  </MultiStateEngine>
107</Template>
108<!--*****************************************************************************************************************************************************************************************-->
109<Level
110  name="Fight in our back"
111  description="Our fleet is far ahead of us. We need to get rid of all the enemies in its back, because we do not want our enemies to attack from everywhere. So let us clear this Sector!"
112  gametype=TeamDeathmatch
113>
114  <templates>
115    <Template link=lodtemplate_default />
116  </templates>
117  <?lua include("includes/notifications.oxi") ?>
118
119    <!-- Ausgang: Szene ===> ambientlight/skybox -->
120    <Scene
121     ambientlight="0.8,0.8,0.8"
122     skybox="Orxonox/skypanoramagen1"
123    >
124
125        <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
126
127        <!--Light: noch zu aendern -->
128        <Light type=directional position="0,0,0" direction="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 1.0, 0.9" />
129
130
131<!--*****************************************************************************************************************************************************************************************-->
132<!--Quests-->
133    <GlobalQuest id="FightInOurBack.DiscoveryMission_">
134        <QuestDescription title="Discovery mission" description="Your team has to scout out this sector." failMessage="You failed!" completeMessage="You won. You have reached the end of this level." />
135        <subquests>
136            <GlobalQuest id="FightInOurBack.FollowYourGroupLeader">
137                <QuestDescription title="Follow your group leader" description="Your task is to follow the team leader and to destroy all the enemy spaceships on your way!" failMessage="You failed!" completeMessage="Good job!" />
138            </GlobalQuest>
139            <GlobalQuest id="FightInOurBack.TransportersAhead">
140                <QuestDescription title="Transporters ahead" description="This is a lucky day for us. We have found supplies that the enemy is transporting in these Transporters. We have to destroy them." failMessage="You failed!" completeMessage="Good job!" />
141            </GlobalQuest>
142            <GlobalQuest id="FightInOurBack.TheySentUsAssistance">
143                <QuestDescription title="They sent us assistance" description="The transporters will surely be heavily protected but our base sent us assistance. It should now be easier to destroy them." failMessage="You failed" completeMessage="Good job!" />
144            </GlobalQuest>
145        </subquests>
146    </GlobalQuest>
147
148
149<!--Quests____END-->
150<!--*****************************************************************************************************************************************************************************************-->
151
152
153<!--Player's Spawnpoints -->
154        <!--Spieler Spawnpoint ===> position/direction--> <!-- funktioniert noch nicht ab naechtem Mal wahrscheinlich-->
155        <SpawnPoint position="0,50,25" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="true" >
156            <events>
157                <activity>
158                    <EventListener event="activateFirstSpawnpoint" />
159                </activity>
160            </events>
161        </SpawnPoint>
162
163        <SpawnPoint position="10000,0,3000" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="false" >
164            <events>
165                <activity>
166                    <EventListener event="activateSecondSpawnpoint" />
167                </activity>
168            </events>
169        </SpawnPoint>
170
171<!--Player's Spawnpoint END-->
172
173<!--Launching Quests -->
174        <QuestEffectBeacon position="0,50,25" times="1">
175            <effects>
176                <AddQuest questId="FightInOurBack.DiscoveryMission_" />
177                <AddQuest questId="FightInOurBack.FollowYourGroupLeader" />
178            </effects>
179            <events>
180                <execute>
181                    <EventListener event="FightInOurBack_MainStart_FollowStart"/>
182                </execute>
183            </events>
184            <attached>
185                <DistanceTrigger name="FightInOurBack_MainStart_FollowStart" position="0,0,0" distance="50" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" />
186                <!--<Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />-->
187            </attached>
188        </QuestEffectBeacon>
189
190        <QuestEffectBeacon position="8000,0,3100" times=1 >
191            <effects>
192                <AddQuest questID="FightInOurBack.TransportersAhead" />
193                <AddQuest questID="FightInOurBack.TheySentUsAssistance" />
194                <CompleteQuest questID="FightInOurBack.FollowYourGroupLeader" />
195            </effects>
196            <events>
197                <execute>
198                    <EventListener event="FightInOurBack_FollowEnd_DTranspStart_AssisStart" />
199                </execute>
200            </events>
201            <attached>
202                <!--<Billboard position="0,0,0" colour="1,1,1" material="Examples/Flare" />-->
203                <DistanceTrigger name="FightInOurBack_FollowEnd_DTranspStart_AssisStart" position="0,0,0" distance="1000" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" stayactive=1 activations=1 />
204            </attached>
205        </QuestEffectBeacon>
206
207<!---->
208
209<!--Launching Quests END -->
210
211<!--Creating Transporters OK-->
212
213
214<?lua for i=0,0,1 do
215x=800
216health=2050
217?>
218    <!--Transporter 1-->
219    <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true">
220    <events>
221    <trigger>
222        <SpaceShip position="<?lua print(3800-i*x) ?>,0,3000" lookat="<?lua print(4800-i*x) ?>,0,4000" health="<?lua print(health) ?>" maxhealth="<?lua print(health) ?>" initialhealth="<?lua print(health) ?>" >
223            <templates>
224                   <Template link=spaceshipTransporter />
225             </templates>
226             <controller>
227                <WaypointPatrolController alertnessradius=1000 team=1>
228                    <waypoints>
229                        <Model mesh="cube.mesh" scale=0 position="<?lua print(14800-i*x) ?>,0,3000"/>
230                    </waypoints>
231                </WaypointPatrolController>
232             </controller>
233        </SpaceShip><!---->
234    </trigger>
235    </events>
236    </EventTrigger>
237<?lua end ?>
238
239
240<?lua for j=0,1,1 do
241health=1600
242x=800
243z=j*300
244?>
245    <!--Transporter 2,3-->
246    <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true">
247    <events>
248    <trigger>
249        <SpaceShip position="<?lua print(2600+x) ?>,0,<?lua print(3150-z) ?>" lookat="<?lua print(3500+x) ?>,0,<?lua print(4150-z) ?>" health="<?lua print(health) ?>" maxhealth="<?lua print(health) ?>" initialhealth="<?lua print(health) ?>" >
250            <templates>
251                   <Template link=spaceshipTransporter />
252             </templates>
253             <controller>
254                <WaypointPatrolController alertnessradius=1000 team=1>
255                    <waypoints>
256                        <Model mesh="cube.mesh" scale=0 position="<?lua print(13500+x) ?>,0,<?lua print(3150-z) ?>"/>
257                    </waypoints>
258                </WaypointPatrolController>
259             </controller>
260        </SpaceShip><!---->
261    </trigger>
262    </events>
263    </EventTrigger>
264<?lua end ?>
265
266
267<!--Creating Transporters END _-->
268
269<!--Creating player's team OK-->
270        <!--Spaceships team 0 (player:team=0)-->
271        <SpaceShip position="50,0,0" lookat="2050,0,-1000" health="500" maxhealth="500" initialhealth="500" >
272             <templates>
273                  <Template link=spaceshipassff />
274            </templates>
275             <controller>
276                <WaypointPatrolController alertnessradius=2000 team=0 >
277                    <waypoints>
278                        <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" />
279                        <Model mesh="cube.mesh" scale=0 position="6050,0,0" />
280                        <Model mesh="cube.mesh" scale=0 position="10050,0,3000" />
281                        <Model mesh="cube.mesh" scale=0 position="3050,0,3000" />
282                        <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" />
283                    </waypoints>
284                </WaypointPatrolController>
285             </controller>
286        </SpaceShip>
287        <!--Second Spaceship team 0 (player: team 0)-->
288        <SpaceShip position="0,0,100" lookat="2000,0,-950" health="500" maxhealth="400" initialhealth="400" >
289             <templates>
290                  <Template link=spaceshipassff />
291            </templates>
292             <controller>
293                <WaypointPatrolController alertnessradius=2000 team=0 >
294                    <waypoints>
295                        <Model mesh="cube.mesh" scale=0 position="2000,0,-900" />
296                        <Model mesh="cube.mesh" scale=0 position="6000,0,0" />
297                        <Model mesh="cube.mesh" scale=0 position="10000,0,3100" />
298                        <Model mesh="cube.mesh" scale=0 position="3000,0,3100" />
299                        <Model mesh="cube.mesh" scale=0 position="-4000,0,3100"/>
300                    </waypoints>
301                </WaypointPatrolController>
302             </controller>
303        </SpaceShip>
304        <!--third Spaceship team 0 (player: team 0)-->
305        <SpaceShip position="0,0,-100" lookat="2000,0,-1050" health="500" maxhealth="400" initialhealth="400" >
306             <templates>
307                  <Template link=spaceshipassff />
308            </templates>
309             <controller>
310                <WaypointPatrolController alertnessradius=2000 team=0 >
311                    <waypoints>
312                        <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" />
313                        <Model mesh="cube.mesh" scale=0 position="6000,0,-100" />
314                        <Model mesh="cube.mesh" scale=0 position="10000,0,2900" />
315                        <Model mesh="cube.mesh" scale=0 position="3000,0,2900" />
316                        <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" />
317                    </waypoints>
318                </WaypointPatrolController>
319             </controller>
320        </SpaceShip>
321<!--Creating player's team END  -->
322
323
324<!--Asteroids (field OK -->
325
326<?lua for i=0,100,1 do
327x=math.random(250,4000)
328y=math.random(-500,500)
329z=math.random(1000,2000)
330scale=math.random(20,70)
331?>
332<MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>">
333    <attached>
334        <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
335    </attached>
336    <collisionShapes>
337        <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
338    </collisionShapes>
339</MovableEntity>
340<?lua end ?>
341
342<!--Asteroids (field) END -->
343
344<!--Asteroids (random) END OK-->
345
346<?lua for i=0,150,1 do
347x=math.random(-8000,8000)
348y=math.random(-8000,8000)
349z=math.random(-8000,8000)
350?>
351<MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>" >
352    <attached>
353        <Model scale="<?lua print(math.random(20,70)) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
354    </attached>
355    <collisionShapes>
356            <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
357        </collisionShapes>
358</MovableEntity>
359<?lua end ?>
360
361<!--Asteroids (random) END -->
362
363<!--Creating spaceships (player's team) OK-->
364<!---->
365<!--Trigger to activate this Team (TEAM NO 1)-->
366    <DistanceTrigger name="activateTeam0No1" position="8000,0,3100" distance="1000" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" />
367
368<!--TEAM NO 1 (activationType : distance || killing a spaceship what belongs to TEAM 0 NO 0)-->
369<?lua for i=0,14,1 do
370x=math.random(-500,500)
371y=math.random(-300,300)
372z=math.random(-300,300)
373?>
374    <EventTrigger name="activateTeam0No1" activations=1 stayactive="true">
375        <events>
376            <trigger>
377                <SpaceShip position="<?lua print(x+4500) ?>,<?lua print(y) ?>,<?lua print(z+6000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>">
378                    <templates>
379                        <Template link=spaceshipassff />
380                    </templates>
381                    <controller>
382                        <WaypointPatrolController alertnessradius=2100 team=0 active=false>
383                            <waypoints>
384                                <Model mesh="cube.mesh" scale=0 position="<?lua print(4500+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
385                                <Model mesh="cube.mesh" scale=0 position="<?lua print(x-4000) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
386                            </waypoints>
387                            <events>
388                                <activity>
389                                    <EventListener event="activateTeam0No1" />
390                                </activity>
391                            </events>
392                        </WaypointPatrolController>
393                    </controller>
394                </SpaceShip>
395            </trigger>
396        </events>
397    </EventTrigger>
398
399
400<?lua end ?>
401
402<!---->
403<!--Creating spaceships (player's team) END -->
404
405<!--Creating spaceships (enemy) OK-->
406<!---->
407<!--TEAM 1 NO 1 (activationType : killing a Transporter || killing a spaceship what belongs to TEAM 1 NO 1)-->
408<?lua for i=0,11,1 do
409x=math.random(-500,500)
410y=math.random(-300,300)
411z=math.random(-300,300)
412?>
413    <EventTrigger name="activateTeam1No1" activations=1 stayactive="true" >
414        <events>
415            <trigger>
416                <SpaceShip position="<?lua print(x+3800) ?>,<?lua print(y+3000) ?>,<?lua print(z+3000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>">
417                    <templates>
418                        <Template link=spaceshippirate />
419                    </templates>
420                    <controller>
421                        <WaypointPatrolController alertnessradius=5000 team=1 active=false>
422                            <waypoints>
423                                <Model mesh="cube.mesh" scale=0 position="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
424                            </waypoints>
425                            <events>
426                                <activity>
427                                    <EventListener event="activateTeam1No1" />
428                                </activity>
429                            </events>
430                        </WaypointPatrolController>
431                    </controller>
432                </SpaceShip>
433            </trigger>
434        </events>
435    </EventTrigger>
436
437<?lua end ?>
438<!---->
439<!--Creating spaceships (enemy) END -->
440
441<!--Enemies on the way to the transporters -->
442
443<?lua for i=0,1,1 do
444z=math.random(-300,300)
445?>
446<!--NO 1-->
447        <SpaceShip position="<?lua print(5900+i*100) ?>,0,-3000" lookat="2500,0,-1000">
448            <templates>
449                <Template link=spaceshippirate/>
450            </templates>
451            <controller>
452                <WaypointPatrolController alertnessRadius=1500 team=1>
453                    <waypoints>
454                        <Model mesh="cube.mesh" scale=0 position="<?lua print(2500+100*i) ?>,0,-1000" />
455                    </waypoints>
456                </WaypointPatrolController>
457            </controller>
458        </SpaceShip>
459
460<!--NO 4-->
461        <SpaceShip position="<?lua print(9000) ?>,13000,<?lua print(z*i+3000) ?>" lookat="1000,0,3000">
462            <templates>
463                <Template link=spaceshippirate/>
464            </templates>
465            <controller>
466                <WaypointPatrolController alertnessRadius=1500 team=1>
467                    <waypoints>
468                        <Model mesh="cube.mesh" scale=0 position="<?lua print(10000) ?>,0,<?lua print(3000+z*i) ?>" />
469                    </waypoints>
470                </WaypointPatrolController>
471            </controller>
472        </SpaceShip>
473<?lua end ?>
474
475
476<!--NO 3-->
477        <SpaceShip position="<?lua print(200+13000) ?>,0,10000" lookat="8000,0,1000">
478            <templates>
479                <Template link=spaceshippirate/>
480            </templates>
481            <controller>
482                <WaypointPatrolController alertnessRadius=1500 team=1>
483                    <waypoints>
484                        <Model mesh="cube.mesh" scale=0 position="<?lua print(200+8000) ?>,0,1000" />
485                    </waypoints>
486                </WaypointPatrolController>
487            </controller>
488        </SpaceShip>
489<?lua for i=0,1,1 do ?>
490        <SpaceShip position="<?lua print(i*400+13000) ?>,100,10000" lookat="8000,0,1000">
491            <templates>
492                <Template link=spaceshippirate/>
493            </templates>
494            <controller>
495                <WaypointPatrolController alertnessRadius=1500 team=1>
496                    <waypoints>
497                        <Model mesh="cube.mesh" scale=0 position="<?lua print(i*400+8000) ?>,0,1000" />
498                    </waypoints>
499                </WaypointPatrolController>
500            </controller>
501        </SpaceShip>
502<?lua end ?>
503
504
505<!--NO 2-->
506<?lua for i=0,3,1 do ?>
507        <SpaceShip position="<?lua print(math.random(5500,6500)+2000) ?>,0,1000" lookat="2500,0,-1000">
508            <templates>
509                <Template link=spaceshippirate/>
510            </templates>
511            <controller>
512                <WaypointPatrolController alertnessRadius=1500 team=1>
513                    <waypoints>
514                        <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1250" />
515                        <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,250,1000" />
516                        <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1000" />
517                    </waypoints>
518                </WaypointPatrolController>
519            </controller>
520        </SpaceShip>
521<?lua end ?>
522
523<!--Creating spaceships (enemy) END -->
524
525<Trigger invert=true name="activateFirstSpawnpoint">
526    <DistanceTrigger name="activateSecondSpawnpoint" position="10000,0,3000" distance="1000" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" />
527</Trigger>
528
529    </Scene>
530</Level>
Note: See TracBrowser for help on using the repository browser.