[6955] | 1 | <?lua |
---|
[7679] | 2 | include("HUDTemplates3.oxo") |
---|
[6955] | 3 | include("stats.oxo") |
---|
[7679] | 4 | include("templates/spaceshipAssff.oxt") |
---|
| 5 | include("templates/spaceshipGhost.oxt") |
---|
| 6 | include("dynamicMatchHUD.oxo") |
---|
| 7 | include("templates/lodInformation.oxt") |
---|
[6955] | 8 | ?> |
---|
| 9 | |
---|
| 10 | <Level |
---|
| 11 | name = "Dynamic Match" |
---|
| 12 | description = "In progress -level for dynamicmatch" |
---|
| 13 | gametype = "Dynamicmatch" |
---|
| 14 | > |
---|
[7062] | 15 | <templates> |
---|
| 16 | <Template link=lodtemplate_default /> |
---|
| 17 | </templates> |
---|
[8706] | 18 | <?lua include("includes/notifications.oxi") ?> |
---|
[7062] | 19 | |
---|
[6955] | 20 | <Scene |
---|
| 21 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 22 | skybox = "Orxonox/Starbox" |
---|
| 23 | > |
---|
| 24 | <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" /> |
---|
| 25 | |
---|
[6987] | 26 | <!-- ------------------Planet needs gravity----------------- --> |
---|
[6955] | 27 | <Planet position="0,0,0" scale=500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> |
---|
| 28 | <StaticEntity position="0,0,0" collisionType=static> |
---|
| 29 | <collisionShapes> |
---|
[6987] | 30 | <SphereCollisionShape radius="499" /> |
---|
[6955] | 31 | </collisionShapes> |
---|
| 32 | </StaticEntity> |
---|
| 33 | |
---|
[6987] | 34 | <!-- -----------12-Spawnpoints around the planet------------- --> |
---|
[8922] | 35 | <!-- inner Spawnpoints --> |
---|
[6955] | 36 | <TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 37 | <TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 38 | <TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 39 | <TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 40 | <TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 41 | <TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
[6987] | 42 | <!--outer Spawnpoints --> |
---|
| 43 | <TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 44 | <TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
[6955] | 45 | <TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 46 | <TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 47 | <TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 48 | <TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 49 | |
---|
| 50 | <?lua |
---|
| 51 | dofile("includes/CuboidSpaceStation.lua") |
---|
| 52 | ?> |
---|
[6987] | 53 | <!-- ----------------Rotating satellite--------------- --> |
---|
[6955] | 54 | <MovableEntity position="1,1,1" rotationrate="-4.5" rotationaxis="0,0,1"> |
---|
| 55 | <attached> |
---|
| 56 | <StaticEntity position="-2500,0,0" yaw=90 pitch=90> |
---|
| 57 | <attached> |
---|
| 58 | <?lua |
---|
| 59 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
| 60 | ?> |
---|
[7063] | 61 | <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 62 | <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
| 63 | <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/> |
---|
[6955] | 64 | </attached> |
---|
| 65 | </StaticEntity> |
---|
| 66 | </attached> |
---|
| 67 | </MovableEntity> |
---|
| 68 | |
---|
[6987] | 69 | <!-- ---------------asteroid ellypse----------------- --> |
---|
[6955] | 70 | <?lua |
---|
| 71 | max = 20 |
---|
[7655] | 72 | for i = 0, max, 1 |
---|
[6955] | 73 | do |
---|
| 74 | y = math.sin(i/max*6)*4000 |
---|
| 75 | z = math.cos(i/max*6)*5000 |
---|
[7655] | 76 | x = 0 |
---|
[6955] | 77 | ?> |
---|
| 78 | <?lua |
---|
| 79 | for k = 1, 25, 1 |
---|
| 80 | do |
---|
| 81 | j = math.random() |
---|
| 82 | ?> |
---|
| 83 | |
---|
[8079] | 84 | <StaticEntity position="<?lua print(x + math.random() * 1000-500) ?>,<?lua print(y + math.random() * 1000-500) ?>,<?lua print(z + math.random() * 5000-2500) ?>" scale="<?lua print(j * 5) ?>" > |
---|
[6955] | 85 | <attached> |
---|
[8079] | 86 | <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> |
---|
[6987] | 87 | <attached><!-- ---------asteroid fog----- --> |
---|
| 88 | <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> |
---|
| 89 | </attached> |
---|
| 90 | </Model> |
---|
[6955] | 91 | </attached> |
---|
| 92 | <?lua if i == 5 then ?><collisionShapes> |
---|
| 93 | <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> |
---|
| 94 | </collisionShapes> <?lua end ?> |
---|
[6987] | 95 | </StaticEntity> |
---|
[6955] | 96 | <?lua |
---|
| 97 | end |
---|
| 98 | ?> |
---|
| 99 | <?lua end ?> |
---|
| 100 | |
---|
| 101 | <GlobalShader compositor="Bloom" visible=false> |
---|
| 102 | <events> |
---|
| 103 | <visibility> |
---|
| 104 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
| 105 | </visibility> |
---|
| 106 | </events> |
---|
| 107 | </GlobalShader> |
---|
[6987] | 108 | <!-- ----------------random fog --- not in use |
---|
[6955] | 109 | <?lua |
---|
| 110 | for i = 1, 100, 1 |
---|
| 111 | do |
---|
| 112 | j = math.random() |
---|
| 113 | ?> |
---|
| 114 | |
---|
[6987] | 115 | <StaticEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>"> |
---|
[6955] | 116 | <attached> |
---|
[6987] | 117 | <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> |
---|
[6955] | 118 | </attached> |
---|
[6987] | 119 | </StaticEntity> |
---|
| 120 | |
---|
[6955] | 121 | <?lua |
---|
| 122 | end |
---|
| 123 | ?> |
---|
| 124 | --> |
---|
| 125 | </Scene> |
---|
| 126 | </Level> |
---|