Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

merged branch presentation2012merge back to trunk

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