Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ai/data/levels/tutorial.oxw @ 6782

Last change on this file since 6782 was 6782, checked in by gasserlu, 15 years ago

drone, dronecontroller implemented

  • Property svn:eol-style set to native
File size: 4.7 KB
RevLine 
[5378]1<?lua
[5654]2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
[5378]5?>
6
7<Level
8 name         = "Presentation"
9 description  = "A simple testlevel"
10>
11  <Scene
12   ambientlight = "0.5, 0.5, 0.5"
13   skybox       = "Orxonox/skypanoramagen1"
14  >
[5452]15
[6782]16    <PickupSpawner position="0,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
17        <drones>
18            <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
[5452]19  <attached>
20    <Model scale="10" mesh="drone.mesh"/>
21  </attached>
22  <collisionShapes>
23    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
24  </collisionShapes>
25</Drone>
[6782]26        </drones>
27    </PickupSpawner>
[5452]28
29
[5378]30    <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" />
31
[5519]32<Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
33<Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
[5403]34
[5378]35<?lua
[5528]36for i = 1, 10, 1
[5378]37do ?>
38    <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
[5528]39<?lua
[5378]40end
41?>
[5383]42
43    <GlobalShader compositor="Bloom" visible=false>
44      <events>
45        <visibility>
46          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
47        </visibility>
48      </events>
49    </GlobalShader>
50    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
51    <StaticEntity position="0,0,0" collisionType=static>
52      <collisionShapes>
53        <SphereCollisionShape radius="20" />
54      </collisionShapes>
55    </StaticEntity>
56<!--
57<?lua
[5528]58for i = 1, 70, 1
[5383]59do ?>
60  <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
61    <attached>
62      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
63    </attached>
64  </MovableEntity>
65  <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
66    <attached>
67      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
68    </attached>
69  </MovableEntity>
70
71  <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
72    <attached>
73      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
74    </attached>
75  </MovableEntity>
76  <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
77    <attached>
78      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
79    </attached>
80  </MovableEntity>
81
82  <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
83    <attached>
84      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
85    </attached>
86  </MovableEntity>
87  <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
88    <attached>
89      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
90    </attached>
91  </MovableEntity>
[5528]92<?lua
[5383]93end
94?>
95-->
[5378]96  </Scene>
97</Level>
Note: See TracBrowser for help on using the repository browser.