Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2012/data/levels/Spacerace2.oxw @ 9241

Last change on this file since 9241 was 9241, checked in by decapitb, 12 years ago

tower defense update

  • Property svn:mergeinfo set to (toggle deleted branches)
    /code/branches/newlevel2012/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/pickup2012/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/presentation2011/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/shipSelection/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/sound2012/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/spacegate/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/spaceraceTwo/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/surfaceRace/data/levels/Spacerace2.oxwmergedeligible
    /code/trunk/data/levels/Spacerace2.oxwmergedeligible
    /code/branches/ai/data/levels/Spacerace2.oxw6592-7033
    /code/branches/ai2/data/levels/Spacerace2.oxw8721-8880
    /code/branches/bigships/data/levels/Spacerace2.oxw8137-8588
    /code/branches/buildsystem/data/levels/Spacerace2.oxw1874-2276,​2278-2400
    /code/branches/buildsystem2/data/levels/Spacerace2.oxw2506-2658
    /code/branches/buildsystem3/data/levels/Spacerace2.oxw2662-2708
    /code/branches/ceguilua/data/levels/Spacerace2.oxw1802-1808
    /code/branches/chat/data/levels/Spacerace2.oxw6527-6797
    /code/branches/chat2/data/levels/Spacerace2.oxw6836-6910
    /code/branches/console/data/levels/Spacerace2.oxw5941-6104
    /code/branches/consolecommands2/data/levels/Spacerace2.oxw6451-7178
    /code/branches/consolecommands3/data/levels/Spacerace2.oxw7178-7283
    /code/branches/core3/data/levels/Spacerace2.oxw1572-1739
    /code/branches/core4/data/levels/Spacerace2.oxw3221-3224,​3227,​3234-3238,​3242,​3244-3250,​3252-3254,​3256,​3259-3261,​3264-3265,​3268-3275,​3277-3278,​3280,​3284-3285,​3287,​3289-3294,​3305,​3309-3310
    /code/branches/core5/data/levels/Spacerace2.oxw5768-5928,​6009
    /code/branches/data_cleanup/data/levels/Spacerace2.oxw7537-7686
    /code/branches/doc/data/levels/Spacerace2.oxw7290-7400
    /code/branches/dockingsystem/data/levels/Spacerace2.oxw8101-8192
    /code/branches/dockingsystem2/data/levels/Spacerace2.oxw8196-8560
    /code/branches/dynamicmatch/data/levels/Spacerace2.oxw6584-7030
    /code/branches/environment3/data/levels/Spacerace2.oxw8887-8975
    /code/branches/formation/data/levels/Spacerace2.oxw8885-8991
    /code/branches/fps/data/levels/Spacerace2.oxw6591-7072
    /code/branches/gamecontent/data/levels/Spacerace2.oxw8893-8968
    /code/branches/gameimmersion/data/levels/Spacerace2.oxw8102-8577
    /code/branches/gamestate/data/levels/Spacerace2.oxw6430-6572,​6621-6661
    /code/branches/gamestates2/data/levels/Spacerace2.oxw6594-6745
    /code/branches/gametypes/data/levels/Spacerace2.oxw2826-3031
    /code/branches/gcc43/data/levels/Spacerace2.oxw1580
    /code/branches/gui/data/levels/Spacerace2.oxw1635-1723,​2795-2894
    /code/branches/hud/data/levels/Spacerace2.oxw8883-8986
    /code/branches/hudelements/data/levels/Spacerace2.oxw6584-6941
    /code/branches/hudimprovements/data/levels/Spacerace2.oxw7920-8672
    /code/branches/ingamemenu/data/levels/Spacerace2.oxw6000-6023
    /code/branches/input/data/levels/Spacerace2.oxw1629-1636
    /code/branches/ipv6/data/levels/Spacerace2.oxw7293-7458
    /code/branches/kicklib/data/levels/Spacerace2.oxw7940-8096,​8098-8277
    /code/branches/kicklib2/data/levels/Spacerace2.oxw8282-8350
    /code/branches/lastmanstanding/data/levels/Spacerace2.oxw7479-7644
    /code/branches/lastmanstanding3/data/levels/Spacerace2.oxw7903-8175
    /code/branches/libraries/data/levels/Spacerace2.oxw5612-5692
    /code/branches/libraries2/data/levels/Spacerace2.oxw5703-5737
    /code/branches/lod/data/levels/Spacerace2.oxw6586-6911
    /code/branches/lodfinal/data/levels/Spacerace2.oxw2372-2411
    /code/branches/mac_osx/data/levels/Spacerace2.oxw7789-8128,​8135
    /code/branches/map/data/levels/Spacerace2.oxw2801-3086,​3089
    /code/branches/masterserver/data/levels/Spacerace2.oxw7502-7738
    /code/branches/masterserverfix/data/levels/Spacerace2.oxw8933-8936
    /code/branches/menu/data/levels/Spacerace2.oxw5941-6146,​6148,​7536-7687
    /code/branches/menue/data/levels/Spacerace2.oxw8884-8976
    /code/branches/miniprojects/data/levels/Spacerace2.oxw2754-2824
    /code/branches/netp2/data/levels/Spacerace2.oxw2835-2988
    /code/branches/netp3/data/levels/Spacerace2.oxw2988-3082
    /code/branches/netp6/data/levels/Spacerace2.oxw3214-3302
    /code/branches/network/data/levels/Spacerace2.oxw2356
    /code/branches/network2/data/levels/Spacerace2.oxw6434-6465
    /code/branches/network3/data/levels/Spacerace2.oxw7196-7344
    /code/branches/network4/data/levels/Spacerace2.oxw7497-7755
    /code/branches/network5/data/levels/Spacerace2.oxw7757-7781
    /code/branches/network6/data/levels/Spacerace2.oxw7823-8315
    /code/branches/network64/data/levels/Spacerace2.oxw2210-2355
    /code/branches/notifications/data/levels/Spacerace2.oxw7314-7401
    /code/branches/objecthierarchy/data/levels/Spacerace2.oxw1911-2085,​2100,​2110-2169
    /code/branches/objecthierarchy2/data/levels/Spacerace2.oxw2171-2479
    /code/branches/ois_update/data/levels/Spacerace2.oxw7506-7788
    /code/branches/output/data/levels/Spacerace2.oxw8739-8857
    /code/branches/overlay/data/levels/Spacerace2.oxw2117-2385
    /code/branches/particles/data/levels/Spacerace2.oxw2829-3085
    /code/branches/particles2/data/levels/Spacerace2.oxw6050-6106,​6109
    /code/branches/pch/data/levels/Spacerace2.oxw3113-3194
    /code/branches/physics/data/levels/Spacerace2.oxw1912-2055,​2107-2439
    /code/branches/physics_merge/data/levels/Spacerace2.oxw2436-2457
    /code/branches/pickup/data/levels/Spacerace2.oxw8145-8555
    /code/branches/pickup2/data/levels/Spacerace2.oxw5942-6405
    /code/branches/pickup3/data/levels/Spacerace2.oxw6418-6523
    /code/branches/pickup4/data/levels/Spacerace2.oxw6594-6710
    /code/branches/pickups/data/levels/Spacerace2.oxw1926-2086,​2127,​2827-2915
    /code/branches/pickups2/data/levels/Spacerace2.oxw2107-2497,​2915-3071
    /code/branches/png2/data/levels/Spacerace2.oxw7262-7263
    /code/branches/portals/data/levels/Spacerace2.oxw8087-8455
    /code/branches/portals2/data/levels/Spacerace2.oxw8460-8602
    /code/branches/ppspickups1/data/levels/Spacerace2.oxw6552-6708
    /code/branches/ppspickups2/data/levels/Spacerace2.oxw6527-6532,​6554-6709
    /code/branches/ppspickups3/data/levels/Spacerace2.oxw6757-6997
    /code/branches/ppspickups4/data/levels/Spacerace2.oxw7003-7089
    /code/branches/presentation/data/levels/Spacerace2.oxw2369-2652,​2654-2660,​7736-7786,​8500-8705
    /code/branches/presentation2/data/levels/Spacerace2.oxw6106-6416,​7787-7800
    /code/branches/presentation3/data/levels/Spacerace2.oxw6913-7162
    /code/branches/questsystem/data/levels/Spacerace2.oxw1894-2088
    /code/branches/questsystem2/data/levels/Spacerace2.oxw2107-2259
    /code/branches/questsystem5/data/levels/Spacerace2.oxw2776-2905
    /code/branches/releasetodo/data/levels/Spacerace2.oxw7614-7647
    /code/branches/resource/data/levels/Spacerace2.oxw3327-3366
    /code/branches/resource2/data/levels/Spacerace2.oxw3372-5694
    /code/branches/rocket/data/levels/Spacerace2.oxw6523-6950
    /code/branches/rocket2/data/levels/Spacerace2.oxw6953-6970
    /code/branches/script_trigger/data/levels/Spacerace2.oxw1295-1953,​1955
    /code/branches/skybox2/data/levels/Spacerace2.oxw6559-6989
    /code/branches/sound/data/levels/Spacerace2.oxw2829-3010
    /code/branches/sound3/data/levels/Spacerace2.oxw5941-6102
    /code/branches/spaceboundaries/data/levels/Spacerace2.oxw8085-8457
    /code/branches/spaceboundaries2/data/levels/Spacerace2.oxw8460-8613
    /code/branches/spacerace/data/levels/Spacerace2.oxw8182-8630
    /code/branches/steering/data/levels/Spacerace2.oxw5949-6091,​8140-8595
    /code/branches/tetris/data/levels/Spacerace2.oxw8100-8563
    /code/branches/tutoriallevel/data/levels/Spacerace2.oxw7827-8370
    /code/branches/tutoriallevel2/data/levels/Spacerace2.oxw8370-8452
    /code/branches/tutoriallevel3/data/levels/Spacerace2.oxw8453-8636
    /code/branches/unity_build/data/levels/Spacerace2.oxw8440-8716
    /code/branches/usability/data/levels/Spacerace2.oxw7915-8078
    /code/branches/weapon/data/levels/Spacerace2.oxw1925-2094
    /code/branches/weapon2/data/levels/Spacerace2.oxw2107-2488
    /code/branches/weapons/data/levels/Spacerace2.oxw2897-3051,​8143-8591
    /code/branches/weaponsystem/data/levels/Spacerace2.oxw2742-2890
File size: 8.4 KB
Line 
1<LevelInfo
2 name = "Spacerace 2"
3 description = "New Spacerace with Multiple Paths."
4 tags = "gametype"
5 screenshot = "spacerace2.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12
13  include("templates/spaceshipAssff.oxt")
14 
15?>
16
17<?lua
18  include("templates/spaceshipAssff2.oxt")
19  include("templates/spaceshipPirate.oxt")
20?>
21
22<Level
23 name         = "Spacerace2"
24 description  = "Just a few tests"
25gametype = SpaceRace
26>
27  <templates>
28    <Template link=lodtemplate_default />
29  </templates>
30  <?lua include("includes/notifications.oxi") ?>
31
32  <Scene
33    ambientlight = "0.8, 0.8, 0.8"
34    skybox       = "Orxonox/Starbox"
35  >
36
37    <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"/>
38
39       
40        <SpaceRaceManager>
41<checkpoints>  
42        <RaceCheckPoint name="checkpoint1" position="0,-2000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false" nextcheckpoints="1,2,-1">
43        <attached>
44            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
45        </attached>
46        <collisionShapes>
47            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
48            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
49            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
50            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
51        </collisionShapes>
52    </RaceCheckPoint>
53
54<RaceCheckPoint name="checkpoint2" position="0,2100,2300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false" nextcheckpoints="3,-1,-1">
55        <attached>
56            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
57        </attached>
58        <collisionShapes>
59            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
60            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
61            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
62            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
63        </collisionShapes>
64    </RaceCheckPoint>
65
66<RaceCheckPoint name="checkpoint3" position="0,700,2700" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
67        <attached>
68            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
69        </attached>
70        <collisionShapes>
71            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
72            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
73            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
74            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
75        </collisionShapes>
76    </RaceCheckPoint>
77
78<RaceCheckPoint name="checkpoint4" position="0,-400,300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="true">
79        <attached>
80            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
81        </attached>
82        <collisionShapes>
83            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
84            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
85            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
86            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
87        </collisionShapes>
88    </RaceCheckPoint>
89</checkpoints>
90</SpaceRaceManager>
91
92 
93<SpaceShip position="0,0,200" lookat="0,0,0">
94      <templates>
95        <Template link=spaceshipassff />
96      </templates>
97      <controller>
98        <WaypointPatrolController alertnessradius=0 team=10>
99          <waypoints>
100            <Model mesh="cube.mesh" scale=0 position="0,-2000,1000" />
101            <Model mesh="cube.mesh" scale=0 position="0,2100,2300" />
102            <Model mesh="cube.mesh" scale=0 position="0,-400,300" />
103          </waypoints>
104        </WaypointPatrolController>
105      </controller>
106    </SpaceShip>
107
108    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
109
110
111    <!-- ------------------Planet----------------- -->
112    <Planet position="0,0,0" scale=300 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
113    <StaticEntity position="0,0,0" collisionType=static>
114        <collisionShapes>
115            <SphereCollisionShape radius="399" />
116        </collisionShapes>
117    </StaticEntity>
118
119    <!-- ---------------asteroid ellipse----------------- -->
120    <?lua
121    max = 20
122    for i = 0, max, 1
123    do
124    y = math.sin(i/max*6)*2000
125    z = math.cos(i/max*6)*2500
126    x = 0
127    ?>
128    <?lua
129    for k = 1, 15, 1
130    do
131    j = math.random()
132    ?>
133
134    <MovableEntity
135      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
136      collisionType = "dynamic"
137      linearDamping = "0.5"
138      angularDamping = "0.01"
139      collisiondamage = "0.01"
140      enablecollisiondamage = "true"
141      scale="<?lua print(j * 5) ?>" >
142      <attached>
143        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
144      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
145            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
146          </attached> <?lua end ?>
147        </Model>
148      </attached>
149      <collisionShapes>
150        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
151      </collisionShapes>
152    </MovableEntity>
153    <?lua
154    end
155    ?>
156    <?lua end ?>
157
158    <!-- ---------------ForceFields----------------- -->
159    <ForceField position="0,-700,2700" direction="0,1,0" diameter=500 velocity=2000 length=600 />
160        <MovableEntity position="0,-400,2700">
161            <attached>
162                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
163                <?lua for i=0,15,1 do ?>
164                    <Billboard position="-200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
165                    <Billboard position="200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
166                <?lua end ?>
167                </attached>
168        </MovableEntity>
169
170     <ForceField position="0,2500,2000" direction="0,0,-1" diameter=250 velocity=2000 length=600 />
171        <MovableEntity position="0,2500,2000">
172            <attached>
173                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
174                <?lua for i=0,15,1 do ?>
175                    <Billboard position="-100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
176                    <Billboard position="100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
177                <?lua end ?>
178                </attached>
179        </MovableEntity>
180
181    <ForceField position="0,1300,-800" direction="0,-1,-1" diameter=250 velocity=2000 length=800 />
182        <MovableEntity position="0,1300,-800">
183            <attached>
184                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
185                <?lua for i=0,20,1 do ?>
186                    <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
187                    <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
188                <?lua end ?>
189                </attached>
190        </MovableEntity>
191
192    <ForceField position="0,-1400,-700" direction="0,-1,1" diameter=250 velocity=2000 length=600 />
193        <MovableEntity position="0,-1400,-700">
194            <attached>
195                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
196                <?lua for i=0,15,1 do ?>
197                    <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
198                    <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
199                <?lua end ?>
200                </attached>
201        </MovableEntity>
202
203
204   
205  </Scene>
206</Level>
207
Note: See TracBrowser for help on using the repository browser.