[7648] | 1 | <LevelInfo |
---|
[8051] | 2 | name = "Presentation X 2nd" |
---|
[7648] | 3 | description = "2nd Presentation level for Orxonox Convention X" |
---|
| 4 | tags = "presentation" |
---|
| 5 | /> |
---|
| 6 | |
---|
[6363] | 7 | <?lua |
---|
| 8 | include("stats.oxo") |
---|
[7679] | 9 | include("HUDTemplates3.oxo") |
---|
| 10 | include("templates/lodInformation.oxt") |
---|
[6363] | 11 | ?> |
---|
| 12 | |
---|
| 13 | <?lua |
---|
[7679] | 14 | include("templates/spaceshipAssff.oxt") |
---|
| 15 | include("templates/spaceshipPirate.oxt") |
---|
| 16 | include("templates/spaceshipGhost.oxt") |
---|
| 17 | include("templates/spaceshipHXY.oxt") |
---|
| 18 | include("templates/spaceshipTransporter.oxt") |
---|
| 19 | include("templates/spaceshipHXYSL.oxt") |
---|
| 20 | include("templates/spaceshipTransporterSL.oxt") |
---|
[6363] | 21 | ?> |
---|
| 22 | |
---|
| 23 | <Level |
---|
| 24 | name = "Sample" |
---|
| 25 | description = "Just a few tests" |
---|
| 26 | gametype = TeamDeathmatch |
---|
| 27 | > |
---|
[7163] | 28 | <templates> |
---|
| 29 | <Template link=lodtemplate_default /> |
---|
| 30 | </templates> |
---|
| 31 | |
---|
[6363] | 32 | <Scene |
---|
| 33 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 34 | skybox = "Orxonox/Starbox" |
---|
| 35 | > |
---|
| 36 | |
---|
[7854] | 37 | <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" /> |
---|
[6363] | 38 | |
---|
| 39 | <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" /> |
---|
[7163] | 40 | |
---|
| 41 | <?lua |
---|
| 42 | for i = 1, 50, 1 do |
---|
| 43 | x = math.random() * 2000 + 4000 |
---|
| 44 | y = math.random() * 4000 - 2000 |
---|
| 45 | z = math.random() * 2000 - 1000 |
---|
| 46 | s = math.random() * 100 |
---|
| 47 | ?> |
---|
[7962] | 48 | <MovableEntity collisiontype=dynamic mass="<?lua print(s*10)?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> |
---|
[7163] | 49 | <attached> |
---|
[7962] | 50 | <Model position="0,0,0" scale="<?lua print(s) ?>" mesh="asteroid_UV.mesh" /> |
---|
[7163] | 51 | </attached> |
---|
| 52 | <collisionShapes> |
---|
| 53 | <SphereCollisionShape radius="<?lua print(s*0.9) ?>" /> |
---|
| 54 | </collisionShapes> |
---|
| 55 | </MovableEntity> |
---|
| 56 | <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> |
---|
| 57 | <?lua end ?> |
---|
[6363] | 58 | |
---|
[7163] | 59 | <?lua |
---|
| 60 | elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} |
---|
| 61 | sizes = {4, 4, 4, 4, 4, 10, 20} |
---|
| 62 | |
---|
| 63 | elements.length = function() |
---|
| 64 | return table.getn(elements) |
---|
| 65 | end |
---|
| 66 | |
---|
| 67 | for i = 1, 100, 1 do |
---|
| 68 | x = math.random() * 750 - 4500 |
---|
| 69 | y = math.random() * 1000 + 2000 |
---|
| 70 | z = math.random() * 500 + 1000 |
---|
| 71 | e = math.floor(math.random()*elements.length()+1) |
---|
| 72 | ?> |
---|
| 73 | <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> |
---|
| 74 | <attached> |
---|
| 75 | <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> |
---|
| 76 | </attached> |
---|
| 77 | </MovableEntity> |
---|
| 78 | <?lua end ?> |
---|
[6363] | 79 | |
---|
[7163] | 80 | <?lua |
---|
| 81 | for i = 1,12, 1 do |
---|
| 82 | ?> |
---|
| 83 | <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > |
---|
| 84 | <templates> |
---|
| 85 | <Template link=spaceshipHXYSL /> |
---|
| 86 | </templates> |
---|
| 87 | <controller> |
---|
| 88 | <WaypointPatrolController alertnessradius=4000 team=0 active=true> |
---|
| 89 | <waypoints> |
---|
| 90 | <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" /> |
---|
| 91 | </waypoints> |
---|
| 92 | </WaypointPatrolController> |
---|
| 93 | </controller> |
---|
| 94 | </SpaceShip> |
---|
| 95 | <?lua end ?> |
---|
[6363] | 96 | |
---|
[7163] | 97 | <SpaceShip position="5000,100,100" > |
---|
[6363] | 98 | <templates> |
---|
| 99 | <Template link=spaceshipTransporterSL /> |
---|
| 100 | </templates> |
---|
| 101 | <controller> |
---|
[6389] | 102 | <WaypointPatrolController name=pirate target=pirate alertnessradius=1000 team=0 active=false> |
---|
[6363] | 103 | <waypoints> |
---|
| 104 | <StaticEntity position="5000,100,1100" /> |
---|
| 105 | </waypoints> |
---|
| 106 | </WaypointPatrolController> |
---|
| 107 | </controller> |
---|
[7163] | 108 | </SpaceShip> |
---|
| 109 | |
---|
[6363] | 110 | <Destroyer |
---|
[7163] | 111 | position = "-5000,100 ,100" |
---|
| 112 | collisionType = dynamic |
---|
| 113 | mass = 100000 |
---|
| 114 | angularDamping = 0.9999999 |
---|
| 115 | health = 1000 |
---|
| 116 | maxhealth = 1000 |
---|
| 117 | initialhealth = 1000 |
---|
[6363] | 118 | > |
---|
[7163] | 119 | <controller> |
---|
| 120 | <WaypointPatrolController team=1 /> |
---|
| 121 | </controller> |
---|
| 122 | <attached> |
---|
| 123 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
| 124 | <Backlight |
---|
| 125 | mainstate=activity |
---|
| 126 | active=false |
---|
| 127 | scale=0.4 |
---|
| 128 | name=bltest |
---|
| 129 | position=" 7.6, 0, 6" |
---|
| 130 | colour="0.2, 0.65, 1.0, 1.0" |
---|
| 131 | width=15 |
---|
| 132 | length=1500 |
---|
| 133 | lifetime=2 |
---|
| 134 | elements=50 |
---|
| 135 | trailmaterial="Trail/backlighttrail" |
---|
| 136 | turnontime=1 |
---|
| 137 | turnofftime=1 |
---|
| 138 | material="Flares/ThrusterFlare1" |
---|
| 139 | /> |
---|
| 140 | <?lua |
---|
| 141 | for i=0,8,1 do |
---|
| 142 | ?> |
---|
| 143 | <BlinkingBillboard |
---|
| 144 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
| 145 | material="Examples/Flare" |
---|
| 146 | colour="1.0, 0.5, 0.3" |
---|
[7962] | 147 | phase="<?lua print(-360/8*i)?>" |
---|
[7163] | 148 | amplitude=0.1 |
---|
| 149 | frequency=0.5 |
---|
| 150 | quadratic=1 |
---|
| 151 | /> |
---|
[6363] | 152 | |
---|
[7163] | 153 | <BlinkingBillboard |
---|
| 154 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
| 155 | material="Examples/Flare" |
---|
| 156 | colour="1.0, 0.5, 0.3" |
---|
[7962] | 157 | phase="<?lua print(-360/8*i)?>" |
---|
[7163] | 158 | amplitude=0.1 |
---|
| 159 | frequency=0.5 |
---|
| 160 | quadratic=1 |
---|
| 161 | /> |
---|
| 162 | <?lua end ?> |
---|
[6363] | 163 | |
---|
[7163] | 164 | <Backlight |
---|
| 165 | scale=1 |
---|
| 166 | position=" 169, 75, -15" |
---|
| 167 | colour="1, 0.85, 0.5, 0.5" |
---|
| 168 | width=40 |
---|
| 169 | length=1000 |
---|
| 170 | lifetime=5 |
---|
| 171 | elements=15 |
---|
| 172 | trailmaterial="Trail/backlighttrail" |
---|
| 173 | material="Examples/Flare" |
---|
| 174 | /> |
---|
| 175 | <Backlight |
---|
| 176 | scale=1 |
---|
| 177 | position=" 169, -75, -15" |
---|
| 178 | colour="1, 0.85, 0.5, 0.5" |
---|
| 179 | width=40 |
---|
| 180 | length=1000 |
---|
| 181 | lifetime=5 |
---|
| 182 | elements=15 |
---|
| 183 | trailmaterial="Trail/backlighttrail" |
---|
| 184 | material="Examples/Flare" |
---|
| 185 | /> |
---|
| 186 | </attached> |
---|
| 187 | <collisionShapes> |
---|
| 188 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
| 189 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
| 190 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
| 191 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
| 192 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
| 193 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
| 194 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
| 195 | </collisionShapes> |
---|
| 196 | </Destroyer> |
---|
| 197 | |
---|
| 198 | <?lua |
---|
| 199 | for i = 1, 50, 1 do |
---|
| 200 | x = -(math.random() * 2000 + 4000) |
---|
| 201 | y = math.random() * 4000 - 2000 |
---|
| 202 | z = math.random() * 2000 - 1000 |
---|
| 203 | s = math.random() * 100 |
---|
| 204 | ?> |
---|
[7962] | 205 | <MovableEntity collisiontype=dynamic mass="<?lua print(s*10)?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> |
---|
[7163] | 206 | <attached> |
---|
[7962] | 207 | <Model position="0,0,0" scale="<?lua print(s) ?>" mesh="asteroid_ice.mesh" /> |
---|
[6363] | 208 | </attached> |
---|
| 209 | <collisionShapes> |
---|
[7163] | 210 | <SphereCollisionShape radius="<?lua print(s*0.9)?>" /> |
---|
[6363] | 211 | </collisionShapes> |
---|
[7163] | 212 | </MovableEntity> |
---|
| 213 | <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> |
---|
| 214 | <?lua end ?> |
---|
[6363] | 215 | |
---|
[7163] | 216 | <!-- EventDispatcher> |
---|
[6363] | 217 | <targets> |
---|
| 218 | <EventTarget target=attack /> |
---|
[6389] | 219 | <EventTarget target=wait /> |
---|
[6363] | 220 | </targets> |
---|
| 221 | <events> |
---|
| 222 | <activity> |
---|
| 223 | <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=true /> |
---|
| 224 | </activity> |
---|
| 225 | </events> |
---|
[7163] | 226 | </EventDispatcher> |
---|
[6363] | 227 | |
---|
[7163] | 228 | <EventDispatcher> |
---|
[6363] | 229 | <targets> |
---|
| 230 | <EventTarget target=wait /> |
---|
| 231 | </targets> |
---|
| 232 | <events> |
---|
| 233 | <activity> |
---|
| 234 | <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=false /> |
---|
| 235 | </activity> |
---|
| 236 | </events> |
---|
[7163] | 237 | </EventDispatcher --> |
---|
[6363] | 238 | |
---|
[7163] | 239 | <?lua |
---|
| 240 | for i = 1,25, 1 do |
---|
| 241 | ?> |
---|
| 242 | <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > |
---|
| 243 | <templates> |
---|
| 244 | <Template link=spaceshipghost /> |
---|
| 245 | </templates> |
---|
| 246 | <controller> |
---|
[6363] | 247 | <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false> |
---|
[7163] | 248 | <events> |
---|
| 249 | <activity> |
---|
| 250 | <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true /> |
---|
| 251 | </activity> |
---|
| 252 | </events> |
---|
[6363] | 253 | </WaypointPatrolController> |
---|
[7163] | 254 | </controller> |
---|
| 255 | </SpaceShip> |
---|
| 256 | <?lua end ?> |
---|
[6363] | 257 | |
---|
[7854] | 258 | <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="false"> |
---|
[6389] | 259 | <events> |
---|
| 260 | <activity> |
---|
| 261 | <DistanceTrigger position="2000,0,0" distance=500 target="Camera" /> |
---|
| 262 | </activity> |
---|
| 263 | </events> |
---|
[7854] | 264 | </WorldAmbientSound> |
---|
[6363] | 265 | |
---|
[7163] | 266 | <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0 /> |
---|
| 267 | |
---|
[6363] | 268 | </Scene> |
---|
| 269 | </Level> |
---|