[10089] | 1 | <LevelInfo |
---|
| 2 | name = "kecks" |
---|
[10164] | 3 | description = "Save your planet." |
---|
[10130] | 4 | tags = "Test" |
---|
[10089] | 5 | screenshot = "pirateattack.png" |
---|
[10119] | 6 | gametype=Mission |
---|
[10089] | 7 | /> |
---|
| 8 | |
---|
[10164] | 9 | <!--"screenShot_12102014_144326778.png"--> |
---|
| 10 | |
---|
[10089] | 11 | <?lua |
---|
| 12 | include("stats.oxo") |
---|
| 13 | include("HUDTemplates3.oxo") |
---|
| 14 | include("templates/lodInformation.oxt") |
---|
[10130] | 15 | |
---|
[10089] | 16 | ?> |
---|
| 17 | |
---|
| 18 | <?lua |
---|
[10119] | 19 | dofile("includes/asteroidField.lua") |
---|
| 20 | ?> |
---|
| 21 | |
---|
| 22 | <?lua |
---|
[10089] | 23 | include("templates/spaceshipAssff2.oxt") |
---|
| 24 | include("templates/spaceshipPirate.oxt") |
---|
[10119] | 25 | include("templates/spaceshipHXY.oxt") |
---|
[10089] | 26 | ?> |
---|
| 27 | |
---|
[10153] | 28 | <Level gametype = "Mission"> |
---|
[10138] | 29 | |
---|
[10089] | 30 | <templates> |
---|
| 31 | <Template link=lodtemplate_default /> |
---|
| 32 | </templates> |
---|
| 33 | |
---|
[10164] | 34 | <?lua include("includes/notifications.oxi") ?> |
---|
| 35 | |
---|
| 36 | <NotificationQueueCEGUI |
---|
| 37 | name="narrative" |
---|
| 38 | targets="simpleNotification" |
---|
| 39 | size=3 |
---|
| 40 | displayTime=3.9 |
---|
| 41 | position="0.2, 0, 0.1, 0" |
---|
| 42 | fontSize="23" |
---|
| 43 | fontColor="0.3, 1, 0.2, 0.8" |
---|
| 44 | alignment="HorzCentred" |
---|
| 45 | displaySize="0.6, 0, 0, 0" |
---|
| 46 | /> |
---|
| 47 | |
---|
[10153] | 48 | <Scene |
---|
| 49 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 50 | skybox = "Orxonox/skyBoxBasic" |
---|
| 51 | > |
---|
| 52 | <!-- TODO: Trigger fuer Boxen, SimpleNotification, Gegner sollen nicht explodieren, Spawnpoint 2 --> |
---|
[10089] | 53 | |
---|
[10153] | 54 | <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"/> |
---|
| 55 | |
---|
[10164] | 56 | <SpawnPoint roll="180" position="0,0, 0" lookat="0, 1000, 0" spawnclass=SpaceShip pawndesign=spaceshipHXY team=0 active="true" /> |
---|
[10153] | 57 | |
---|
| 58 | <!-- 2. Spawnpoint |
---|
| 59 | <SpawnPoint roll="180" position="0, 114500, 0" lookat="0, 150000, 0" spawnclass=SpaceShip pawndesign=spaceshipHXY team=0 active="false" /> |
---|
| 60 | <events> |
---|
| 61 | <activity> |
---|
| 62 | <EventListener event="atPortal1" /> |
---|
| 63 | </activity> |
---|
| 64 | </events> |
---|
| 65 | </SpawnPoint> |
---|
[10138] | 66 | --> |
---|
[10164] | 67 | <DistanceTrigger name="startmission" position="0,100,0" target="SpaceShip" targetname="spaceshipHXY" distance=90 activations=1 stayActive=true /> |
---|
| 68 | |
---|
| 69 | <SimpleNotification message="Follow the spaceships to escape" boadcast="true"> |
---|
[10153] | 70 | <events> |
---|
| 71 | <trigger> |
---|
| 72 | <EventListener event="startmission" /> |
---|
| 73 | </trigger> |
---|
| 74 | </events> |
---|
[10164] | 75 | </SimpleNotification> |
---|
| 76 | |
---|
| 77 | <SimpleNotification message="Destroy the box to free the spaceships." boadcast="true"> |
---|
| 78 | <events> |
---|
| 79 | <trigger> |
---|
| 80 | <EventListener event="atPortal1" /> |
---|
| 81 | </trigger> |
---|
| 82 | </events> |
---|
| 83 | </SimpleNotification> |
---|
| 84 | |
---|
| 85 | <SimpleNotification message="Defend your planet." broadcast="true"> |
---|
| 86 | <events> |
---|
| 87 | <trigger> |
---|
| 88 | <EventListener event="boxDestroyed" /> |
---|
| 89 | </trigger> |
---|
| 90 | </events> |
---|
| 91 | </SimpleNotification> |
---|
| 92 | |
---|
| 93 | |
---|
[10153] | 94 | <!-- Distance Trigger--> |
---|
| 95 | |
---|
| 96 | <DistanceTrigger name="atPortal1" position="0,112000,0" target="SpaceShip" targetname="spaceshipHXY" distance=100 activations=1 stayActive=true /> |
---|
[10164] | 97 | <EventTrigger name="boxtrigger" activations="1" stayactive="true" delay=0.1> |
---|
| 98 | <events> |
---|
| 99 | <trigger> |
---|
| 100 | <EventListener event="boxDestroyed" /> |
---|
| 101 | </trigger> |
---|
| 102 | </events> |
---|
| 103 | </EventTrigger> |
---|
[10138] | 104 | |
---|
[10153] | 105 | <!--Asteroiden-Guertel Versuch Schlaufe |
---|
[10119] | 106 | <?lua |
---|
| 107 | for i = 1, 3, 1 |
---|
| 108 | do |
---|
| 109 | ?> |
---|
| 110 | |
---|
| 111 | asteroidBelt(0, 0, 0, 0, 0, 100, 50+10*i, 100+10*i, 3000*i+500, 3000*i, 100+100*i , 0) |
---|
| 112 | |
---|
| 113 | <?lua |
---|
| 114 | end |
---|
| 115 | ?> |
---|
[10138] | 116 | --> |
---|
[10164] | 117 | |
---|
[10153] | 118 | |
---|
| 119 | <!-- Asteroidenguertel--> |
---|
[10119] | 120 | <?lua |
---|
[10153] | 121 | asteroidBelt(0, 0, 0, 0, 0, 50, 60, 110, 3300, 3000, 100 , 1) |
---|
| 122 | asteroidBelt(0, 0, 0, 0, 0, 50, 70, 120, 6400, 6000, 125 , 1) |
---|
| 123 | asteroidBelt(0, 0, 0, 0, 0, 50, 80, 130, 9500, 9000, 150 , 1) |
---|
[10119] | 124 | ?> |
---|
[10153] | 125 | <!--ENDE Asteroidenguertel--> |
---|
[10119] | 126 | |
---|
[10153] | 127 | <!-- Beschuetzer und Wegweiser Innen--> |
---|
| 128 | |
---|
[10119] | 129 | <?lua |
---|
[10153] | 130 | for i = 0, (3*math.pi/2), (math.pi/2) |
---|
| 131 | do |
---|
[10119] | 132 | ?> |
---|
[10153] | 133 | |
---|
| 134 | |
---|
| 135 | |
---|
| 136 | <SpaceShip position="<?lua print(250*math.sin(i)) ?>, <?lua print(250*math.cos(i)) ?>,0" lookat="<?lua print(1500*math.sin(i)) ?>, <?lua print(1500*math.cos(i)) ?>,0" maxhealt="150" initialhealth="150" roll="<?lua print(180-i*180/math.pi)?>" > |
---|
| 137 | <templates> |
---|
| 138 | <Template link=spaceshipassff2 /> <!--spaceshipTransporter --> |
---|
| 139 | </templates> |
---|
| 140 | <controller> |
---|
| 141 | <WaypointPatrolController alertnessradius=1500 active=true team=0> |
---|
| 142 | <waypoints> |
---|
[10164] | 143 | <StaticEntity position="0,10350,0"/> |
---|
[10153] | 144 | </waypoints> |
---|
| 145 | </WaypointPatrolController> |
---|
| 146 | </controller> |
---|
| 147 | </SpaceShip> |
---|
| 148 | |
---|
| 149 | |
---|
[10138] | 150 | <?lua |
---|
[10153] | 151 | end |
---|
[10138] | 152 | ?> |
---|
[10153] | 153 | |
---|
| 154 | <!-- ENDE Beschuetzer und Wegweiser Innen--> |
---|
| 155 | |
---|
| 156 | <!-- Gegner Innen--> |
---|
| 157 | |
---|
| 158 | <?lua |
---|
| 159 | for i = 0, (3*math.pi/2), (math.pi/2) |
---|
| 160 | do |
---|
| 161 | ?> |
---|
| 162 | |
---|
| 163 | |
---|
| 164 | <SpaceShip position="<?lua print(1500*math.sin(i)) ?>,<?lua print(1500*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0"> |
---|
| 165 | |
---|
[10138] | 166 | <templates> |
---|
| 167 | <Template link=spaceshippirate /> |
---|
| 168 | </templates> |
---|
| 169 | <controller> |
---|
[10153] | 170 | <WaypointPatrolController alertnessradius=1500 active=true team=1> |
---|
[10138] | 171 | <waypoints> |
---|
| 172 | <StaticEntity position="0,0,0"/> |
---|
| 173 | </waypoints> |
---|
| 174 | </WaypointPatrolController> |
---|
| 175 | </controller> |
---|
[10153] | 176 | </SpaceShip> |
---|
| 177 | |
---|
[10138] | 178 | <?lua |
---|
| 179 | end |
---|
| 180 | ?> |
---|
[10153] | 181 | |
---|
| 182 | <!-- ENDE Gegner Innen--> |
---|
| 183 | |
---|
| 184 | <!-- Gegnerische Patrouille --> |
---|
| 185 | |
---|
[10138] | 186 | <?lua |
---|
[10153] | 187 | for i = 0, (7*math.pi/4), (math.pi/4) |
---|
| 188 | do |
---|
| 189 | ?> |
---|
| 190 | |
---|
| 191 | <?lua |
---|
| 192 | for j = 1, 3, 1 |
---|
| 193 | do |
---|
| 194 | ?> |
---|
| 195 | <SpaceShip position="<?lua print((600+3200*j)*math.sin(i)) ?>,<?lua print((600+3200*j)*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0" > |
---|
| 196 | |
---|
| 197 | <templates> |
---|
| 198 | <Template link=spaceshippirate /> |
---|
| 199 | </templates> |
---|
| 200 | <controller> |
---|
| 201 | <WaypointPatrolController alertnessradius=1500 active=true team=1> |
---|
| 202 | <waypoints> |
---|
| 203 | <?lua |
---|
[10164] | 204 | for k = 0, (29*math.pi/15), (math.pi/15) |
---|
[10153] | 205 | do |
---|
| 206 | ?> |
---|
| 207 | |
---|
| 208 | <Model mesh="cube.mesh" scale=0 position="<?lua print((600+3200*j)*math.sin(i+k)) ?>,<?lua print((600+3200*j)*math.cos(i+k)) ?>,0" /> |
---|
| 209 | |
---|
| 210 | <?lua |
---|
| 211 | end |
---|
| 212 | ?> |
---|
| 213 | |
---|
| 214 | </waypoints> |
---|
| 215 | </WaypointPatrolController> |
---|
| 216 | </controller> |
---|
| 217 | </SpaceShip> |
---|
| 218 | <?lua |
---|
| 219 | end |
---|
| 220 | ?> |
---|
| 221 | <?lua |
---|
| 222 | end |
---|
| 223 | ?> |
---|
| 224 | |
---|
| 225 | <!-- ENDE Gegnerische Patrouille --> |
---|
| 226 | |
---|
| 227 | <!-- Gegnerische Flotte/ Totenkopfflotte--> |
---|
| 228 | |
---|
| 229 | <?lua |
---|
| 230 | for j = 0, 1, 1 |
---|
| 231 | do |
---|
| 232 | ?> |
---|
| 233 | <?lua |
---|
| 234 | for i = 0, 4, 1 |
---|
[10138] | 235 | do |
---|
[10153] | 236 | ?> |
---|
[10164] | 237 | <SpaceShip position="<?lua print (50*i-100)?>, 120000 ,<?lua print (-200*j+150)?>" roll="180" lookat="0, 0, 0"> |
---|
[10138] | 238 | <templates> |
---|
| 239 | <Template link=spaceshippirate /> |
---|
| 240 | </templates> |
---|
| 241 | <controller> |
---|
[10164] | 242 | <WaypointPatrolController alertnessradius=1000 active=false team=1> |
---|
[10138] | 243 | <waypoints> |
---|
[10164] | 244 | <StaticEntity position="<?lua print (5000*i-10000)?>, 0 ,<?lua print (-20000*j+15000)?>"/> |
---|
[10138] | 245 | </waypoints> |
---|
[10153] | 246 | <events> |
---|
| 247 | <activity> |
---|
| 248 | <EventListener event="atPortal1" /> |
---|
| 249 | </activity> |
---|
| 250 | </events> |
---|
[10138] | 251 | </WaypointPatrolController> |
---|
| 252 | </controller> |
---|
| 253 | </SpaceShip> |
---|
[10153] | 254 | <?lua |
---|
| 255 | end |
---|
| 256 | ?> |
---|
[10138] | 257 | <?lua |
---|
| 258 | end |
---|
| 259 | ?> |
---|
[10153] | 260 | |
---|
| 261 | <?lua |
---|
| 262 | for j = 0, 1, 1 |
---|
| 263 | do |
---|
| 264 | ?> |
---|
| 265 | <?lua |
---|
| 266 | for i = 0, 6, 1 |
---|
| 267 | do |
---|
| 268 | ?> |
---|
[10164] | 269 | <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,<?lua print (100-100*j)?>" roll="180" lookat="0, 0, 0"> |
---|
[10153] | 270 | <templates> |
---|
| 271 | <Template link=spaceshippirate /> |
---|
| 272 | </templates> |
---|
| 273 | <controller> |
---|
[10164] | 274 | <WaypointPatrolController alertnessradius=1250 active=false team=1> |
---|
[10153] | 275 | <waypoints> |
---|
[10164] | 276 | <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,<?lua print (10000-10000*j)?>"/> |
---|
[10153] | 277 | </waypoints> |
---|
| 278 | <events> |
---|
| 279 | <activity> |
---|
| 280 | <EventListener event="atPortal1" /> |
---|
| 281 | </activity> |
---|
| 282 | </events> |
---|
| 283 | </WaypointPatrolController> |
---|
| 284 | </controller> |
---|
| 285 | </SpaceShip> |
---|
| 286 | <?lua |
---|
| 287 | end |
---|
| 288 | ?> |
---|
| 289 | <?lua |
---|
| 290 | end |
---|
| 291 | ?> |
---|
| 292 | |
---|
| 293 | <?lua |
---|
| 294 | for i = 0, 6, 3 |
---|
| 295 | do |
---|
| 296 | ?> |
---|
[10164] | 297 | <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,50" roll="180" lookat="0, 0, 0"> |
---|
[10153] | 298 | <templates> |
---|
| 299 | <Template link=spaceshippirate /> |
---|
| 300 | </templates> |
---|
| 301 | <controller> |
---|
[10164] | 302 | <WaypointPatrolController alertnessradius=1500 active=false team=1> |
---|
[10153] | 303 | <waypoints> |
---|
[10164] | 304 | <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,5000"/> |
---|
[10153] | 305 | </waypoints> |
---|
| 306 | <events> |
---|
| 307 | <activity> |
---|
| 308 | <EventListener event="atPortal1" /> |
---|
| 309 | </activity> |
---|
| 310 | </events> |
---|
| 311 | </WaypointPatrolController> |
---|
| 312 | </controller> |
---|
| 313 | </SpaceShip> |
---|
| 314 | <?lua |
---|
| 315 | end |
---|
| 316 | ?> |
---|
| 317 | |
---|
[10138] | 318 | |
---|
[10153] | 319 | <?lua |
---|
| 320 | for i = 1, 5, 2 |
---|
| 321 | do |
---|
| 322 | ?> |
---|
| 323 | |
---|
[10164] | 324 | <SpaceShip position="<?lua print (50*i-150)?>, 120000 ,-100" roll="180" lookat="0, 0, 0"> |
---|
[10138] | 325 | <templates> |
---|
| 326 | <Template link=spaceshippirate /> |
---|
| 327 | </templates> |
---|
| 328 | <controller> |
---|
[10164] | 329 | <WaypointPatrolController alertnessradius=1000 active=false team=1> |
---|
[10138] | 330 | <waypoints> |
---|
[10164] | 331 | <StaticEntity position="<?lua print (5000*i-15000)?>, 0 ,-10000"/> |
---|
[10138] | 332 | </waypoints> |
---|
[10153] | 333 | <events> |
---|
| 334 | <activity> |
---|
| 335 | <EventListener event="atPortal1" /> |
---|
| 336 | </activity> |
---|
| 337 | </events> |
---|
[10138] | 338 | </WaypointPatrolController> |
---|
| 339 | </controller> |
---|
[10153] | 340 | </SpaceShip> |
---|
| 341 | |
---|
| 342 | <?lua |
---|
| 343 | end |
---|
| 344 | ?> |
---|
| 345 | |
---|
| 346 | <!-- ENDE Gegnerische Flotte/ Totenkopfflotte--> |
---|
[10138] | 347 | |
---|
[10153] | 348 | <!-- Boxen um Flotte zu befreien --> |
---|
[10138] | 349 | |
---|
[10153] | 350 | |
---|
[10164] | 351 | <Pawn health=20 position="0, 112900, 0" direction="0,-1,0" name="boxDestroyed" collisionType=dynamic mass=100000 radarname = "Gravitation Box" > |
---|
[10153] | 352 | <attached> |
---|
[10164] | 353 | <Model position="0,0,0" scale="10" mesh="CuboidBody.mesh" /> |
---|
[10153] | 354 | </attached> |
---|
| 355 | <collisionShapes> |
---|
| 356 | <BoxCollisionShape position="0,0,0" halfExtents="5,5,5" /> |
---|
| 357 | </collisionShapes> |
---|
| 358 | <controller> |
---|
| 359 | <WaypointController team=1> |
---|
| 360 | </WaypointController> |
---|
| 361 | </controller> |
---|
| 362 | </Pawn> |
---|
[10164] | 363 | |
---|
[10153] | 364 | |
---|
| 365 | <!-- Flotte Erde--> |
---|
| 366 | <?lua |
---|
| 367 | for j = 0, 2, 1 |
---|
| 368 | do |
---|
| 369 | ?> |
---|
| 370 | <?lua |
---|
| 371 | for i = 0, 2, 1 |
---|
| 372 | do |
---|
| 373 | ?> |
---|
| 374 | |
---|
| 375 | |
---|
[10164] | 376 | <SpaceShip position="<?lua print(50-i*50) ?>, 113000,<?lua print(50-j*50) ?>" lookat="0,150000,0" maxhealt="200" initialhealth="200" > |
---|
[10153] | 377 | <templates> |
---|
| 378 | <Template link=spaceshipassff2 /> <!--spaceshipTransporter --> |
---|
| 379 | </templates> |
---|
| 380 | <controller> |
---|
[10164] | 381 | <WaypointPatrolController alertnessradius=5000 active=false team=0> |
---|
[10153] | 382 | <waypoints> |
---|
[10164] | 383 | <StaticEntity position="<?lua print(200-i*200) ?>,113000,<?lua print(400-j*400) ?>"/> |
---|
[10153] | 384 | </waypoints> |
---|
| 385 | <events> |
---|
| 386 | <activity> |
---|
[10164] | 387 | <EventListener event="boxtrigger" /> |
---|
[10153] | 388 | </activity> |
---|
| 389 | </events> |
---|
| 390 | </WaypointPatrolController> |
---|
| 391 | </controller> |
---|
[10164] | 392 | </SpaceShip> |
---|
[10138] | 393 | |
---|
[10153] | 394 | |
---|
| 395 | <?lua |
---|
| 396 | end |
---|
| 397 | ?> |
---|
| 398 | |
---|
| 399 | <?lua |
---|
| 400 | end |
---|
| 401 | ?> |
---|
| 402 | |
---|
| 403 | <!-- ENDE Flotte Erde--> |
---|
| 404 | |
---|
| 405 | <!--Portal--> |
---|
| 406 | <Template name=PortalDefault> |
---|
| 407 | <PortalEndPoint> |
---|
| 408 | <attached> |
---|
| 409 | <Model mesh="Spacegate.mesh" /> |
---|
| 410 | </attached> |
---|
| 411 | </PortalEndPoint> |
---|
| 412 | </Template> |
---|
| 413 | |
---|
| 414 | <PortalEndPoint position="0,112000,0" id="1" pitch="90" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> |
---|
[10164] | 415 | <PortalEndPoint position="0,10350,0" id="2" pitch="90" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> |
---|
[10153] | 416 | <PortalLink fromID="1" toID="2" /> |
---|
| 417 | <PortalLink fromID="2" toID="1" /> |
---|
| 418 | <!--ENDE Portal--> |
---|
| 419 | |
---|
| 420 | <!--Heimatplanet--> |
---|
| 421 | <Planet |
---|
| 422 | position="0,100000,0" |
---|
| 423 | scale="10000" |
---|
| 424 | collisionType="dynamic" |
---|
| 425 | linearDamping="0.8" |
---|
| 426 | angularDamping="0" |
---|
| 427 | mass="5000000" |
---|
[10164] | 428 | pitch="180" |
---|
[10153] | 429 | yaw="0" |
---|
| 430 | roll="0" |
---|
| 431 | mesh="planets/earth.mesh" |
---|
| 432 | atmosphere="atmosphere1" |
---|
| 433 | rotationaxis="0,0,1" |
---|
| 434 | rotationrate="5.0" |
---|
| 435 | atmospheresize="80.0f" |
---|
| 436 | imagesize="1024.0f" |
---|
| 437 | collisiondamage = 1 |
---|
| 438 | enablecollisiondamage = true |
---|
| 439 | > |
---|
| 440 | <attached> |
---|
| 441 | <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> |
---|
| 442 | </attached> |
---|
| 443 | <collisionShapes> |
---|
| 444 | <SphereCollisionShape radius="10000" position="0,0,0" /> |
---|
| 445 | </collisionShapes> |
---|
| 446 | </Planet> |
---|
| 447 | <!--ENDE Heimatplanet--> |
---|
[10138] | 448 | |
---|
[10089] | 449 | </Scene> |
---|
[10138] | 450 | |
---|
[10089] | 451 | </Level> |
---|
| 452 | |
---|