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