Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9721


Ignore:
Timestamp:
Oct 28, 2013, 3:59:10 PM (11 years ago)
Author:
skaan
Message:

level modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelKaan/data/levels/Level_01.oxw

    r9717 r9721  
    1919  include("templates/spaceshipPirate.oxt")
    2020  include("templates/spaceshipEscort.oxt")
    21   include("templates/spaceshipSpacecruiser.oxt")
     21  include("templates/spaceshipCollateralDamage.oxt")
    2222?>
    2323
     
    6262<SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
    6363
    64 <SpaceBoundaries warnDistance="1" maxDistance="1000" showDistance="300" healthDecrease="0.1" position="0,0,0"/>
    65 
    66 <?lua
    67       for i = 1, 250, 1
    68       do
    69       j = math.random()
    70     ?>
    71 
    72     <MovableEntity
    73       position = "<?lua print(math.random()* 6000-3000) ?>,<?lua print(math.random() * 6000 -3000) ?>,<?lua print(math.random() * 6000-3000) ?>"
    74       collisionType = dynamic
    75       linearDamping = 0.8
    76       angularDamping = 0
    77       scale = "<?lua print(j * 150)?>"
    78       collisiondamage = 0.005
    79       enablecollisiondamage = true
    80       velocity          = "-5,0,0"
    81     >
    82       <attached>
    83         <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    84       </attached>
    85       <collisionShapes>
    86         <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
    87       </collisionShapes>
    88     </MovableEntity>
    89 
    90     <?lua
    91       end
    92     ?>
     64
    9365
    9466
     
    10981        health    = 100000 initialhealth=100000 maxhealth="100000"
    11082        name      = "HydroFarmer"
    111         radarname = "Hydrogen Farmer" >
     83        radarname = "Main-Station" >
    11284      <attached>
    11385        <!-- Docking -->
     
    153125    </SpaceShip>
    154126
    155     <Dock position="-4000,3900,4000" roll=90 yaw=180 >
     127    <Dock position="-4000,4000,4000" roll=90 yaw=180 >
    156128        <animations>
    157129            <MoveToDockingTarget target="destroyer" />
     
    178150<!--@Objects: SpaceCruiser as docking target -->
    179151    <SpaceShip
    180         template            = "spaceshipspacecruiser"
     152        template            = "spaceshipcollateraldamage"
    181153        team                = "0"
    182154        position            = "-4000,4700,4000"
     
    199171
    200172
    201 <MovableEntity position="-500,500, 500">
     173<!--<MovableEntity position="-500,500, 500">
    202174    <attached>
    203175        <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=0.5/>
    204176    </attached>
    205 </MovableEntity>
     177</MovableEntity>-->
    206178
    207179
     
    224196    </SimpleNotification>
    225197
    226  <DistanceTrigger name="flying3" position="-500,500, 500" target="Pawn" distance=50 stayActive="true" delay=3/>
    227     <SimpleNotification message="Our friends from District 69 are under attack">
     198 <DistanceTrigger name="flying3" position="-4000,4000, 4000" target="Pawn" distance=3500 stayActive="true" delay=3/>
     199    <SimpleNotification message="Our Commander got kidnapped in District 69">
    228200        <events>
    229201            <trigger>
     
    233205    </SimpleNotification>
    234206
    235  <DistanceTrigger name="flying4" position="-500,500, 500" target="Pawn" distance=50 stayActive="true" delay=7/>
    236     <SimpleNotification message="We need you to help them.">
     207 <DistanceTrigger name="flying4" position="-4000,4000, 4000" target="Pawn" distance=3500 stayActive="true" delay=7/>
     208    <SimpleNotification message="We need you to rescue him.">
    237209        <events>
    238210            <trigger>
     
    242214    </SimpleNotification>
    243215
    244 <DistanceTrigger name="flying5" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=11/>
     216<DistanceTrigger name="flying5" position="-4000,4000,4000" target="Pawn" distance=3500 stayActive="true" delay=11/>
    245217    <SimpleNotification message="Dock on the station to get a better ship.">
    246218        <events>
     
    251223    </SimpleNotification>
    252224
    253 <DistanceTrigger name="wormhole1" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" mode="and">
    254         <EventTrigger name="ondock" activations="1" stayactive="true" delay=6>
    255           <events>
    256             <trigger>
    257               <EventListener event="dockMe" />
    258             </trigger>
    259           </events>
    260             <Trigger mode=and>
    261               <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
    262               <EventTrigger activations="1" invert="true">
    263                 <events>
    264                   <trigger>
    265                     <EventListener event="gameEnd" />
    266                   </trigger>
    267                 </events>
    268               </EventTrigger>
    269             </Trigger>
    270         </EventTrigger>
    271         <EventTrigger activations="1" invert="true">
    272           <events>
    273             <trigger>
    274               <EventListener event="earlyEnd" />
    275             </trigger>
    276           </events>
    277         </EventTrigger>
    278     </DistanceTrigger>
     225
    279226
    280227<!----------------------------------------------------------------------------------------------------->
     
    293240
    294241    <PortalEndPoint position="0,2000,0" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
    295     <PortalEndPoint position="0,50000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
     242    <PortalEndPoint position="0,97100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
    296243    <PortalLink fromID="1" toID="2" />
    297244    <!--<PortalLink fromID="2" toID="1" />-->
    298245
    299  <?lua
     246<SpaceBoundaries warnDistance="1" maxDistance="500" showDistance="300" healthDecrease="0.1" position="0,97100,0"/>
     247
     248<?lua
    300249      for i = 1, 500, 1
    301250      do
     
    304253
    305254    <MovableEntity
    306       position = "<?lua print(math.random()* 10000 - 5000) ?>,<?lua print(math.random() * 15000 + 45000) ?>,<?lua print(math.random() * 10000 - 5000) ?>"
     255      position = "<?lua print(math.random()* 10000-5000) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 10000-5000) ?>"
    307256      collisionType = dynamic
    308257      linearDamping = 0.8
    309258      angularDamping = 0
    310       scale = "<?lua print(j * 200)?>"
    311       collisiondamage = 0.05
     259      scale = "<?lua print(j * 150)?>"
     260      collisiondamage = 0.005
    312261      enablecollisiondamage = true
     262     
    313263    >
    314264      <attached>
     
    324274    ?>
    325275
     276<SpaceShip position="0,97300,200" lookat="0,-1,0" name="movingtarget" radarname="Pirate">
     277       <templates>
     278                  <Template link=spaceshippirate />
     279                    </templates>
     280 </SpaceShip>
     281
    326282<DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
    327283    <SimpleNotification message="Now go to the portal">
     
    333289    </SimpleNotification>
    334290
    335 <DistanceTrigger name="portal3" position="0,50000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
     291<DistanceTrigger name="portal3" position="0,100000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
    336292    <SimpleNotification message="You came to District 69">
    337293        <events>
     
    341297        </events>
    342298    </SimpleNotification>
     299
     300<!----------------------------------------------------------------------------------------------------->
     301<!--------------------------- PART TWO: Passing throug area with meteorits ---------------------------->
     302<!----------------------------------------------------------------------------------------------------->
    343303   
    344304  </Scene>
Note: See TracChangeset for help on using the changeset viewer.