Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 11, 2010, 8:55:13 AM (14 years ago)
Author:
dafrick
Message:

Merged presentation3 branch into trunk.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/levels/presentationHS09b.oxw

    r6417 r7163  
    22  include("stats.oxo")
    33  include("hudtemplates3.oxo")
     4  include("templates/lodinformation.oxt")
    45?>
    56
     
    1920 gametype     = TeamDeathmatch
    2021>
     22  <templates>
     23    <Template link=lodtemplate_default />
     24  </templates>
     25
    2126  <Scene
    2227    ambientlight = "0.8, 0.8, 0.8"
     
    2429  >
    2530
    26 
    27 <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
     31    <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
    2832
    2933   <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" />
    30 <?lua
    31    for i = 1, 50, 1
    32    do
    33    x = math.random() * 2000  + 4000
    34    y = math.random() * 4000 - 2000
    35    z = math.random() * 2000 - 1000
    36    s = math.random() * 100
    37    ?>
    38 
    39     <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) ?>">
    40       <attached>
    41         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
    42       </attached>
    43       <collisionShapes>
    44         <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
    45       </collisionShapes>
    46     </MovableEntity>
    47      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
    48 <?lua
    49 end
    50 ?>
    51 
    52 <?lua
    53 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
    54 sizes = {4, 4, 4, 4, 4, 10, 20}
    55 elements.length = function()
    56     return table.getn(elements)
    57 end
    58 for i = 1, 100, 1
    59 do
    60 x = math.random() * 750 - 4500
    61 y = math.random() * 1000 + 2000
    62 z = math.random() * 500 + 1000
    63 e = math.floor(math.random()*elements.length()+1)
    64 ?>
    65 
    66     <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) ?>">
    67       <attached>
    68         <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
    69       </attached>
    70     </MovableEntity>
    71 <?lua
    72 end
    73 ?>
    74 <?lua
    75 for i = 1,12, 1
    76 do
    77 ?>
    78     <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
    79       <templates>
    80         <Template link=spaceshipHXYSL />
    81       </templates>
    82       <controller>
    83         <WaypointPatrolController alertnessradius=4000 team=0 active=true>
    84           <waypoints>
    85             <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
    86           </waypoints>
    87         </WaypointPatrolController>
    88       </controller>
    89     </SpaceShip>
    90 <?lua
    91 end
    92 ?>
    93 <SpaceShip position="5000,100,100" >
     34   
     35    <?lua
     36      for i = 1, 50, 1 do
     37        x = math.random() * 2000  + 4000
     38        y = math.random() * 4000 - 2000
     39        z = math.random() * 2000 - 1000
     40        s = math.random() * 100
     41    ?>
     42      <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) ?>">
     43        <attached>
     44          <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" />
     45        </attached>
     46        <collisionShapes>
     47          <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
     48        </collisionShapes>
     49      </MovableEntity>
     50      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
     51    <?lua end ?>
     52
     53    <?lua
     54      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
     55      sizes = {4, 4, 4, 4, 4, 10, 20}
     56     
     57      elements.length = function()
     58        return table.getn(elements)
     59      end
     60     
     61      for i = 1, 100, 1 do
     62        x = math.random() * 750 - 4500
     63        y = math.random() * 1000 + 2000
     64        z = math.random() * 500 + 1000
     65        e = math.floor(math.random()*elements.length()+1)
     66    ?>
     67      <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) ?>">
     68        <attached>
     69          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
     70        </attached>
     71      </MovableEntity>
     72    <?lua end ?>
     73
     74    <?lua
     75      for i = 1,12, 1 do
     76    ?>
     77      <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
     78        <templates>
     79          <Template link=spaceshipHXYSL />
     80        </templates>
     81        <controller>
     82          <WaypointPatrolController alertnessradius=4000 team=0 active=true>
     83            <waypoints>
     84              <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
     85            </waypoints>
     86          </WaypointPatrolController>
     87        </controller>
     88      </SpaceShip>
     89    <?lua end ?>
     90
     91    <SpaceShip position="5000,100,100" >
    9492      <templates>
    9593        <Template link=spaceshipTransporterSL />
     
    102100        </WaypointPatrolController>
    103101      </controller>
    104 </SpaceShip>
     102    </SpaceShip>
     103
    105104    <Destroyer
    106         position          = "-5000,100 ,100"
    107         collisionType     = dynamic
    108         mass              = 100000
    109         angularDamping    = 0.9999999
    110         health            = 1000
    111         maxhealth         = 1000
    112         initialhealth     = 1000
     105      position          = "-5000,100 ,100"
     106      collisionType     = dynamic
     107      mass              = 100000
     108      angularDamping    = 0.9999999
     109      health            = 1000
     110      maxhealth         = 1000
     111      initialhealth     = 1000
    113112    >
    114         <controller>
    115           <WaypointPatrolController team=1 />
    116         </controller>
     113      <controller>
     114        <WaypointPatrolController team=1 />
     115      </controller>
     116      <attached>
     117        <Model mesh="Carrier.mesh" scale="5" />
     118        <Backlight
     119          mainstate=activity
     120          active=false
     121          scale=0.4
     122          name=bltest
     123          position=" 7.6, 0, 6"
     124          colour="0.2, 0.65, 1.0, 1.0"
     125          width=15
     126          length=1500
     127          lifetime=2
     128          elements=50
     129          trailmaterial="Trail/backlighttrail"
     130          turnontime=1
     131          turnofftime=1
     132          material="Flares/ThrusterFlare1"
     133        />
     134        <?lua
     135          for i=0,8,1 do
     136        ?>
     137          <BlinkingBillboard
     138            position="<?lua print(200-270/8*i)?> ,15,2"
     139            material="Examples/Flare"
     140            colour="1.0, 0.5, 0.3"
     141            phase=<?lua print(-360/8*i)?>
     142            amplitude=0.1
     143            frequency=0.5
     144            quadratic=1
     145          />
     146
     147          <BlinkingBillboard
     148            position="<?lua print(200-270/8*i)?>,-15,2"
     149            material="Examples/Flare"
     150            colour="1.0, 0.5, 0.3"
     151            phase=<?lua print(-360/8*i)?>
     152            amplitude=0.1
     153            frequency=0.5
     154            quadratic=1
     155          />
     156        <?lua end ?>
     157
     158        <Backlight
     159          scale=1
     160          position=" 169, 75, -15"
     161          colour="1, 0.85, 0.5, 0.5"
     162          width=40
     163          length=1000
     164          lifetime=5
     165          elements=15
     166          trailmaterial="Trail/backlighttrail"
     167          material="Examples/Flare"
     168        />
     169        <Backlight
     170          scale=1
     171          position=" 169, -75, -15"
     172          colour="1, 0.85, 0.5, 0.5"
     173          width=40
     174          length=1000
     175          lifetime=5
     176          elements=15
     177          trailmaterial="Trail/backlighttrail"
     178          material="Examples/Flare"
     179        />
     180      </attached>
     181      <collisionShapes>
     182        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     183        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     184        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     185        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     186        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     187        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     188        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     189      </collisionShapes>
     190    </Destroyer>
     191
     192    <?lua
     193      for i = 1, 50, 1 do
     194        x = -(math.random() * 2000  + 4000)
     195        y = math.random() * 4000 - 2000
     196        z = math.random() * 2000 - 1000
     197        s = math.random() * 100
     198    ?>
     199      <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) ?>">
    117200        <attached>
    118             <Model mesh="Carrier.mesh" scale="5" />
    119             <Backlight
    120                 mainstate=activity
    121                 active=false
    122                 scale=0.4
    123                 name=bltest
    124                 position=" 7.6, 0, 6"
    125                 colour="0.2, 0.65, 1.0, 1.0"
    126                 width=15
    127                 length=1500
    128                 lifetime=2
    129                 elements=50
    130                 trailmaterial="Trail/backlighttrail"
    131                 turnontime=1
    132                 turnofftime=1
    133                 material="Flares/ThrusterFlare1"
    134             />
    135             <?lua for i=0,8,1 do ?>
    136                 <BlinkingBillboard
    137                     position="<?lua print(200-270/8*i)?> ,15,2"
    138                     material="Examples/Flare"
    139                     colour="1.0, 0.5, 0.3"
    140                     phase=<?lua print(-360/8*i)?>
    141                     amplitude=0.1
    142                     frequency=0.5
    143                     quadratic=1
    144                 />
    145 
    146                 <BlinkingBillboard
    147                     position="<?lua print(200-270/8*i)?>,-15,2"
    148                     material="Examples/Flare"
    149                     colour="1.0, 0.5, 0.3"
    150                     phase=<?lua print(-360/8*i)?>
    151                     amplitude=0.1
    152                     frequency=0.5
    153                     quadratic=1
    154                 />
    155             <?lua end ?>
    156 
    157             <Backlight
    158                 scale=1
    159                 position=" 169, 75, -15"
    160                 colour="1, 0.85, 0.5, 0.5"
    161                 width=40
    162                 length=1000
    163                 lifetime=5
    164                 elements=15
    165                 trailmaterial="Trail/backlighttrail"
    166                 material="Examples/Flare"
    167             />
    168             <Backlight
    169                 scale=1
    170                 position=" 169, -75, -15"
    171                 colour="1, 0.85, 0.5, 0.5"
    172                 width=40
    173                 length=1000
    174                 lifetime=5
    175                 elements=15
    176                 trailmaterial="Trail/backlighttrail"
    177                 material="Examples/Flare" />
     201          <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
    178202        </attached>
    179203        <collisionShapes>
    180             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    181             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    182             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    183             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    184             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    185             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    186             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     204          <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
    187205        </collisionShapes>
    188     </Destroyer>
    189 
    190    <?lua
    191    for i = 1, 50, 1
    192    do
    193    x = -(math.random() * 2000  + 4000)
    194    y = math.random() * 4000 - 2000
    195    z = math.random() * 2000 - 1000
    196    s = math.random() * 100
    197    ?>
    198 
    199     <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) ?>">
    200       <attached>
    201         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" />
    202       </attached>
    203       <collisionShapes>
    204         <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
    205       </collisionShapes>
    206     </MovableEntity>
    207     <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
    208 <?lua
    209 end
    210 ?>
    211 <!--<EventDispatcher>
     206      </MovableEntity>
     207      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
     208    <?lua end ?>
     209
     210    <!-- EventDispatcher>
    212211      <targets>
    213212        <EventTarget target=attack />
     
    219218        </activity>
    220219      </events>
    221 </EventDispatcher>
    222 
    223 <EventDispatcher>
     220    </EventDispatcher>
     221
     222    <EventDispatcher>
    224223      <targets>
    225224        <EventTarget target=wait />
     
    230229        </activity>
    231230      </events>
    232 </EventDispatcher>-->
    233 
    234 <?lua
    235 for i = 1,25, 1
    236 do
    237 ?>
    238 <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
    239       <templates>
    240         <Template link=spaceshipghost />
    241       </templates>
    242       <controller>
    243 
     231    </EventDispatcher -->
     232
     233    <?lua
     234      for i = 1,25, 1 do
     235    ?>
     236      <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
     237        <templates>
     238          <Template link=spaceshipghost />
     239        </templates>
     240        <controller>
    244241          <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false>
    245           <events>
    246            <activity>
    247              <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
    248            </activity>
    249           </events>
     242            <events>
     243              <activity>
     244                <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
     245              </activity>
     246            </events>
    250247          </WaypointPatrolController>
    251 
    252       </controller>
    253     </SpaceShip>
    254 <?lua
    255 end
    256 ?>
    257 
    258 
     248        </controller>
     249      </SpaceShip>
     250    <?lua end ?>
    259251
    260252    <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false">
     
    266258    </AmbientSound>
    267259
    268     <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0/>
     260    <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0 />
     261   
    269262  </Scene>
    270263</Level>
Note: See TracChangeset for help on using the changeset viewer.