[5236] | 1 | <?lua |
---|
[5242] | 2 | include("levels/hudtemplates.oxw") |
---|
[5321] | 3 | include("levels/spaceshiptemplates.oxw") |
---|
| 4 | dofile("../../media/levels/test.lua") |
---|
[5236] | 5 | ?> |
---|
[5219] | 6 | |
---|
[5239] | 7 | <Level |
---|
[5236] | 8 | name = "Sample" |
---|
| 9 | description = "Just a few tests" |
---|
[5240] | 10 | > |
---|
| 11 | <Scene |
---|
[5297] | 12 | ambientlight = "0.8, 0.8, 0.8" |
---|
[5240] | 13 | skybox = "Orxonox/Starbox" |
---|
| 14 | > |
---|
[5255] | 15 | <!--SpawnPoint position="0, 0, 100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5244] | 16 | <SpawnPoint position="0, 0, -700" yaw =180 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5284] | 17 | <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
[5321] | 18 | |
---|
| 19 | <?lua test() ?> |
---|
[5297] | 20 | |
---|
| 21 | <!-- axes in ogre's origin of coordinate system for phsics engine testing purposes--> |
---|
| 22 | <!--PositionableEntity position="0,0,0"> |
---|
| 23 | <attached> |
---|
| 24 | <Model position="0,0,0" scale=1 mesh="axes.mesh" /> |
---|
| 25 | </attached> |
---|
| 26 | </PositionableEntity --> |
---|
| 27 | |
---|
| 28 | <!-- red sphere for phsics engine testing purposes--> |
---|
| 29 | <!--PositionableEntity position="40,0,0"> |
---|
| 30 | <attached> |
---|
| 31 | <Model position="0,0,0" scale=1 mesh="sphere.mesh" /> |
---|
| 32 | </attached> |
---|
| 33 | </PositionableEntity--> |
---|
[5284] | 34 | |
---|
[5297] | 35 | <!-- yellow cube for phsics engine testing purposes--> |
---|
| 36 | <!--PositionableEntity position="80,0,0"> |
---|
| 37 | <attached> |
---|
| 38 | <Model position="0,0,0" scale=1 mesh="cube.mesh" /> |
---|
| 39 | </attached> |
---|
| 40 | </PositionableEntity--> |
---|
| 41 | |
---|
[5320] | 42 | <!-- Carrier with guns not implemented yet --> |
---|
[5319] | 43 | <MovableEntity position="-2000,-1000,-2000" pitch="-90" roll="90"> |
---|
[5318] | 44 | <attached> |
---|
| 45 | <Model position="0,0,0" scale=10 mesh="Carrier.mesh" /> |
---|
[5320] | 46 | <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" /> |
---|
| 47 | <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" /> |
---|
[5318] | 48 | </attached> |
---|
| 49 | </MovableEntity> |
---|
| 50 | |
---|
[5284] | 51 | <MovableEntity position="-300,200,-800" velocity="5,0,0" rotationaxis="1,0,0" rotationrate=0> |
---|
| 52 | <attached> |
---|
| 53 | <Model position="0,0,0" scale=10 mesh="satellite.mesh" /> |
---|
| 54 | <MovableEntity position="-4,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50> |
---|
| 55 | <attached> |
---|
| 56 | <Model position="4,0,0" scale=10 mesh="satellitedish.mesh"/> |
---|
| 57 | </attached> |
---|
| 58 | </MovableEntity> |
---|
| 59 | <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 60 | <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 61 | <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 62 | <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 63 | </attached> |
---|
| 64 | </MovableEntity> |
---|
[5236] | 65 | |
---|
[5255] | 66 | <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90> |
---|
[5256] | 67 | <events> |
---|
| 68 | <activity> |
---|
| 69 | <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 /> |
---|
| 70 | </activity> |
---|
| 71 | </events> |
---|
[5219] | 72 | <attached> |
---|
[5240] | 73 | <Model position="0,0,0" scale=10 mesh="ast1.mesh" /> |
---|
| 74 | <PositionableEntity position="0,0,100"> |
---|
[5236] | 75 | <attached> |
---|
[5240] | 76 | <Model position="0,0,0" scale=6 mesh="ast1.mesh" /> |
---|
| 77 | <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500> |
---|
| 78 | <attached> |
---|
| 79 | <Model position="0,35,0" scale=2 mesh="ast1.mesh" /> |
---|
| 80 | <Model position="0,-35,0" scale=2 mesh="ast1.mesh" /> |
---|
[5255] | 81 | <Model position="35,0,0" scale=2 mesh="ast1.mesh"> |
---|
| 82 | <attached> |
---|
| 83 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
| 84 | </attached> |
---|
| 85 | </Model> |
---|
| 86 | <Model position="-35,0,0" scale=2 mesh="ast1.mesh"> |
---|
| 87 | <attached> |
---|
| 88 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
| 89 | </attached> |
---|
| 90 | </Model> |
---|
[5240] | 91 | </attached> |
---|
| 92 | </MovableEntity> |
---|
[5236] | 93 | </attached> |
---|
[5240] | 94 | </PositionableEntity> |
---|
| 95 | <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200> |
---|
| 96 | <attached> |
---|
[5255] | 97 | <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> |
---|
[5240] | 98 | <Model position="0,0,0" scale=6 mesh="ast1.mesh" /> |
---|
| 99 | <Model position="0,0,-50" scale=3 mesh="ast1.mesh" /> |
---|
| 100 | <Model position="0,0,50" scale=3 mesh="ast1.mesh" /> |
---|
| 101 | </attached> |
---|
[5236] | 102 | </MovableEntity> |
---|
[5219] | 103 | </attached> |
---|
[5236] | 104 | </MovableEntity> |
---|
[5219] | 105 | |
---|
[5266] | 106 | <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
[5255] | 107 | <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
| 108 | <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 /> |
---|
| 109 | <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /> |
---|
[5266] | 110 | <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /> |
---|
[5255] | 111 | |
---|
[5257] | 112 | |
---|
[5256] | 113 | <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> |
---|
[5255] | 114 | <events> |
---|
| 115 | <spawn> |
---|
[5257] | 116 | <EventTrigger delay=1> |
---|
| 117 | <events> |
---|
| 118 | <trigger> |
---|
| 119 | <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 120 | </trigger> |
---|
| 121 | </events> |
---|
| 122 | </EventTrigger> |
---|
[5255] | 123 | </spawn> |
---|
| 124 | </events> |
---|
| 125 | </ParticleSpawner> |
---|
| 126 | |
---|
[5257] | 127 | |
---|
| 128 | <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false> |
---|
[5256] | 129 | <events> |
---|
| 130 | <activity> |
---|
[5257] | 131 | <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" /> |
---|
[5256] | 132 | </activity> |
---|
| 133 | </events> |
---|
| 134 | </ParticleEmitter> |
---|
[5257] | 135 | <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false> |
---|
[5256] | 136 | <events> |
---|
| 137 | <activity> |
---|
[5257] | 138 | <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" /> |
---|
[5256] | 139 | </activity> |
---|
| 140 | </events> |
---|
| 141 | </ParticleEmitter> |
---|
[5257] | 142 | <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false> |
---|
| 143 | <events> |
---|
| 144 | <activity> |
---|
| 145 | <EventListener event=firetrigger1 /> |
---|
| 146 | <EventListener event=firetrigger2 /> |
---|
| 147 | </activity> |
---|
| 148 | </events> |
---|
| 149 | </ParticleEmitter> |
---|
[5256] | 150 | |
---|
[5257] | 151 | |
---|
| 152 | <EventDispatcher> |
---|
| 153 | <targets> |
---|
| 154 | <EventTarget name=fireright /> |
---|
| 155 | <EventTarget name=firecenter /> |
---|
| 156 | <EventTarget name=fireleft /> |
---|
| 157 | </targets> |
---|
| 158 | <events> |
---|
| 159 | <activity> |
---|
| 160 | <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" /> |
---|
| 161 | </activity> |
---|
| 162 | </events> |
---|
| 163 | </EventDispatcher> |
---|
| 164 | |
---|
| 165 | |
---|
[5256] | 166 | <Model position="0,50,0" scale=3 mesh="assff.mesh"> |
---|
| 167 | <events> |
---|
| 168 | <visibility> |
---|
| 169 | <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 /> |
---|
| 170 | </visibility> |
---|
| 171 | </events> |
---|
| 172 | </Model> |
---|
| 173 | |
---|
[5257] | 174 | |
---|
[5240] | 175 | <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true /> |
---|
| 176 | <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /--> |
---|
| 177 | <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true /> |
---|
| 178 | <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true /> |
---|
| 179 | <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false /> |
---|
| 180 | <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false /> |
---|
[5236] | 181 | |
---|
[5240] | 182 | <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" /> |
---|
| 183 | |
---|
[5241] | 184 | <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" /> |
---|
[5245] | 185 | <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" /> |
---|
| 186 | <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /--> |
---|
[5241] | 187 | |
---|
[5240] | 188 | </Scene> |
---|
| 189 | </Level> |
---|