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