Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2010, 8:41:19 PM (15 years ago)
Author:
dafrick
Message:

Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/data/levels/presentationHS09.oxw

    r6417 r7007  
    55  include("templates/spaceship_H2.oxt")
    66  include("templates/spaceship_pirate.oxt")
     7  include("templates/pickup_representation_templates.oxt")
    78?>
    89
     
    1718   skybox       = "Orxonox/skypanoramagen2"
    1819  >
     20
     21    <?lua
     22      include("includes/pickups.oxi")
     23    ?>
     24
    1925    <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" />
    2026
    21     <Template name="JumpItem" baseclass="Jump">
    22         <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
    23     </Template>
    24     <Template name="HealthImmediateItem" baseclass="HealthImmediate">
    25         <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
    26     </Template>
    27     <Template name="HealthUsableItem" baseclass="HealthUsable">
    28         <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
    29     </Template>
    30 
    3127    <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670"  spawnclass=SpaceShip pawndesign=spaceshipassff />
    32 
    33 
    3428
    3529    <SpaceShip position="-3900,3000,1000">
     
    9286    <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" />
    9387
    94     <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
    95         <attached>
    96             <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
    97             <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
    98         </attached>
     88    <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
     89      <pickup>
     90        <SpeedPickup template=smalljumppickup />
     91      </pickup>
    9992    </PickupSpawner>
    10093
    101     <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
    102         <attached>
    103             <Model mesh="gwrench.mesh" scale="1.0" />
    104             <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
    105         </attached>
     94    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
     95    <PickupRepresentation
     96      pickupName = "Medium Health Pack"
     97      pickupDescription = "Once used adds a medium amout of health to the ship."
     98      spawnerTemplate = "mediumhealthpickupRepresentation"
     99      inventoryRepresentation = "MediumHealth"
     100    >
     101      <pickup>
     102        <HealthPickup health=100 activationType="onUse" durationType="once" />
     103      </pickup>
     104    </PickupRepresentation>
     105
     106    <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
     107      <pickup>
     108        <HealthPickup health=100 activationType=onUse durationType=once />
     109      </pickup>
    106110    </PickupSpawner>
    107111
    108     <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
    109         <attached>
    110             <Model mesh="gwrench.mesh" scale="1.0" />
    111             <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
    112         </attached>
     112    <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20">
     113      <pickup>
     114        <HealthPickup template=mediumhealthpickup />
     115      </pickup>
    113116    </PickupSpawner>
    114117
     
    125128    </EventDispatcher>
    126129
    127 <?lua
    128 for i = 1, 10, 1
    129 do
    130 ?>
    131     <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
    132       <templates>
    133         <Template link=spaceshippirate />
    134       </templates>
    135       <controller>
    136         <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
    137           <waypoints>
    138             <StaticEntity position="3100, 2000, 1500" />
    139           </waypoints>
    140         </WaypointPatrolController>
    141       </controller>
    142     </SpaceShip>
    143 <?lua
    144 end
    145 ?>
    146 
    147 <?lua
    148 for i = 1, 12, 1
    149 do
    150 ?>
    151     <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
    152       <templates>
    153         <Template link=spaceshipassff />
    154       </templates>
    155       <controller>
    156         <WaypointPatrolController alertnessradius=1000 team=0>
    157           <waypoints>
    158             <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
    159           </waypoints>
    160         </WaypointPatrolController>
    161       </controller>
    162     </SpaceShip>
    163 <?lua
    164 end
    165 ?>
     130    <?lua
     131      for i = 1, 10, 1 do
     132    ?>
     133      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
     134        <templates>
     135          <Template link=spaceshippirate />
     136        </templates>
     137        <controller>
     138          <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
     139            <waypoints>
     140              <StaticEntity position="3100, 2000, 1500" />
     141            </waypoints>
     142          </WaypointPatrolController>
     143        </controller>
     144      </SpaceShip>
     145    <?lua end ?>
     146
     147    <?lua
     148      for i = 1, 12, 1 do
     149    ?>
     150      <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
     151        <templates>
     152          <Template link=spaceshipassff />
     153        </templates>
     154        <controller>
     155          <WaypointPatrolController alertnessradius=1000 team=0>
     156            <waypoints>
     157              <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
     158            </waypoints>
     159          </WaypointPatrolController>
     160        </controller>
     161      </SpaceShip>
     162    <?lua end ?>
    166163
    167164    <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
     
    177174    </EventDispatcher>
    178175
    179 <?lua
    180 for i = 1, 12, 1
    181 do
    182 ?>
    183     <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
    184       <templates>
    185         <Template link=spaceshipassff />
    186       </templates>
    187       <controller>
    188         <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
    189           <waypoints>
    190             <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
    191             <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
    192             <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
    193           </waypoints>
    194         </WaypointPatrolController>
    195       </controller>
    196     </SpaceShip>
    197 <?lua
    198 end
    199 ?>
     176    <?lua
     177      for i = 1, 12, 1 do
     178    ?>
     179      <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
     180        <templates>
     181          <Template link=spaceshipassff />
     182        </templates>
     183        <controller>
     184          <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
     185            <waypoints>
     186              <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
     187              <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
     188              <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
     189            </waypoints>
     190          </WaypointPatrolController>
     191        </controller>
     192      </SpaceShip>
     193    <?lua end ?>
    200194
    201195    <StaticEntity position="2800, 2500, 2500">
    202         <attached>
    203             <CheckPoint />
    204             <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
    205             <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
    206         </attached>
     196      <attached>
     197        <CheckPoint />
     198        <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
     199        <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
     200      </attached>
    207201    </StaticEntity>
     202
    208203<!--
    209204    <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
    210         <attached>
    211             <CheckPoint />
    212             <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
    213             <Backlight
    214                 mainstate=activity
    215                 active=false
    216                 scale=0.4
    217                 name=bltest
    218                 position=" 7.6, 0, 6"
    219                 colour="0.2, 0.65, 1.0, 1.0"
    220                 width=15
    221                 length=1500
    222                 lifetime=2
    223                 elements=50
    224                 trailmaterial="Trail/backlighttrail"
    225                 turnontime=1
    226                 turnofftime=1
    227                 material="Flares/ThrusterFlare1"
    228             />
    229         </attached>
    230         <collisionShapes>
    231             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    232             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    233             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    234             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    235             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    236             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    237             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    238         </collisionShapes>
     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>
    239234    </Destroyer>
    240235-->
     236
    241237    <Destroyer
    242         position          = "6500,-2000,-1000"
    243         collisionType     = dynamic
    244         mass              = 100000
    245         angularDamping    = 0.9999999
    246         health            = 1000
    247         maxhealth         = 1000
    248         initialhealth     = 1000
     238      position          = "6500,-2000,-1000"
     239      collisionType     = dynamic
     240      mass              = 100000
     241      angularDamping    = 0.9999999
     242      health            = 1000
     243      maxhealth         = 1000
     244      initialhealth     = 1000
    249245    >
     246      <controller>
     247        <WaypointPatrolController team=1 />
     248      </controller>
     249      <attached>
     250        <Model mesh="Carrier.mesh" scale="5" />
     251        <Backlight
     252          mainstate=activity
     253          active=false
     254          scale=0.4
     255          name=bltest
     256          position=" 7.6, 0, 6"
     257          colour="0.2, 0.65, 1.0, 1.0"
     258          width=15
     259          length=1500
     260          lifetime=2
     261          elements=50
     262          trailmaterial="Trail/backlighttrail"
     263          turnontime=1
     264          turnofftime=1
     265          material="Flares/ThrusterFlare1"
     266        />
     267
     268        <?lua
     269          for i=0,8,1 do
     270        ?>
     271          <BlinkingBillboard
     272            position="<?lua print(200-270/8*i)?> ,15,2"
     273            material="Examples/Flare"
     274            colour="1.0, 0.5, 0.3"
     275            phase=<?lua print(-360/8*i)?>
     276            amplitude=0.1
     277            frequency=0.5
     278            quadratic=1
     279          />
     280
     281          <BlinkingBillboard
     282            position="<?lua print(200-270/8*i)?>,-15,2"
     283            material="Examples/Flare"
     284            colour="1.0, 0.5, 0.3"
     285            phase=<?lua print(-360/8*i)?>
     286            amplitude=0.1
     287            frequency=0.5
     288            quadratic=1
     289          />
     290        <?lua end ?>
     291
     292        <Backlight
     293          scale=1
     294          position=" 169, 75, -15"
     295          colour="1, 0.85, 0.5, 0.5"
     296          width=40
     297          length=1000
     298          lifetime=5
     299          elements=15
     300          trailmaterial="Trail/backlighttrail"
     301          material="Examples/Flare"
     302        />
     303        <Backlight
     304          scale=1
     305          position=" 169, -75, -15"
     306          colour="1, 0.85, 0.5, 0.5"
     307          width=40
     308          length=1000
     309          lifetime=5
     310          elements=15
     311          trailmaterial="Trail/backlighttrail"
     312          material="Examples/Flare"
     313        />
     314      </attached>
     315      <collisionShapes>
     316        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     317        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     318        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     319        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     320        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     321        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     322        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     323      </collisionShapes>
     324    </Destroyer>
     325
     326    <?lua
     327      for i = 1, 10, 1 do
     328    ?>
     329      <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
     330        <templates>
     331          <Template link=spaceshippirate />
     332        </templates>
    250333        <controller>
    251           <WaypointPatrolController team=1 />
     334          <WaypointPatrolController alertnessradius=1000 team=1>
     335            <waypoints>
     336              <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
     337            </waypoints>
     338          </WaypointPatrolController>
    252339        </controller>
     340      </SpaceShip>
     341    <?lua end ?>
     342
     343    <?lua
     344      elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
     345
     346      elements.length = function()
     347        return table.getn(elements)
     348      end
     349
     350      for i = 1, 100, 1 do
     351        x = math.random() * 100  + (i) * 100
     352        y = math.random() * 3000 - 1500
     353        z = math.random() * 3000 - 1500 + (i-100) * 10
     354        s = math.random() * 60 + 30
     355        e = math.floor(math.random()*elements.length()+1)
     356    ?>
     357      <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() * 100 - 15) ?>">
    253358        <attached>
    254             <Model mesh="Carrier.mesh" scale="5" />
    255             <Backlight
    256                 mainstate=activity
    257                 active=false
    258                 scale=0.4
    259                 name=bltest
    260                 position=" 7.6, 0, 6"
    261                 colour="0.2, 0.65, 1.0, 1.0"
    262                 width=15
    263                 length=1500
    264                 lifetime=2
    265                 elements=50
    266                 trailmaterial="Trail/backlighttrail"
    267                 turnontime=1
    268                 turnofftime=1
    269                 material="Flares/ThrusterFlare1"
    270             />
    271             <?lua for i=0,8,1 do ?>
    272                 <BlinkingBillboard
    273                     position="<?lua print(200-270/8*i)?> ,15,2"
    274                     material="Examples/Flare"
    275                     colour="1.0, 0.5, 0.3"
    276                     phase=<?lua print(-360/8*i)?>
    277                     amplitude=0.1
    278                     frequency=0.5
    279                     quadratic=1
    280                 />
    281 
    282                 <BlinkingBillboard
    283                     position="<?lua print(200-270/8*i)?>,-15,2"
    284                     material="Examples/Flare"
    285                     colour="1.0, 0.5, 0.3"
    286                     phase=<?lua print(-360/8*i)?>
    287                     amplitude=0.1
    288                     frequency=0.5
    289                     quadratic=1
    290                 />
    291             <?lua end ?>
    292 
    293             <Backlight
    294                 scale=1
    295                 position=" 169, 75, -15"
    296                 colour="1, 0.85, 0.5, 0.5"
    297                 width=40
    298                 length=1000
    299                 lifetime=5
    300                 elements=15
    301                 trailmaterial="Trail/backlighttrail"
    302                 material="Examples/Flare"
    303             />
    304             <Backlight
    305                 scale=1
    306                 position=" 169, -75, -15"
    307                 colour="1, 0.85, 0.5, 0.5"
    308                 width=40
    309                 length=1000
    310                 lifetime=5
    311                 elements=15
    312                 trailmaterial="Trail/backlighttrail"
    313                 material="Examples/Flare" />
     359          <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
    314360        </attached>
    315         <collisionShapes>
    316             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    317             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    318             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    319             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    320             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    321             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    322             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    323         </collisionShapes>
    324     </Destroyer>
    325 
    326 <?lua
    327 for i = 1, 10, 1
    328 do
    329 ?>
    330     <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
    331       <templates>
    332         <Template link=spaceshippirate />
    333       </templates>
    334       <controller>
    335         <WaypointPatrolController alertnessradius=1000 team=1>
    336           <waypoints>
    337             <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
    338           </waypoints>
    339         </WaypointPatrolController>
    340       </controller>
    341     </SpaceShip>
    342 <?lua
    343 end
    344 ?>
    345 
    346 <?lua
    347 elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
    348 elements.length = function()
    349     return table.getn(elements)
    350 end
    351 for i = 1, 100, 1
    352 do
    353 x = math.random() * 100  + (i) * 100
    354 y = math.random() * 3000 - 1500
    355 z = math.random() * 3000 - 1500 + (i-100) * 10
    356 s = math.random() * 60 + 30
    357 e = math.floor(math.random()*elements.length()+1)
    358 ?>
    359 
    360     <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() * 100 - 15) ?>">
    361       <attached>
    362         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
    363       </attached>
    364     </MovableEntity>
    365 <?lua
    366 end
    367 ?>
    368 
    369 <?lua
    370 for i = 1, 100, 1
    371 do
    372 x = math.random() * 200 + i*200
    373 y = math.random() * 3000 - 1500
    374 z = math.random() * 3000 - 1500 + (i-100) * 10
    375 s = math.random() * 60 + 30
    376 ?>
    377   <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
    378 <!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" />
    379 -->
    380 <?lua
    381 end
    382 ?>
    383 
    384 <?lua
    385 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
    386 sizes = {4, 4, 4, 4, 4, 10, 20}
    387 elements.length = function()
    388     return table.getn(elements)
    389 end
    390 for i = 1, 150, 1
    391 do
    392 x = math.random() * 750 - 4500
    393 y = math.random() * 1000 + 2000
    394 z = math.random() * 500 + 1000
    395 e = math.floor(math.random()*elements.length()+1)
    396 ?>
    397 
    398     <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) ?>">
    399       <attached>
    400         <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
    401       </attached>
    402     </MovableEntity>
    403 <?lua
    404 end
    405 ?>
     361      </MovableEntity>
     362    <?lua end ?>
     363
     364    <?lua
     365      for i = 1, 100, 1 do
     366        x = math.random() * 200 + i*200
     367        y = math.random() * 3000 - 1500
     368        z = math.random() * 3000 - 1500 + (i-100) * 10
     369        s = math.random() * 60 + 30
     370    ?>
     371      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
     372      <!-- Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" /-->
     373    <?lua end ?>
     374
     375    <?lua
     376      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
     377      sizes = {4, 4, 4, 4, 4, 10, 20}
     378     
     379      elements.length = function()
     380        return table.getn(elements)
     381      end
     382     
     383      for i = 1, 150, 1 do
     384        x = math.random() * 750 - 4500
     385        y = math.random() * 1000 + 2000
     386        z = math.random() * 500 + 1000
     387        e = math.floor(math.random()*elements.length()+1)
     388    ?>
     389      <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) ?>">
     390        <attached>
     391          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
     392        </attached>
     393      </MovableEntity>
     394    <?lua end ?>
     395   
    406396<!--
    407397    <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
    408398-->
    409 </Scene>
     399
     400  </Scene>
    410401</Level>
Note: See TracChangeset for help on using the changeset viewer.