Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spaceraceTwo/data/levels/Spacerace2.oxw @ 8970

Last change on this file since 8970 was 8968, checked in by eceline, 13 years ago

added waypoint patrol controller to level, RaceCheckPoint::fire works now

File size: 4.2 KB
Line 
1<LevelInfo
2 name = "Spacerace2"
3 description = "Just a few tests"
4 tags = "test"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11
12  include("templates/spaceshipAssff.oxt")
13 
14?>
15
16<?lua
17  include("templates/spaceshipAssff2.oxt")
18  include("templates/spaceshipPirate.oxt")
19?>
20
21<Level
22 name         = "Spacerace2"
23 description  = "Just a few tests"
24gametype = SpaceRace
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/Starbox"
34  >
35
36    <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"/>
37
38       
39        <SpaceRaceManager>
40<checkpoints>  
41        <RaceCheckPoint name="checkpoint1" position="0,-2000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false" nextcheckpoints="1,2,0">
42        <attached>
43            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
44        </attached>
45        <collisionShapes>
46            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
47            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
48            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
49            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
50        </collisionShapes>
51    </RaceCheckPoint>
52
53<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">
54        <attached>
55            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
56        </attached>
57        <collisionShapes>
58            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
59            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
60            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
61            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
62        </collisionShapes>
63    </RaceCheckPoint>
64
65<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">
66        <attached>
67            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
68        </attached>
69        <collisionShapes>
70            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
71            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
72            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
73            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
74        </collisionShapes>
75    </RaceCheckPoint>
76
77<RaceCheckPoint name="checkpoint4" position="0,-400,300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="true">
78        <attached>
79            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
80        </attached>
81        <collisionShapes>
82            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
83            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
84            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
85            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
86        </collisionShapes>
87    </RaceCheckPoint>
88</checkpoints>
89</SpaceRaceManager>
90
91 
92<SpaceShip position="0,0,200" lookat="0,0,0">
93      <templates>
94        <Template link=spaceshipassff />
95      </templates>
96      <controller>
97        <WaypointPatrolController alertnessradius=1000 team=10>
98          <waypoints>
99            <Model mesh="cube.mesh" scale=8 position="0,-2000,1000" />
100            <Model mesh="cube.mesh" scale=8 position="0,2100,2300" />
101            <Model mesh="cube.mesh" scale=8 position="0,-400,300" />
102          </waypoints>
103        </WaypointPatrolController>
104      </controller>
105    </SpaceShip>
106
107    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
108
109
110   
111
112   
113  </Scene>
114</Level>
115
Note: See TracBrowser for help on using the repository browser.