Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5273 was 5266, checked in by landauf, 16 years ago

re-added particlespawner, they work now properly on the client

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