Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

racing bots.. under maintanence…

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
77  <!-- Das erste Bot -->
78    <SpaceShip position="20,0,0" lookat="25,0,0">
79      <templates>
80        <Template link=fastship />
81      </templates>
82      <controller>
83        <WaypointPatrolController alertnessradius=1 team=10>
84          <waypoints>
85            <Model mesh="cube.mesh" scale=0 position="1000,0,0" />
86            <Model mesh="cube.mesh" scale=0 position="1500,1000,250" />
87            <Model mesh="cube.mesh" scale=0 position="0,400,300" />
88          </waypoints>
89        </WaypointPatrolController>
90      </controller>
91    </SpaceShip>
92
93
94
95
96
97
98  <!--   <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" /> -->
99 
100
101    <?lua math.randomseed(98) ?>
102
103    <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"/>
104
105    <SimpleNotification message="Reach the last check point within 150 seconds!!" />
106
107    <!-- ------------------SpawnPoint----------------- -->
108    <SpawnPoint position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
109    </SpawnPoint>
110
111        <Model mesh="axes.mesh" scale="10" position="600,0,0"/>
112        <Model mesh="axes.mesh" scale="10" position="800,0,0"/>
113        <Model mesh="axes.mesh" scale="10" position="1000,0,0"/>
114        <Model mesh="axes.mesh" scale="10" position="1100,0,0"/>
115        <Model mesh="axes.mesh" scale="10" position="1200,0,0"/>
116        <Model mesh="axes.mesh" scale="10" position="1300,0,0"/>
117        <Model mesh="axes.mesh" scale="10" position="1400,0,0"/>
118        <Model mesh="axes.mesh" scale="10" position="1500,0,0"/>
119        <Model mesh="axes.mesh" scale="10" position="1600,0,0"/>
120        <Model mesh="axes.mesh" scale="10" position="1700,0,0"/>
121
122
123    <!-- First checkpoint launch station -->
124  <StaticEntity mass="50" position="-400,-20,0" direction="0,-90,0" collisionType="static">
125    <attached>
126      <Model scale="20" mesh="Carrier.mesh" />
127    </attached>
128      <collisionShapes>
129        <BoxCollisionShape position="280,0,-100"      halfExtents="600, 200, 100" />
130        <BoxCollisionShape position="380,300,-64"     halfExtents="280, 40, 48" />
131        <BoxCollisionShape position="380,-300,-64"    halfExtents="280, 40, 48" />
132        <BoxCollisionShape position="308, 188,120"      halfExtents="440, 80, 120" />
133        <BoxCollisionShape position="308,-188,120"     halfExtents="440, 80, 120" />
134        <BoxCollisionShape position="308,0,200"       halfExtents="440, 180, 24" />
135        <BoxCollisionShape position="668,0,280"      halfExtents="108, 80, 80" />
136      </collisionShapes>
137  </StaticEntity>
138
139
140
141
142    <!-- ---------------ForceFields----------------- -->
143    <ForceField position="0,0,0" direction="0,-1,0" diameter=500 velocity=2000 length=1000/>
144
145<OldRaceCheckPoint name="checkpoint1" position="600,0,0" direction="1,0,0" collisionType="static" scale="1" distance="600" checkpointindex="0" islast="false"/>
146
147  </Scene>
148</Level>
Note: See TracBrowser for help on using the repository browser.