1 | <!--TODO: Rename screenshot as soon as it is in data_extern branch --> |
---|
2 | <LevelInfo |
---|
3 | name = "Expedition to Sector 5C" |
---|
4 | description = "Commander, our scientists are reporting strange binary radio signals from a yet unexplored and thought to be uninhabited region, sector 5C. Explore the sector and get to the bottom of these messages!" |
---|
5 | tags = "mission" |
---|
6 | screenshot = "missionOne.png" |
---|
7 | /> |
---|
8 | |
---|
9 | <?lua |
---|
10 | include("stats.oxo") |
---|
11 | include("HUDTemplates3.oxo") |
---|
12 | include("templates/lodInformation.oxt") |
---|
13 | |
---|
14 | include("templates/spaceshipAssff.oxt") |
---|
15 | include("templates/spaceshipPirate.oxt") |
---|
16 | include("templates/spaceshipEscort.oxt") |
---|
17 | include("templates/spaceshipShuttle.oxt") |
---|
18 | include("templates/FPS.oxt") |
---|
19 | include("templates/pickupRepresentationTemplates.oxt") |
---|
20 | ?> |
---|
21 | |
---|
22 | <Level gametype = "Mission"> |
---|
23 | <templates> |
---|
24 | <Template link="lodtemplate_default" /> |
---|
25 | </templates> |
---|
26 | |
---|
27 | <?lua include("includes/notifications.oxi") ?> |
---|
28 | |
---|
29 | <NotificationQueueCEGUI |
---|
30 | name="narrative" |
---|
31 | targets="simpleNotification" |
---|
32 | size=3 |
---|
33 | displayTime=3.9 |
---|
34 | position="0.15, 0, 0.1, 0" |
---|
35 | fontSize="15" |
---|
36 | fontColor="0.3, 1, 0.2, 0.8" |
---|
37 | alignment="HorzCentred" |
---|
38 | displaySize="0.7, 0, 0, 0" |
---|
39 | /> |
---|
40 | |
---|
41 | <!-- GLOBAL LUA VARIABLES --> |
---|
42 | <?lua |
---|
43 | |
---|
44 | --[[ Coordinates in (y,z,x). NOTE: Indexing starts at 1 in lua! Don´t forget to adapt the for loops, too! ]]-- |
---|
45 | cCenter = {0, 0, 0} |
---|
46 | cSpawn = {-50, 0, 0} |
---|
47 | |
---|
48 | cField1 = {400, 0, 2500} |
---|
49 | cField2 = {400, 0, -2500} |
---|
50 | cPlanet1 = {8000, -2000, 15000} |
---|
51 | cPlanet2 = {-20000, 4000, -1000} |
---|
52 | |
---|
53 | --[[ Function to print Coordinates. Quotes not included! ]]-- |
---|
54 | function printC(coord) |
---|
55 | print(coord[1] .. [[,]] .. coord[2] .. [[,]] .. coord[3]) |
---|
56 | end |
---|
57 | ?> |
---|
58 | |
---|
59 | <Scene |
---|
60 | ambientlight = "0.8, 0.8, 0.8" |
---|
61 | skybox = "Orxonox/skyBoxMoreNebula" |
---|
62 | hasPhysics = true |
---|
63 | > |
---|
64 | |
---|
65 | <SpawnPoint name="playerSpawn" team=0 position="<?lua printC(cSpawn) ?>" lookat="<?lua printC(cCenter) ?>" spawnclass=SpaceShip pawndesign=spaceshipescort /> |
---|
66 | |
---|
67 | <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" /> |
---|
68 | |
---|
69 | <Light type=directional position="<?lua printC(cCenter) ?>" 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"/> |
---|
70 | |
---|
71 | <!--QUEST DEFINITIONS--> |
---|
72 | |
---|
73 | <GlobalQuest id="quest1"> |
---|
74 | <QuestDescription title="Quest 1" description="" failMessage="" completeMessage="" /> |
---|
75 | <hints> |
---|
76 | </hints> |
---|
77 | <complete-effects> |
---|
78 | <AddQuest questId="quest2" /> |
---|
79 | </complete-effects> |
---|
80 | </GlobalQuest> |
---|
81 | |
---|
82 | <!--EVENTS AND TRIGGERS |
---|
83 | Usable events and triggers: |
---|
84 | spawntrigger |
---|
85 | --> |
---|
86 | |
---|
87 | <EventMultiTrigger name="spawntrigger"> |
---|
88 | <events> |
---|
89 | <trigger> |
---|
90 | <EventListener event="playerSpawn" /> |
---|
91 | </trigger> |
---|
92 | </events> |
---|
93 | </EventMultiTrigger> |
---|
94 | |
---|
95 | <!--TODO: Complete the DistanceTriggers for completing/succeeding correctly! --> |
---|
96 | |
---|
97 | <DistanceTrigger active=false name="missionComplete" position="2000,0,0" distance=100 target="SpaceShip" stayactive=true> |
---|
98 | <events> |
---|
99 | <activity> |
---|
100 | <EventListener event="missionCompletePrereq" /> |
---|
101 | </activity> |
---|
102 | </events> |
---|
103 | </DistanceTrigger> |
---|
104 | |
---|
105 | <Script code="Mission endMission true" onLoad="false"> |
---|
106 | <events> |
---|
107 | <trigger> |
---|
108 | <EventListener event="missionComplete" /> |
---|
109 | </trigger> |
---|
110 | </events> |
---|
111 | </Script> |
---|
112 | |
---|
113 | <DistanceTrigger active=false name="missionFailed" position="2000,0,0" distance=100 target="SpaceShip" stayactive=true> |
---|
114 | <events> |
---|
115 | <activity> |
---|
116 | <EventListener event="missionFailedPrereq" /> |
---|
117 | </activity> |
---|
118 | </events> |
---|
119 | </DistanceTrigger> |
---|
120 | |
---|
121 | <Script code="Mission endMission fail" onLoad="false"> |
---|
122 | <events> |
---|
123 | <trigger> |
---|
124 | <EventListener event="failMission" /> |
---|
125 | </trigger> |
---|
126 | </events> |
---|
127 | </Script> |
---|
128 | |
---|
129 | <!--QUEST EFFECT BEACONS --> |
---|
130 | |
---|
131 | <QuestEffectBeacon times=1> |
---|
132 | <effects> |
---|
133 | <AddQuest questId="quest1" /> |
---|
134 | </effects> |
---|
135 | <events> |
---|
136 | <execute> |
---|
137 | <EventListener event="spawntrigger" /> |
---|
138 | </execute> |
---|
139 | </events> |
---|
140 | </QuestEffectBeacon> |
---|
141 | |
---|
142 | <!--NOTIFICATIONS --> |
---|
143 | |
---|
144 | <SimpleNotification broadcast="true" message="Welcome, Commander."> |
---|
145 | <events> |
---|
146 | <trigger> |
---|
147 | <EventTrigger stayactive="true" delay=4 > |
---|
148 | <events> |
---|
149 | <trigger> |
---|
150 | <EventListener event="spawntrigger" /> |
---|
151 | </trigger> |
---|
152 | </events> |
---|
153 | </EventTrigger> |
---|
154 | </trigger> |
---|
155 | </events> |
---|
156 | </SimpleNotification> |
---|
157 | |
---|
158 | <!--STATIONS --> |
---|
159 | |
---|
160 | <!--ELEMENTS --> |
---|
161 | |
---|
162 | <!-- Planets from the shuttle defense Level. Remove or keep at will. --> |
---|
163 | |
---|
164 | <Planet |
---|
165 | position="<?lua printC(cPlanet1) ?>" |
---|
166 | scale="2000" |
---|
167 | collisionType="dynamic" |
---|
168 | linearDamping="0.8" |
---|
169 | angularDamping="0" |
---|
170 | mass="5000000" |
---|
171 | pitch="0" |
---|
172 | mesh="planets/muunilinst.mesh" |
---|
173 | atmosphere="atmosphere1" |
---|
174 | rotationaxis="1,0,0" |
---|
175 | rotationrate="1.0" |
---|
176 | atmospheresize="80.0f" |
---|
177 | imagesize="1024.0f" |
---|
178 | collisiondamage = 2 |
---|
179 | enablecollisiondamage = true |
---|
180 | > |
---|
181 | <attached> |
---|
182 | <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" /> |
---|
183 | </attached> |
---|
184 | <collisionShapes> |
---|
185 | <SphereCollisionShape radius="2000" position="0,0,0" /> |
---|
186 | </collisionShapes> |
---|
187 | </Planet> |
---|
188 | |
---|
189 | <?lua |
---|
190 | dofile("includes/asteroidField.lua") |
---|
191 | asteroidBelt(cPlanet1[1], cPlanet1[2], cPlanet1[3], 30, 0, 30, 20, 40, 2800, 3000, 200, 1) |
---|
192 | ?> |
---|
193 | |
---|
194 | <Planet |
---|
195 | position="<?lua printC(cPlanet2) ?>" |
---|
196 | scale="3000" |
---|
197 | collisionType="dynamic" |
---|
198 | linearDamping="0.8" |
---|
199 | angularDamping="0" |
---|
200 | mass="5000000" |
---|
201 | pitch="0" |
---|
202 | mesh="planets/planet3.mesh" |
---|
203 | atmosphere="atmosphere1" |
---|
204 | rotationaxis="1,0,0" |
---|
205 | rotationrate="1.0" |
---|
206 | atmospheresize="80.0f" |
---|
207 | imagesize="1024.0f" |
---|
208 | collisiondamage = 2 |
---|
209 | enablecollisiondamage = true |
---|
210 | > |
---|
211 | <attached> |
---|
212 | <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" /> |
---|
213 | </attached> |
---|
214 | <collisionShapes> |
---|
215 | <SphereCollisionShape radius="3000" position="0,0,0" /> |
---|
216 | </collisionShapes> |
---|
217 | </Planet> |
---|
218 | |
---|
219 | <?lua |
---|
220 | dofile("includes/asteroidField.lua") |
---|
221 | asteroidBelt(cPlanet2[1], cPlanet2[2], cPlanet2[3], 30, 20, 100, 20, 40, 3400, 3700, 400, 1) |
---|
222 | ?> |
---|
223 | |
---|
224 | </Scene> |
---|
225 | </Level> |
---|