| 1 |   | 
|---|
| 2 | <LevelInfo | 
|---|
| 3 |  name = "Portals" | 
|---|
| 4 |  description = "Level for testing portals" | 
|---|
| 5 |  tags = "test" | 
|---|
| 6 |  screenshot = "portals.png" | 
|---|
| 7 | /> | 
|---|
| 8 |  | 
|---|
| 9 | <?lua | 
|---|
| 10 |   include("HUDTemplates3.oxo") | 
|---|
| 11 |   include("stats.oxo") | 
|---|
| 12 |   include("templates/spaceshipAssff.oxt") | 
|---|
| 13 |   include("templates/pickupRepresentationTemplates.oxt") | 
|---|
| 14 |   include("templates/lodInformation.oxt") | 
|---|
| 15 | ?> | 
|---|
| 16 |  | 
|---|
| 17 | <Level> | 
|---|
| 18 |   <templates> | 
|---|
| 19 |     <Template link=lodtemplate_default /> | 
|---|
| 20 |   </templates> | 
|---|
| 21 |   <?lua include("includes/notifications.oxi") ?> | 
|---|
| 22 |  | 
|---|
| 23 |   <Scene | 
|---|
| 24 |    ambientlight = "0.5, 0.5, 0.5" | 
|---|
| 25 |    skybox       = "Orxonox/skypanoramagen1" | 
|---|
| 26 |   > | 
|---|
| 27 |  | 
|---|
| 28 |     <Template name=PortalDefault> | 
|---|
| 29 |         <PortalEndPoint> | 
|---|
| 30 |             <attached> | 
|---|
| 31 |                 <Billboard material="Portals/Default" /> | 
|---|
| 32 |             </attached> | 
|---|
| 33 |         </PortalEndPoint> | 
|---|
| 34 |     </Template> | 
|---|
| 35 |  | 
|---|
| 36 |     <PortalEndPoint position="0,0,0" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> | 
|---|
| 37 |     <PortalEndPoint position="-300,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> | 
|---|
| 38 |     <PortalLink fromID="1" toID="2" /> | 
|---|
| 39 |     <PortalLink fromID="2" toID="1" /> | 
|---|
| 40 |  | 
|---|
| 41 |     <!--PickupSpawner position="-200,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="10"> | 
|---|
| 42 |       <pickup> | 
|---|
| 43 |         <DronePickup template=dronepickup /> | 
|---|
| 44 |       </pickup> | 
|---|
| 45 |     </PickupSpawner--> | 
|---|
| 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 |     <SpawnPoint position="200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
| 50 |  | 
|---|
| 51 |     <GlobalShader compositor="Bloom" visible=false> | 
|---|
| 52 |       <events> | 
|---|
| 53 |         <visibility> | 
|---|
| 54 |           <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> | 
|---|
| 55 |         </visibility> | 
|---|
| 56 |       </events> | 
|---|
| 57 |     </GlobalShader> | 
|---|
| 58 |  | 
|---|
| 59 |  | 
|---|
| 60 | <!-- | 
|---|
| 61 |     <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> | 
|---|
| 62 |     <StaticEntity position="0,0,0" collisionType=static> | 
|---|
| 63 |       <collisionShapes> | 
|---|
| 64 |         <SphereCollisionShape radius="20" /> | 
|---|
| 65 |       </collisionShapes> | 
|---|
| 66 |     </StaticEntity> | 
|---|
| 67 | --> | 
|---|
| 68 |  | 
|---|
| 69 |  | 
|---|
| 70 | <!-- | 
|---|
| 71 |     <?lua | 
|---|
| 72 |       for i = 1, 70, 1 do | 
|---|
| 73 |     ?> | 
|---|
| 74 |       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 75 |         <attached> | 
|---|
| 76 |           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 77 |         </attached> | 
|---|
| 78 |       </MovableEntity> | 
|---|
| 79 |       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 80 |         <attached> | 
|---|
| 81 |           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 82 |         </attached> | 
|---|
| 83 |       </MovableEntity> | 
|---|
| 84 |  | 
|---|
| 85 |       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 86 |         <attached> | 
|---|
| 87 |           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 88 |         </attached> | 
|---|
| 89 |       </MovableEntity> | 
|---|
| 90 |       <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 91 |         <attached> | 
|---|
| 92 |           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 93 |         </attached> | 
|---|
| 94 |       </MovableEntity> | 
|---|
| 95 |  | 
|---|
| 96 |       <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 97 |         <attached> | 
|---|
| 98 |           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 99 |         </attached> | 
|---|
| 100 |       </MovableEntity> | 
|---|
| 101 |       <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> | 
|---|
| 102 |         <attached> | 
|---|
| 103 |           <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> | 
|---|
| 104 |         </attached> | 
|---|
| 105 |       </MovableEntity> | 
|---|
| 106 |     <?lua end ?> | 
|---|
| 107 | --> | 
|---|
| 108 |  | 
|---|
| 109 |   </Scene> | 
|---|
| 110 | </Level> | 
|---|