[9926] | 1 | <!-- --> |
---|
| 2 | |
---|
[9664] | 3 | <LevelInfo |
---|
| 4 | name = "Maxim's Test" |
---|
| 5 | description = "Intelligent Formation" |
---|
| 6 | tags = "test" |
---|
| 7 | /> |
---|
| 8 | |
---|
| 9 | <?lua |
---|
| 10 | include("stats.oxo") |
---|
| 11 | include("HUDTemplates3.oxo") |
---|
| 12 | include("templates/lodInformation.oxt") |
---|
| 13 | ?> |
---|
| 14 | |
---|
| 15 | <?lua |
---|
| 16 | include("templates/spaceshipAssff.oxt") |
---|
| 17 | include("templates/spaceshipPirate.oxt") |
---|
| 18 | include("templates/spaceshipSwallow.oxt") |
---|
| 19 | include("templates/spaceshipTransporter.oxt") |
---|
| 20 | ?> |
---|
| 21 | |
---|
| 22 | <Level |
---|
| 23 | gametype = "Mission" |
---|
| 24 | > |
---|
| 25 | <templates> |
---|
| 26 | <Template link=lodtemplate_default /> |
---|
| 27 | </templates> |
---|
| 28 | <?lua include("includes/notifications.oxi") ?> |
---|
[9918] | 29 | |
---|
| 30 | <WorldAmbientSound source="Nebula_metal.ogg" looping="true" playOnLoad="true" /> |
---|
[9664] | 31 | |
---|
| 32 | <NotificationQueueCEGUI |
---|
| 33 | name="narrative" |
---|
| 34 | targets="simpleNotification" |
---|
| 35 | size=3 |
---|
| 36 | displayTime=3.9 |
---|
| 37 | position="0.2, 0, 0.1, 0" |
---|
| 38 | fontSize="23" |
---|
| 39 | fontColor="0.3, 1, 0.2, 0.8" |
---|
| 40 | alignment="HorzCentred" |
---|
| 41 | displaySize="0.6, 0, 0, 0" |
---|
| 42 | /> |
---|
| 43 | |
---|
| 44 | <Scene |
---|
| 45 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 46 | skybox = "Orxonox/skyBoxMoreNebula" |
---|
| 47 | > |
---|
| 48 | |
---|
| 49 | <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"/> |
---|
| 50 | |
---|
| 51 | <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow/> |
---|
| 52 | |
---|
| 53 | <!-- TRIGGERS --> |
---|
| 54 | <DistanceTrigger name="FormationInit" position="800,700,600" target="Pawn" distance=60 stayActive="true" delay=0.1 /> |
---|
| 55 | <DistanceTrigger name="LetsGo" position="200,-200,1000" target="Pawn" distance=180 stayActive="true" delay=0.1 /> |
---|
| 56 | <BlinkingBillboard colour="1,1,0.05" position="200,-200,1000" frequency=0.6 amplitude=3 material="Flares/lensflare" /> |
---|
| 57 | <DistanceTrigger name="Fight" position="-600,3000,-2000" target="Pawn" distance=180 stayActive="true" delay=0.1 /> |
---|
| 58 | <BlinkingBillboard colour="0,0,1" position="-600,3000,-2000" frequency=0.6 amplitude=3 material="Flares/lensflare" /> |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | <Script code="formationcontroller formationflight true" onLoad="false"> |
---|
| 63 | <events> |
---|
| 64 | <trigger> |
---|
| 65 | <EventListener event=FormationInit /> |
---|
| 66 | </trigger> |
---|
| 67 | </events> |
---|
| 68 | </Script> <!-- !!! activates formation behaviour !!! --> |
---|
| 69 | |
---|
| 70 | <Script code="artificialcontroller setbotlevel 5" onLoad="false"> |
---|
| 71 | <events> |
---|
| 72 | <trigger> |
---|
| 73 | <EventListener event=FormationInit /> |
---|
| 74 | </trigger> |
---|
| 75 | </events> |
---|
| 76 | </Script> |
---|
| 77 | |
---|
| 78 | <SimpleNotification message="Let's go!"> |
---|
| 79 | <events> |
---|
| 80 | <trigger> |
---|
| 81 | <EventListener event="LetsGo" /> |
---|
| 82 | </trigger> |
---|
| 83 | </events> |
---|
| 84 | </SimpleNotification> |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | <!-- ADDING FORMATION: 2 Swallows --> |
---|
| 90 | <?lua for i=0,1,1 do |
---|
| 91 | ?> |
---|
| 92 | <SpaceShip position="<?lua print(400+i*200) ?>,-200,1000" lookat="-1300,-600,900" visible="true"> |
---|
| 93 | <templates> |
---|
| 94 | <Template link=spaceshipswallow /> <!--spaceshipTransporter spaceshippirate--> |
---|
| 95 | </templates> |
---|
| 96 | <controller> |
---|
| 97 | <AIController team=0> |
---|
| 98 | <events> |
---|
| 99 | <activity> |
---|
| 100 | <EventListener event="LetsGo" /> |
---|
| 101 | </activity> |
---|
| 102 | </events> |
---|
| 103 | </AIController> |
---|
| 104 | </controller> |
---|
| 105 | </SpaceShip> |
---|
| 106 | <?lua end ?> |
---|
| 107 | |
---|
| 108 | <?lua for i=0,2,1 do |
---|
| 109 | ?> |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | <!-- ENEMY SWALLOWS --> |
---|
| 113 | <SpaceShip position="<?lua print(-400+i*200) ?>,3000,-2000" lookat="-1300,-600,900" visible="true"> |
---|
| 114 | <templates> |
---|
| 115 | <Template link=spaceshipswallow /> |
---|
| 116 | </templates> |
---|
| 117 | <controller> |
---|
| 118 | <AIController team=1> |
---|
| 119 | <events> |
---|
| 120 | <activity> |
---|
| 121 | <EventListener event="Fight" /> |
---|
| 122 | </activity> |
---|
| 123 | </events> |
---|
| 124 | </AIController> |
---|
| 125 | </controller> |
---|
| 126 | </SpaceShip> |
---|
| 127 | <?lua end ?> |
---|
| 128 | |
---|
| 129 | </Scene> |
---|
[9926] | 130 | </Level> |
---|