Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6345


Ignore:
Timestamp:
Dec 13, 2009, 8:37:31 PM (14 years ago)
Author:
decapitb
Message:

added some "ghost ships" and a destroyer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/levels/presentationHS09b.oxw

    r6342 r6345  
    1010  include("templates/spaceship_HXY.oxt")
    1111  include("templates/spaceship_Transporter.oxt")
     12  include("templates/spaceship_HXY_SL.oxt")
     13  include("templates/spaceship_Transporter_SL.oxt")
    1214?>
    1315
     
    1517 name         = "Sample"
    1618 description  = "Just a few tests"
     19 gametype     = TeamDeathmatch
    1720>
    1821  <Scene
     
    2225
    2326   
    24         <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
     27<AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
    2528
    2629   <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" />
     
    3336        return table.getn(elements)
    3437   end
    35    for i = 1, 100, 1
     38   for i = 1, 50, 1
    3639   do
    37    x = math.random() * 200  + (i) * 200
    38    y = math.random() * 3000 - 1500
    39    z = math.random() * 3000 - 1500 + (i-100) * 10
    40    s = math.random() * 100 + 50
     40   x = math.random() * 2000  + 4000
     41   y = math.random() * 4000 - 2000
     42   z = math.random() * 2000 - 1000
     43   s = math.random() * 100
    4144   e = math.floor(math.random()*elements.length()+1)
    4245   ?>
     
    5558
    5659<?lua
    57 for i = 1, 200, 1
    58 do
    59 x = math.random() * 100 + i*100
    60 y = math.random() * 3000 - 1500
    61 z = math.random() * 3000 - 1500 + (i-100) * 10
     60for i = 1, 50, 1
     61do
     62   x = math.random() * 2000  + 4000
     63   y = math.random() * 4000 - 2000
     64   z = math.random() * 2000 - 1000
    6265?>
    6366
     
    9396        ?>
    9497<?lua
    95 for i = 1,5, 1
    96 do
    97 ?>
    98     <SpaceShip position="2000,0,0" >
     98for i = 1,25, 1
     99do
     100?>
     101    <SpaceShip position="5000,0,<?lua print(i*50 - 150) ?>" >
    99102      <templates>
    100         <Template link=spaceshipHXY />
     103        <Template link=spaceshipHXYSL />
    101104      </templates>
    102105      <controller>
    103         <WaypointPatrolController name=HXY target=pirate alertnessradius=1000 team=0 active=true>
     106        <WaypointPatrolController alertnessradius=1000 team=0 active=true>
    104107          <waypoints>
    105             <StaticEntity position="0,0,0" />
     108            <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
    106109          </waypoints>
    107110        </WaypointPatrolController>
     
    111114end
    112115?>
    113 <SpaceShip position="2000,0,0" >
     116<SpaceShip position="5000,100,100" >
    114117      <templates>
    115         <Template link=spaceshipTransporter />
     118        <Template link=spaceshipTransporterSL />
    116119      </templates>
    117120      <controller>
    118         <WaypointPatrolController name=ghost target=pirate alertnessradius=1000 team=0 active=true>
     121        <WaypointPatrolController name=pirate  target=pirate alertnessradius=1000 team=0 active=false>
    119122          <waypoints>
    120             <StaticEntity position="0,0,0" />
     123            <StaticEntity position="5000,100,1100" />
    121124          </waypoints>
    122125        </WaypointPatrolController>
    123126      </controller>
    124127</SpaceShip>
     128    <Destroyer
     129        position          = "-5000,100 ,100"
     130        collisionType     = dynamic
     131        mass              = 100000
     132        angularDamping    = 0.9999999
     133        health            = 1000
     134        maxhealth         = 1000
     135        initialhealth     = 1000
     136    >
     137        <controller>
     138          <WaypointPatrolController team=1 />
     139        </controller>
     140        <attached>
     141            <Model mesh="Carrier.mesh" scale="5" />
     142            <Backlight
     143                mainstate=activity
     144                active=false
     145                scale=0.4
     146                name=bltest
     147                position=" 7.6, 0, 6"
     148                colour="0.2, 0.65, 1.0, 1.0"
     149                width=15
     150                length=1500
     151                lifetime=2
     152                elements=50
     153                trailmaterial="Trail/backlighttrail"
     154                turnontime=1
     155                turnofftime=1
     156                material="Flares/ThrusterFlare1"
     157            />
     158            <?lua for i=0,8,1 do ?>
     159                <BlinkingBillboard
     160                    position="<?lua print(200-270/8*i)?> ,15,2"
     161                    material="Examples/Flare"
     162                    colour="1.0, 0.5, 0.3"
     163                    phase=<?lua print(-360/8*i)?>
     164                    amplitude=0.1
     165                    frequency=0.5
     166                    quadratic=1
     167                />
     168
     169                <BlinkingBillboard
     170                    position="<?lua print(200-270/8*i)?>,-15,2"
     171                    material="Examples/Flare"
     172                    colour="1.0, 0.5, 0.3"
     173                    phase=<?lua print(-360/8*i)?>
     174                    amplitude=0.1
     175                    frequency=0.5
     176                    quadratic=1
     177                />
     178            <?lua end ?>
     179
     180            <Backlight
     181                scale=1
     182                position=" 169, 75, -15"
     183                colour="1, 0.85, 0.5, 0.5"
     184                width=40
     185                length=1000
     186                lifetime=5
     187                elements=15
     188                trailmaterial="Trail/backlighttrail"
     189                material="Examples/Flare"
     190            />
     191            <Backlight
     192                scale=1
     193                position=" 169, -75, -15"
     194                colour="1, 0.85, 0.5, 0.5"
     195                width=40
     196                length=1000
     197                lifetime=5
     198                elements=15
     199                trailmaterial="Trail/backlighttrail"
     200                material="Examples/Flare" />
     201        </attached>
     202        <collisionShapes>
     203            <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
     204            <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
     205            <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
     206            <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
     207            <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
     208            <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
     209            <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
     210        </collisionShapes>
     211    </Destroyer>
     212
     213
     214<?lua
     215for i = 1,25, 1
     216do
     217?>
     218    <SpaceShip position="-5000,0,<?lua print(i*50 - 150) ?>" >
     219      <templates>
     220        <Template link=spaceshipGhost />
     221      </templates>
     222      <controller>
     223        <WaypointPatrolController alertnessradius=1000 team=0 active=true>
     224          <waypoints>
     225            <StaticEntity position="-5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
     226          </waypoints>
     227        </WaypointPatrolController>
     228      </controller>
     229    </SpaceShip>
     230<?lua
     231end
     232?>
     233
     234
    125235<AmbientSound ambientSource="Earth.ogg" loop="true" play="false">
    126236       <events>
     
    131241    </AmbientSound>
    132242
    133     <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipHXY  />
     243    <SpawnPoint position="0,0,5000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0/>
    134244  </Scene>
    135245</Level>
Note: See TracChangeset for help on using the changeset viewer.