Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/sample2.oxw @ 5292

Last change on this file since 5292 was 5284, checked in by FelixSchulthess, 16 years ago

oh look there is a satellite.

File size: 6.5 KB
RevLine 
[5236]1<?lua
[5242]2  include("levels/hudtemplates.oxw")
[5236]3?>
[5219]4
[5241]5<?lua
[5242]6  include("levels/spaceshiptemplates.oxw")
[5241]7?>
8
[5239]9<Level
[5236]10 name         = "Sample"
11 description  = "Just a few tests"
[5240]12>
13  <Scene
[5247]14   ambientlight = "0.5, 0.5, 0.5"
[5240]15   skybox       = "Orxonox/Starbox"
16  >
[5255]17    <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
[5244]18    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
[5284]19    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
20
21    <MovableEntity position="-300,200,-800" velocity="5,0,0" rotationaxis="1,0,0" rotationrate=0>
22      <attached>
23        <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
24        <MovableEntity position="-4,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
25          <attached>
26            <Model position="4,0,0" scale=10 mesh="satellitedish.mesh"/>
27          </attached>
28        </MovableEntity>
29        <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
30        <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
31        <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
32        <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
33      </attached>
34    </MovableEntity>
[5236]35
[5255]36    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
[5256]37      <events>
38        <activity>
39          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
40        </activity>
41      </events>
[5219]42      <attached>
[5240]43        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
44        <PositionableEntity position="0,0,100">
[5236]45          <attached>
[5240]46            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
47            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
48              <attached>
49                <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
50                <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
[5255]51                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
52                  <attached>
53                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
54                  </attached>
55                </Model>
56                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
57                  <attached>
58                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
59                  </attached>
60                </Model>
[5240]61              </attached>
62            </MovableEntity>
[5236]63          </attached>
[5240]64        </PositionableEntity>
65        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
66          <attached>
[5255]67            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
[5240]68            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
69            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
70            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
71          </attached>
[5236]72        </MovableEntity>
[5219]73      </attached>
[5236]74    </MovableEntity>
[5219]75
[5257]76
[5266]77    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
[5255]78    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
79    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
80    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
[5266]81    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
[5255]82
[5257]83
[5256]84    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
[5255]85      <events>
86        <spawn>
[5257]87          <EventTrigger delay=1>
88            <events>
89              <trigger>
90                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
91              </trigger>
92            </events>
93          </EventTrigger>
[5255]94        </spawn>
95      </events>
96    </ParticleSpawner>
97
[5257]98
99    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
[5256]100      <events>
101        <activity>
[5257]102          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
[5256]103        </activity>
104      </events>
105    </ParticleEmitter>
[5257]106    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
[5256]107      <events>
108        <activity>
[5257]109          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
[5256]110        </activity>
111      </events>
112    </ParticleEmitter>
[5257]113    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
114      <events>
115        <activity>
116          <EventListener event=firetrigger1 />
117          <EventListener event=firetrigger2 />
118        </activity>
119      </events>
120    </ParticleEmitter>
[5256]121
[5257]122
123    <EventDispatcher>
124      <targets>
125        <EventTarget name=fireright />
126        <EventTarget name=firecenter />
127        <EventTarget name=fireleft />
128      </targets>
129      <events>
130        <activity>
131          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
132        </activity>
133      </events>
134    </EventDispatcher>
135
136
[5256]137    <Model position="0,50,0" scale=3 mesh="assff.mesh">
138      <events>
139        <visibility>
140          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
141        </visibility>
142      </events>
143    </Model>
144
[5257]145
[5240]146    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
147    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
148    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
149    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
150    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
151    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
[5236]152
[5240]153    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
154
[5241]155    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
[5245]156    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
157    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
[5241]158
[5240]159  </Scene>
160</Level>
Note: See TracBrowser for help on using the repository browser.