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/gametype_underattack.oxw

    r5781 r7163  
    44  include("underattackhud.oxo")
    55  include("templates/spaceship_assff.oxt")
     6  include("templates/lodinformation.oxt")
    67?>
    78
     
    1112 gametype     = UnderAttack
    1213>
     14  <templates>
     15    <Template link=lodtemplate_default />
     16  </templates>
     17
    1318  <Scene
    1419   ambientlight = "0.5, 0.5, 0.5"
     
    1823
    1924    <?lua for i = 1, 30, 1 do ?>
    20         <MovableEntity
    21             position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
    22             velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
    23         >
    24             <attached>
    25                 <Model
    26                     <?lua x = math.random() * 150 + 30 ?>
    27                     scale="<?lua print(x) ?>"
    28                     mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
    29                     position="0,0,0"
    30                 />
    31             </attached>
    32             <collisionShapes>
    33                 <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" />
    34             </collisionShapes>
    35         </MovableEntity>
     25      <MovableEntity
     26          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
     27          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
     28      >
     29        <attached>
     30          <Model
     31              <?lua x = math.random() * 150 + 30 ?>
     32              scale="<?lua print(x) ?>"
     33              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
     34              position="0,0,0"
     35          />
     36        </attached>
     37          <collisionShapes>
     38            <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" />
     39          </collisionShapes>
     40      </MovableEntity>
    3641    <?lua end ?>
    3742
    3843    <Destroyer
    39         position          = "100,150,0"
    40         collisionType     = dynamic
    41         mass              = 100000
    42         velocity          = "-35,0,0"
    43         angularDamping    = 0.9999999
    44         health            = 10000
    45         maxhealth         = 10000
    46         initialhealth     = 10000
     44      position          = "100,150,0"
     45      collisionType     = dynamic
     46      mass              = 100000
     47      velocity          = "-35,0,0"
     48      angularDamping    = 0.9999999
     49      health            = 10000
     50      maxhealth         = 10000
     51      initialhealth     = 10000
    4752    >
    4853
    49         <attached>
    50             <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    51             <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    52             <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    53             <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    54             <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
    55             <?lua for i = 1, 100, 1 do ?>
    56                 <TeamSpawnPoint
    57                     team=0
    58                     position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
    59                     lookat="0,0,0"
    60                     spawnclass=SpaceShip
    61                     pawndesign=spaceshipassff
    62                 />
     54      <attached>
     55        <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     56        <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     57        <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     58        <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     59        <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
     60        <?lua for i = 1, 100, 1 do ?>
     61          <TeamSpawnPoint
     62            team=0
     63            position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
     64            lookat="0,0,0"
     65            spawnclass=SpaceShip
     66            pawndesign=spaceshipassff
     67          />
    6368
    64                 <!--more spawnpoints for team1-->
    65                 <!--
    66                 <TeamSpawnPoint
    67                     team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
    68                     lookat="0,0,0"
    69                     spawnclass=SpaceShip
    70                     pawndesign=spaceshipassff
    71                 />-->
    72             <?lua end ?>
     69          <!--more spawnpoints for team1-->
     70          <!--
     71          <TeamSpawnPoint
     72            team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
     73            lookat="0,0,0"
     74            spawnclass=SpaceShip
     75            pawndesign=spaceshipassff
     76          />-->
     77        <?lua end ?>
    7378
    74             <Model mesh="Carrier.mesh" scale="5" />
    75             <Backlight
    76                 mainstate=activity
    77                 active=false
    78                 scale=0.4
    79                 name=bltest
    80                 position=" 7.6, 0, 6"
    81                 colour="0.2, 0.65, 1.0, 1.0"
    82                 width=15
    83                 length=1500
    84                 lifetime=2
    85                 elements=50
    86                 trailmaterial="Trail/backlighttrail"
    87                 turnontime=1
    88                 turnofftime=1
    89                 material="Flares/ThrusterFlare1"
    90             />
    91             <?lua for i=0,8,1 do ?>
    92                 <BlinkingBillboard
    93                     position="<?lua print(200-270/8*i)?> ,15,2"
    94                     material="Examples/Flare"
    95                     colour="1.0, 0.5, 0.3"
    96                     phase=<?lua print(-360/8*i)?>
    97                     amplitude=0.1
    98                     frequency=0.5
    99                     quadratic=1
    100                 />
     79        <Model mesh="Carrier.mesh" scale="5" />
     80        <Backlight
     81          mainstate=activity
     82          active=false
     83          scale=0.4
     84          name=bltest
     85          position=" 7.6, 0, 6"
     86          colour="0.2, 0.65, 1.0, 1.0"
     87          width=15
     88          length=1500
     89          lifetime=2
     90          elements=50
     91          trailmaterial="Trail/backlighttrail"
     92          turnontime=1
     93          turnofftime=1
     94          material="Flares/ThrusterFlare1"
     95        />
     96        <?lua for i=0,8,1 do ?>
     97          <BlinkingBillboard
     98            position="<?lua print(200-270/8*i)?> ,15,2"
     99            material="Examples/Flare"
     100            colour="1.0, 0.5, 0.3"
     101            phase=<?lua print(-360/8*i)?>
     102            amplitude=0.1
     103            frequency=0.5
     104            quadratic=1
     105          />
    101106
    102                 <BlinkingBillboard
    103                     position="<?lua print(200-270/8*i)?>,-15,2"
    104                     material="Examples/Flare"
    105                     colour="1.0, 0.5, 0.3"
    106                     phase=<?lua print(-360/8*i)?>
    107                     amplitude=0.1
    108                     frequency=0.5
    109                     quadratic=1
    110                 />
    111             <?lua end ?>
     107          <BlinkingBillboard
     108            position="<?lua print(200-270/8*i)?>,-15,2"
     109            material="Examples/Flare"
     110            colour="1.0, 0.5, 0.3"
     111            phase=<?lua print(-360/8*i)?>
     112            amplitude=0.1
     113            frequency=0.5
     114            quadratic=1
     115          />
     116        <?lua end ?>
    112117
    113             <Backlight
    114                 scale=1
    115                 position=" 169, 75, -15"
    116                 colour="1, 0.85, 0.5, 0.5"
    117                 width=40
    118                 length=1000
    119                 lifetime=5
    120                 elements=15
    121                 trailmaterial="Trail/backlighttrail"
    122                 material="Examples/Flare"
    123             />
    124             <Backlight
    125                 scale=1
    126                 position=" 169, -75, -15"
    127                 colour="1, 0.85, 0.5, 0.5"
    128                 width=40
    129                 length=1000
    130                 lifetime=5
    131                 elements=15
    132                 trailmaterial="Trail/backlighttrail"
    133                 material="Examples/Flare" />
    134         </attached>
    135         <collisionShapes>
    136             <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
    137             <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
    138             <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
    139             <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
    140             <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
    141             <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
    142             <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
    143         </collisionShapes>
     118        <Backlight
     119          scale=1
     120          position=" 169, 75, -15"
     121          colour="1, 0.85, 0.5, 0.5"
     122          width=40
     123          length=1000
     124          lifetime=5
     125          elements=15
     126          trailmaterial="Trail/backlighttrail"
     127          material="Examples/Flare"
     128        />
     129        <Backlight
     130          scale=1
     131          position=" 169, -75, -15"
     132          colour="1, 0.85, 0.5, 0.5"
     133          width=40
     134          length=1000
     135          lifetime=5
     136          elements=15
     137          trailmaterial="Trail/backlighttrail"
     138          material="Examples/Flare" />
     139      </attached>
     140      <collisionShapes>
     141        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     142        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     143        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     144        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     145        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     146        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     147        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     148      </collisionShapes>
    144149    </Destroyer>
    145150
     
    158163      </collisionShapes>
    159164    </StaticEntity>
     165   
    160166  </Scene>
    161167</Level>
Note: See TracChangeset for help on using the changeset viewer.