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