Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw @ 11250

Last change on this file since 11250 was 11250, checked in by bberabi, 7 years ago

bots are added to the space race

File size: 4.5 KB
Line 
1<LevelInfo
2 name = "New Old Space Race 2"
3 description = "Under maintenance..."
4 tags = "gametype"
5 screenshot = "spacerace.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12    include("templates/spaceshipAssff.oxt")
13
14?>
15
16<?lua
17  include("templates/spaceshipAssff2.oxt")
18  include("templates/fastship.oxt")
19  include("templates/spaceshipPirate.oxt")
20?>
21
22<Level
23 plugins = "gametypes"
24 gametype = "OldSpaceRace"
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <Scene
32    ambientlight = "0.8, 0.8, 0.8"
33    skybox       = "Orxonox/skyBoxMoreNebula"
34  >
35 
36
37
38  <!-- SOUNDS & MUSIC -->
39 
40 
41<WorldSound name="Countdown" position="0,0,0" source="sounds/Countdown.ogg" >
42      <events>
43        <play>
44          <EventListener event="start1" />
45        </play>
46      </events>
47    </WorldSound>
48
49
50<WorldSound name="Go" position="0,0,0" source="sounds/Go.ogg" >
51      <events>
52        <play>
53          <EventListener event="go" />
54        </play>
55      </events>
56    </WorldSound>
57
58
59    <DistanceTrigger name="start1" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
60    <DistanceTrigger name="go" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.5  />
61
62    <DistanceTrigger name="racetheme" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.75  />
63
64
65
66     
67      <WorldAmbientSound source="racetheme.ogg" looping="true" playOnLoad="false" >
68    <events>
69        <play>
70          <EventListener event="racetheme" />
71        </play>
72      </events>
73    </WorldAmbientSound>
74
75
76    <SpaceShip position="0,0,200" lookat="0,0,0">
77      <templates>
78        <Template link=spaceshipassff />
79      </templates>
80      <controller>
81        <WaypointPatrolController alertnessradius=0 team=10>
82          <waypoints>
83            <Model mesh="cube.mesh" scale=0 position="0,-2000,1000" />
84            <Model mesh="cube.mesh" scale=0 position="0,2100,2300" />
85            <Model mesh="cube.mesh" scale=0 position="0,-400,300" />
86          </waypoints>
87        </WaypointPatrolController>
88      </controller>
89    </SpaceShip>
90
91
92  <!--   <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" /> -->
93 
94
95    <?lua math.randomseed(98) ?>
96
97    <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"/>
98
99    <SimpleNotification message="Reach the last check point within 150 seconds!!" />
100
101    <!-- ------------------SpawnPoint----------------- -->
102    <SpawnPoint position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
103    </SpawnPoint>
104
105        <Model mesh="axes.mesh" scale="10" position="600,0,0"/>
106        <Model mesh="axes.mesh" scale="10" position="800,0,0"/>
107        <Model mesh="axes.mesh" scale="10" position="1000,0,0"/>
108        <Model mesh="axes.mesh" scale="10" position="1100,0,0"/>
109        <Model mesh="axes.mesh" scale="10" position="1200,0,0"/>
110        <Model mesh="axes.mesh" scale="10" position="1300,0,0"/>
111        <Model mesh="axes.mesh" scale="10" position="1400,0,0"/>
112        <Model mesh="axes.mesh" scale="10" position="1500,0,0"/>
113        <Model mesh="axes.mesh" scale="10" position="1600,0,0"/>
114        <Model mesh="axes.mesh" scale="10" position="1700,0,0"/>
115
116
117    <!-- First checkpoint launch station -->
118  <StaticEntity mass="50" position="-400,-20,0" direction="0,-90,0" collisionType="static">
119    <attached>
120      <Model scale="20" mesh="Carrier.mesh" />
121    </attached>
122      <collisionShapes>
123        <BoxCollisionShape position="280,0,-100"      halfExtents="600, 200, 100" />
124        <BoxCollisionShape position="380,300,-64"     halfExtents="280, 40, 48" />
125        <BoxCollisionShape position="380,-300,-64"    halfExtents="280, 40, 48" />
126        <BoxCollisionShape position="308, 188,120"      halfExtents="440, 80, 120" />
127        <BoxCollisionShape position="308,-188,120"     halfExtents="440, 80, 120" />
128        <BoxCollisionShape position="308,0,200"       halfExtents="440, 180, 24" />
129        <BoxCollisionShape position="668,0,280"      halfExtents="108, 80, 80" />
130      </collisionShapes>
131  </StaticEntity>
132
133
134
135
136    <!-- ---------------ForceFields----------------- -->
137    <ForceField position="0,0,0" direction="0,-1,0" diameter=500 velocity=2000 length=1000/>
138
139<OldRaceCheckPoint name="checkpoint1" position="600,0,0" direction="1,0,0" collisionType="static" scale="1" distance="600" checkpointindex="0" islast="false"/>
140
141  </Scene>
142</Level>
Note: See TracBrowser for help on using the repository browser.