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