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