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