[5700] | 1 | <?lua |
---|
| 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("templates/spaceship_assff.oxt") |
---|
| 5 | include("templates/spaceship_H2.oxt") |
---|
| 6 | include("templates/spaceship_pirate.oxt") |
---|
| 7 | ?> |
---|
[5575] | 8 | |
---|
[5700] | 9 | <Level |
---|
| 10 | name = "Presentation09" |
---|
| 11 | description = "presentation level for Orxonox Convention X" |
---|
| 12 | gametype = TeamDeathmatch |
---|
| 13 | > |
---|
| 14 | <Scene |
---|
| 15 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 16 | skybox = "Orxonox/skypanoramagen2" |
---|
| 17 | > |
---|
| 18 | <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" /> |
---|
| 19 | |
---|
[5575] | 20 | <Template name="JumpItem" baseclass="Jump"> |
---|
| 21 | <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" /> |
---|
| 22 | </Template> |
---|
| 23 | <Template name="HealthImmediateItem" baseclass="HealthImmediate"> |
---|
| 24 | <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" /> |
---|
| 25 | </Template> |
---|
| 26 | <Template name="HealthUsableItem" baseclass="HealthUsable"> |
---|
| 27 | <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" /> |
---|
| 28 | </Template> |
---|
[5700] | 29 | |
---|
[5738] | 30 | <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5700] | 31 | |
---|
| 32 | <SpaceShip position="-3900,3000,1000"> |
---|
| 33 | <templates> |
---|
| 34 | <Template link=spaceshipHtwo/> |
---|
| 35 | </templates> |
---|
| 36 | <controller> |
---|
| 37 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
| 38 | <waypoints> |
---|
| 39 | <StaticEntity position="-3850,2800,1450" /> |
---|
| 40 | </waypoints> |
---|
| 41 | </WaypointPatrolController> |
---|
| 42 | </controller> |
---|
[5575] | 43 | </SpaceShip> |
---|
[5700] | 44 | |
---|
| 45 | <SpaceShip position="-4100,2600,1600"> |
---|
| 46 | <templates> |
---|
| 47 | <Template link=spaceshipHtwo/> |
---|
| 48 | </templates> |
---|
| 49 | <controller> |
---|
| 50 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
| 51 | <waypoints> |
---|
| 52 | <StaticEntity position="-3850,2800,1450" /> |
---|
| 53 | </waypoints> |
---|
| 54 | </WaypointPatrolController> |
---|
| 55 | </controller> |
---|
| 56 | </SpaceShip> |
---|
| 57 | |
---|
| 58 | <SpaceShip position="-4000,2500,1500"> |
---|
| 59 | <templates> |
---|
| 60 | <Template link=spaceshipHtwo/> |
---|
| 61 | </templates> |
---|
| 62 | <controller> |
---|
| 63 | <WaypointPatrolController alertnessradius=100 team=0> |
---|
| 64 | <waypoints> |
---|
| 65 | <StaticEntity position="-3850,2800,1450" /> |
---|
| 66 | </waypoints> |
---|
| 67 | </WaypointPatrolController> |
---|
| 68 | </controller> |
---|
| 69 | </SpaceShip> |
---|
| 70 | |
---|
| 71 | <SpaceShip position="-4100,2700,1500"> |
---|
| 72 | <templates> |
---|
| 73 | <Template link=spaceshipHtwo/> |
---|
| 74 | </templates> |
---|
| 75 | <controller> |
---|
| 76 | <WaypointPatrolController alertnessradius=100 team=0 /> |
---|
| 77 | </controller> |
---|
| 78 | </SpaceShip> |
---|
| 79 | |
---|
| 80 | <SpaceShip position="-4150,2750,1550"> |
---|
| 81 | <templates> |
---|
| 82 | <Template link=spaceshipHtwo/> |
---|
| 83 | </templates> |
---|
| 84 | <controller> |
---|
| 85 | <WaypointPatrolController alertnessradius=100 team=0 /> |
---|
| 86 | </controller> |
---|
| 87 | </SpaceShip> |
---|
[6387] | 88 | |
---|
[5575] | 89 | <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500"> |
---|
| 90 | <attached> |
---|
| 91 | <!--<Model mesh="jumpthrust.mesh" scale="1.0" /> |
---|
| 92 | <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />--> |
---|
| 93 | </attached> |
---|
| 94 | </PickupSpawner> |
---|
[6387] | 95 | |
---|
[5575] | 96 | <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550"> |
---|
| 97 | <attached> |
---|
| 98 | <Model mesh="gwrench.mesh" scale="1.0" /> |
---|
| 99 | <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" /> |
---|
| 100 | </attached> |
---|
| 101 | </PickupSpawner> |
---|
[6387] | 102 | |
---|
[5575] | 103 | <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400"> |
---|
| 104 | <attached> |
---|
| 105 | <Model mesh="gwrench.mesh" scale="1.0" /> |
---|
| 106 | <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" /> |
---|
| 107 | </attached> |
---|
[5700] | 108 | </PickupSpawner> |
---|
| 109 | |
---|
| 110 | <Billboard position="-2500, 2400, 1500" material="Examples/Flare" /> |
---|
| 111 | <EventDispatcher> |
---|
| 112 | <targets> |
---|
[5929] | 113 | <EventTarget target=pirates /> |
---|
[5700] | 114 | </targets> |
---|
| 115 | <events> |
---|
| 116 | <activity> |
---|
| 117 | <DistanceTrigger position="-2500, 2400, 1500" distance=250 target="SpaceShip" stayactive=true /> |
---|
| 118 | </activity> |
---|
| 119 | </events> |
---|
| 120 | </EventDispatcher> |
---|
| 121 | |
---|
| 122 | <?lua |
---|
[6388] | 123 | for i = 1, 10, 1 |
---|
[5700] | 124 | do |
---|
| 125 | ?> |
---|
| 126 | <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> |
---|
| 127 | <templates> |
---|
| 128 | <Template link=spaceshippirate /> |
---|
| 129 | </templates> |
---|
| 130 | <controller> |
---|
| 131 | <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false> |
---|
| 132 | <waypoints> |
---|
| 133 | <StaticEntity position="3100, 2000, 1500" /> |
---|
| 134 | </waypoints> |
---|
| 135 | </WaypointPatrolController> |
---|
| 136 | </controller> |
---|
| 137 | </SpaceShip> |
---|
[6388] | 138 | <?lua |
---|
[5700] | 139 | end |
---|
| 140 | ?> |
---|
| 141 | |
---|
| 142 | <?lua |
---|
[6388] | 143 | for i = 1, 12, 1 |
---|
[5700] | 144 | do |
---|
| 145 | ?> |
---|
| 146 | <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" > |
---|
| 147 | <templates> |
---|
| 148 | <Template link=spaceshipassff /> |
---|
| 149 | </templates> |
---|
| 150 | <controller> |
---|
| 151 | <WaypointPatrolController alertnessradius=1000 team=0> |
---|
| 152 | <waypoints> |
---|
| 153 | <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" /> |
---|
| 154 | </waypoints> |
---|
| 155 | </WaypointPatrolController> |
---|
| 156 | </controller> |
---|
| 157 | </SpaceShip> |
---|
[6388] | 158 | <?lua |
---|
[5700] | 159 | end |
---|
| 160 | ?> |
---|
| 161 | |
---|
| 162 | <Billboard position="2300, 4400, 2500" material="Examples/Flare" /> |
---|
| 163 | <EventDispatcher> |
---|
| 164 | <targets> |
---|
[5929] | 165 | <EventTarget target=attacker /> |
---|
[5700] | 166 | </targets> |
---|
| 167 | <events> |
---|
| 168 | <activity> |
---|
| 169 | <DistanceTrigger position="2300, 4400, 2500" distance=50 target="SpaceShip" stayactive=true /> |
---|
| 170 | </activity> |
---|
| 171 | </events> |
---|
| 172 | </EventDispatcher> |
---|
| 173 | |
---|
| 174 | <?lua |
---|
[6388] | 175 | for i = 1, 12, 1 |
---|
[5700] | 176 | do |
---|
| 177 | ?> |
---|
| 178 | <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" > |
---|
| 179 | <templates> |
---|
| 180 | <Template link=spaceshipassff /> |
---|
| 181 | </templates> |
---|
| 182 | <controller> |
---|
| 183 | <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false> |
---|
| 184 | <waypoints> |
---|
| 185 | <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" /> |
---|
| 186 | <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" /> |
---|
| 187 | <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" /> |
---|
| 188 | </waypoints> |
---|
| 189 | </WaypointPatrolController> |
---|
| 190 | </controller> |
---|
| 191 | </SpaceShip> |
---|
[6388] | 192 | <?lua |
---|
[5700] | 193 | end |
---|
| 194 | ?> |
---|
| 195 | |
---|
| 196 | <StaticEntity position="2800, 2500, 2500"> |
---|
| 197 | <attached> |
---|
| 198 | <CheckPoint /> |
---|
| 199 | <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/> |
---|
| 200 | <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/> |
---|
| 201 | </attached> |
---|
| 202 | </StaticEntity> |
---|
| 203 | <!-- |
---|
| 204 | <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500> |
---|
| 205 | <attached> |
---|
| 206 | <CheckPoint /> |
---|
| 207 | <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/> |
---|
| 208 | <Backlight |
---|
| 209 | mainstate=activity |
---|
| 210 | active=false |
---|
| 211 | scale=0.4 |
---|
| 212 | name=bltest |
---|
| 213 | position=" 7.6, 0, 6" |
---|
| 214 | colour="0.2, 0.65, 1.0, 1.0" |
---|
| 215 | width=15 |
---|
| 216 | length=1500 |
---|
| 217 | lifetime=2 |
---|
| 218 | elements=50 |
---|
| 219 | trailmaterial="Trail/backlighttrail" |
---|
| 220 | turnontime=1 |
---|
| 221 | turnofftime=1 |
---|
| 222 | material="Flares/ThrusterFlare1" |
---|
| 223 | /> |
---|
| 224 | </attached> |
---|
| 225 | <collisionShapes> |
---|
| 226 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
| 227 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
| 228 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
| 229 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
| 230 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
| 231 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
| 232 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
| 233 | </collisionShapes> |
---|
| 234 | </Destroyer> |
---|
| 235 | --> |
---|
| 236 | <Destroyer |
---|
| 237 | position = "6500,-2000,-1000" |
---|
| 238 | collisionType = dynamic |
---|
| 239 | mass = 100000 |
---|
| 240 | angularDamping = 0.9999999 |
---|
| 241 | health = 1000 |
---|
| 242 | maxhealth = 1000 |
---|
| 243 | initialhealth = 1000 |
---|
| 244 | > |
---|
| 245 | <controller> |
---|
| 246 | <WaypointPatrolController team=1 /> |
---|
| 247 | </controller> |
---|
| 248 | <attached> |
---|
| 249 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
| 250 | <Backlight |
---|
| 251 | mainstate=activity |
---|
| 252 | active=false |
---|
| 253 | scale=0.4 |
---|
| 254 | name=bltest |
---|
| 255 | position=" 7.6, 0, 6" |
---|
| 256 | colour="0.2, 0.65, 1.0, 1.0" |
---|
| 257 | width=15 |
---|
| 258 | length=1500 |
---|
| 259 | lifetime=2 |
---|
| 260 | elements=50 |
---|
| 261 | trailmaterial="Trail/backlighttrail" |
---|
| 262 | turnontime=1 |
---|
| 263 | turnofftime=1 |
---|
| 264 | material="Flares/ThrusterFlare1" |
---|
| 265 | /> |
---|
| 266 | <?lua for i=0,8,1 do ?> |
---|
| 267 | <BlinkingBillboard |
---|
| 268 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
| 269 | material="Examples/Flare" |
---|
| 270 | colour="1.0, 0.5, 0.3" |
---|
| 271 | phase=<?lua print(-360/8*i)?> |
---|
| 272 | amplitude=0.1 |
---|
| 273 | frequency=0.5 |
---|
| 274 | quadratic=1 |
---|
| 275 | /> |
---|
| 276 | |
---|
| 277 | <BlinkingBillboard |
---|
| 278 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
| 279 | material="Examples/Flare" |
---|
| 280 | colour="1.0, 0.5, 0.3" |
---|
| 281 | phase=<?lua print(-360/8*i)?> |
---|
| 282 | amplitude=0.1 |
---|
| 283 | frequency=0.5 |
---|
| 284 | quadratic=1 |
---|
| 285 | /> |
---|
| 286 | <?lua end ?> |
---|
| 287 | |
---|
| 288 | <Backlight |
---|
| 289 | scale=1 |
---|
| 290 | position=" 169, 75, -15" |
---|
| 291 | colour="1, 0.85, 0.5, 0.5" |
---|
| 292 | width=40 |
---|
| 293 | length=1000 |
---|
| 294 | lifetime=5 |
---|
| 295 | elements=15 |
---|
| 296 | trailmaterial="Trail/backlighttrail" |
---|
| 297 | material="Examples/Flare" |
---|
| 298 | /> |
---|
| 299 | <Backlight |
---|
| 300 | scale=1 |
---|
| 301 | position=" 169, -75, -15" |
---|
| 302 | colour="1, 0.85, 0.5, 0.5" |
---|
| 303 | width=40 |
---|
| 304 | length=1000 |
---|
| 305 | lifetime=5 |
---|
| 306 | elements=15 |
---|
| 307 | trailmaterial="Trail/backlighttrail" |
---|
| 308 | material="Examples/Flare" /> |
---|
| 309 | </attached> |
---|
| 310 | <collisionShapes> |
---|
| 311 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
| 312 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
| 313 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
| 314 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
| 315 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
| 316 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
| 317 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
| 318 | </collisionShapes> |
---|
| 319 | </Destroyer> |
---|
| 320 | |
---|
| 321 | <?lua |
---|
[6388] | 322 | for i = 1, 10, 1 |
---|
[5700] | 323 | do |
---|
| 324 | ?> |
---|
| 325 | <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" > |
---|
| 326 | <templates> |
---|
| 327 | <Template link=spaceshippirate /> |
---|
| 328 | </templates> |
---|
| 329 | <controller> |
---|
| 330 | <WaypointPatrolController alertnessradius=1000 team=1> |
---|
| 331 | <waypoints> |
---|
| 332 | <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" /> |
---|
| 333 | </waypoints> |
---|
| 334 | </WaypointPatrolController> |
---|
| 335 | </controller> |
---|
| 336 | </SpaceShip> |
---|
[6388] | 337 | <?lua |
---|
[5700] | 338 | end |
---|
| 339 | ?> |
---|
| 340 | |
---|
| 341 | <?lua |
---|
[6388] | 342 | for i = 1, 200, 1 |
---|
[5700] | 343 | do |
---|
| 344 | x = math.random() * 100 + (i-70) * 100 |
---|
| 345 | y = math.random() * 3000 - 1500 |
---|
| 346 | z = math.random() * 3000 - 1500 + (i-100) * 10 |
---|
| 347 | s = math.random() * 60 + 30 |
---|
| 348 | ?> |
---|
[6387] | 349 | |
---|
[6388] | 350 | <MovableEntity 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) ?>"> |
---|
[5700] | 351 | <attached> |
---|
| 352 | <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
| 353 | </attached> |
---|
| 354 | </MovableEntity> |
---|
[6388] | 355 | <?lua |
---|
[5700] | 356 | end |
---|
| 357 | ?> |
---|
| 358 | |
---|
| 359 | <?lua |
---|
| 360 | elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} |
---|
| 361 | sizes = {4, 4, 4, 4, 4, 10, 20} |
---|
| 362 | elements.length = function() |
---|
| 363 | return table.getn(elements) |
---|
| 364 | end |
---|
[6388] | 365 | for i = 1, 150, 1 |
---|
[5700] | 366 | do |
---|
| 367 | x = math.random() * 750 - 4500 |
---|
| 368 | y = math.random() * 1000 + 2000 |
---|
| 369 | z = math.random() * 500 + 1000 |
---|
| 370 | e = math.floor(math.random()*elements.length()+1) |
---|
| 371 | ?> |
---|
[6387] | 372 | |
---|
[6388] | 373 | <MovableEntity 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) ?>"> |
---|
[5700] | 374 | <attached> |
---|
| 375 | <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> |
---|
| 376 | </attached> |
---|
| 377 | </MovableEntity> |
---|
[6388] | 378 | <?lua |
---|
[5700] | 379 | end |
---|
| 380 | ?> |
---|
[6387] | 381 | |
---|
[5700] | 382 | </Scene> |
---|
| 383 | </Level> |
---|