Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9878 for code/branches


Ignore:
Timestamp:
Dec 9, 2013, 2:07:55 PM (11 years ago)
Author:
skaan
Message:

Asteroiden an und ausschalten und bei Tod zuruecksetzen.

File:
1 edited

Legend:

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

    r9836 r9878  
    5959   <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"/>       
    6060
    61    <TeamSpawnPoint team=0 position="0,94000,0" direction="-1,1,1" spawnclass=SpaceShip pawndesign=spaceshipescort/> <!--spaceshipescort-->
     61   <TeamSpawnPoint team=0 position="0,0,0" direction="1,1,1" spawnclass=SpaceShip pawndesign=spaceshipescort/> <!--spaceshipescort-->
    6262
    6363
     
    7171   
    7272<!-- @Objects: HYDROGEN FARMER & DOCKING -->
    73    <SpaceShip
     73 <!--  <SpaceShip
    7474        team      = 0
    75         position  = "5000,5100,5000"
     75        position  = "-4000,4100,4000"
    7676        roll      = 90   yaw=0  pitch=20
    7777        mass      = 10000
    7878        health    = 100000 initialhealth=100000 maxhealth="100000"
    7979        name      = "HydroFarmer"
    80         radarname = "Hydro Farmer" >
     80        radarname = "Hydrogen Farmer" >
    8181      <attached>
    8282        <!-- Docking -->
    83          <DistanceTriggerBeacon name="bcnDestroyer" />
     83  <!--       <DistanceTriggerBeacon name="bcnDestroyer" />
    8484         <DockingTarget name="destroyer" />
    8585
     
    101101        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
    102102        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
    103       </attached>
     103  <!--    </attached>
    104104      <collisionShapes>
    105105        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
    106         <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
     106   <!--     <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
    107107        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
    108108        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
    109         <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
     109<!--        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
    110110        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
    111111        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
    112         <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
     112  <!--      <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
    113113        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
    114114        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
    115         <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
    116         <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
     115<!--        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
     116 <!--       <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
    117117        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
    118118        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
    119         <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
     119  <!--      <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
    120120        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
    121121      </collisionShapes>
    122122    </SpaceShip>
    123123
    124    <Dock position="5000,5000,5000" roll=90 yaw=180 >
     124   <Dock position="-4000,4000,4000" roll=90 yaw=180 >
    125125      <animations>
    126126         <MoveToDockingTarget target="destroyer" />
     
    143143        </attached>
    144144
    145     </Dock>
     145    </Dock> ->>
    146146
    147147<!--@Objects: SpaceCruiser as docking target -->
    148     <SpaceShip
     148  <!--  <SpaceShip
    149149        template            = "spaceshipcollateraldamage"
    150150        team                = "0"
    151         position            = "5000,5800,5000"
     151        position            = "-4000,4800,4000"
    152152        orientation         = "-0.14, 0.68, 0.68, 0.223"
    153153        health              = "400"
     
    167167    </SpaceShip>
    168168
    169 
    170 <BlinkingBillboard position="1000,1000,1000" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     169<BlinkingBillboard position="-3800,4800,4000" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     170          <events>
     171            <visibility>
     172                    <EventListener event=dockMe />
     173            </visibility>
     174          </events>
     175</BlinkingBillboard>
     176
     177<BlinkingBillboard position="-500,500,500" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
    171178          <events>
    172179            <visibility>
     
    181188          </events>
    182189</BlinkingBillboard>
    183 <Billboard position="1000,1000,1000" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     190<Billboard position="-500,500,500" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
    184191          <events>
    185192            <visibility>
     
    195202</Billboard>
    196203
    197   <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=1/>
    198     <SimpleNotification message="Housten: John Vane do you hear us">
     204  <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=4/>
     205    <SimpleNotification message="Hey Rookie.. We got a new mission for you.">
    199206        <events>
    200207            <trigger>
     
    204211    </SimpleNotification>
    205212
    206    <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=4/>
    207    <SimpleNotification message="Housten: We got a new mission for you">
     213  <DistanceTrigger name="flying2" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=8/>
     214    <SimpleNotification message="Go to the main station for more information.">
    208215        <events>
    209216            <trigger>
     
    211218            </trigger>
    212219        </events>
    213    </SimpleNotification>
    214 
    215 
    216   <DistanceTrigger name="flying3" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=7/>
    217     <SimpleNotification message="John: I hear you. What is it about">
     220    </SimpleNotification>
     221
     222 <DistanceTrigger name="flying3" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=3/>
     223    <SimpleNotification message="Our Commander got kidnapped in District 69">
    218224        <events>
    219225            <trigger>
     
    223229    </SimpleNotification>
    224230
    225  <DistanceTrigger name="flying4" position="1000,1000, 1000" target="Pawn" distance=100 stayActive="true" delay=1/>
    226     <SimpleNotification message="Housten: Our Commander got kidnapped in Area 51">
     231 <DistanceTrigger name="flying4" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=7/>
     232    <SimpleNotification message="We need you to rescue him.">
    227233        <events>
    228234            <trigger>
     
    232238    </SimpleNotification>
    233239
    234  <DistanceTrigger name="flying5" position="1000,1000, 1000" target="Pawn" distance=100 stayActive="true" delay=4/>
    235     <SimpleNotification message="Housten: We need you to rescue him.">
     240<DistanceTrigger name="flying5" position="-500,500,500" target="Pawn" distance=100 stayActive="true" delay=11/>
     241    <SimpleNotification message="Dock on the station to get a better ship.">
    236242        <events>
    237243            <trigger>
     
    240246        </events>
    241247    </SimpleNotification>
    242 
    243 <DistanceTrigger name="flying6" position="1000,1000, 1000" target="Pawn" distance=100 stayActive="true" delay=7/>
    244     <SimpleNotification message="John: I'm right on the way.">
    245         <events>
    246             <trigger>
    247                 <EventListener event="flying6" />
    248             </trigger>
    249         </events>
    250     </SimpleNotification>
    251 
    252 
    253 <DistanceTrigger name="flying5" position="1000,1000,1000" target="Pawn" distance=100 stayActive="true" delay=10/>
    254     <SimpleNotification message="Houston: First dock on the station">
    255         <events>
    256             <trigger>
    257                 <EventListener event="flying5" />
    258             </trigger>
    259         </events>
    260     </SimpleNotification>
    261 
     248-->
    262249
    263250<!----------------------------------------------------------------------------------------------------->
     
    268255<!------------------------------------- OBJECTS IN THIS PART ------------------------------------------>
    269256
    270    <Model position="-4000,  2800, 4000" yaw="90" pitch="-90" roll="90" scale="3" mesh="satellite.mesh" />
     257 <!--  <Model position="-4000,  2800, 4000" yaw="90" pitch="-90" roll="90" scale="3" mesh="satellite.mesh" />
    271258
    272259   <Template name=PortalDefault>
     
    296283      position = "<?lua print(math.random()* 1500-750) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 1500-750) ?>"
    297284      scale = "<?lua print(j * 40)?>"
    298       velocity = "<?lua print(j*30)?>, <?lua print(-100, <?lua print(j*30)?>"
     285      velocity = "0, -180, 0"
    299286      collisionType = dynamic
    300287      collisiondamage = 0.1
     
    317304         <collisionShapes>
    318305            <SphereCollisionShape radius="<?lua print(j * 50) ?>" />
    319          </collisionShapes>   -->
     306         </collisionShapes>   
    320307   </MovableEntity>
    321308
     
    324311   ?>
    325312
    326    <DistanceTrigger name="start" position="0,94000,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=20 stayActive="true" delay=0 />
    327 
    328 <DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
    329     <SimpleNotification message="Housten: Now go through the portal!">
    330         <events>
    331             <trigger>
    332                 <EventListener event="portal2" />
    333             </trigger>
    334         </events>
    335     </SimpleNotification>
    336 
    337 
    338 
     313 <!--  <DistanceTrigger name="start" position="0,94000,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=20 stayActive="true" delay=0 />
     314
     315<DistanceTrigger name="portal1" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
     316    <SimpleNotification message="Now go to the portal next to the satellite">
     317        <events>
     318            <trigger>
     319                <EventListener event="portal1" />
     320            </trigger>
     321        </events>
     322    </SimpleNotification>
     323
     324<DistanceTrigger name="portal3" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=3/>
     325    <SimpleNotification message="Reach the wormhole to District 69">
     326        <events>
     327            <trigger>
     328                <EventListener event="portal3" />
     329            </trigger>
     330        </events>
     331    </SimpleNotification>
     332
     333   <SimpleNotification message="Take the lead of the formation">
     334        <events>
     335            <trigger>
     336                <EventListener event="endOfLevel" />
     337            </trigger>
     338        </events>
     339    </SimpleNotification>
    339340
    340341<!----------------------------------------------------------------------------------------------------->
    341342<!--------------------------- PART TWO: Passing throug area with meteorits ---------------------------->
    342343<!----------------------------------------------------------------------------------------------------->
    343 
    344 <!--<?lua for i=0,2,1 do
    345 ?>
    346 
    347    <SpaceShip
    348       position="-50+i*50, 94200, 0"
    349    >
    350       <templates>
    351          <Template link=spaceshipcollateraldamage />
    352       </templates>
    353       <controller>
    354          <AIController team=0>
    355           <events>
    356                     <activity>
    357                         <EventListener event="start" />
    358                      </activity>
    359             </events>
    360          </AIController>
    361       </controller>
    362       <attached>
    363          <DistanceTriggerBeacon name="SpaceShipSupport" />
    364                   <DistanceTriggerBeacon name="bcnDestroyer" />
    365       </attached>
    366    </SpaceShip>
    367 
    368 <?lua end ?> 
    369 
    370 <Script code="humancontroller toggleFormationFlight" onLoad="false">
    371    <events>
    372         <trigger>
    373                 <EventListener event="start" />
    374         </trigger>
    375    </events>
    376 </Script>
    377 
    378  <Script code="formationcontroller formationflight true" onLoad="false">
    379         <events>
    380             <trigger>
    381                 <EventListener event=start />
    382             </trigger>
    383         </events>
    384     </Script> <!-- !!! activates formation behaviour !!! -->
    385 
    386 <!-- <Script code="formationcontroller followme">
    387         <events>
    388             <trigger>
    389                 <EventListener event=start />
    390             </trigger>
    391         </events>
    392     </Script> <!-- !!! activates formation behaviour !!! -->
    393 
    394  <!--   <Script code="artificialcontroller setbotlevel 5" onLoad="false">
    395         <events>
    396             <trigger>
    397                 <EventListener event=start />
    398             </trigger>
    399         </events>
    400     </Script>  -->
    401344   
    402    <SpaceShip
     345   <!--<SpaceShip
    403346        team      = 0
    404347        position  = "0,106000,0"
     
    409352        radarname = "Wormhole to District 69" >
    410353      <attached>
    411          <DistanceTriggerBeacon name="bcnDestroyer" />
     354        <!-- Docking -->
     355     <!--    <DistanceTriggerBeacon name="bcnDestroyer" />
    412356         <Billboard position="0,0,0" material="Portals/Default" />
    413357        <DistanceTrigger name="endOfLevel" position="0,0,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=50 stayActive="true" delay=0/>
     
    430374        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
    431375        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
    432       </attached>
     376 <!--     </attached>
    433377      <collisionShapes>
    434378        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
    435         <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
     379   <!--     <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
    436380        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
    437381        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
    438         <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
     382<!--        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
    439383        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
    440384        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
    441         <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
     385 <!--       <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
    442386        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
    443387        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
    444         <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
    445         <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
     388  <!--      <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
     389 <!--       <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
    446390        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
    447391        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
    448         <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
     392   <!--     <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
    449393        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
    450394      </collisionShapes>
    451395    </SpaceShip>
    452396
    453    <DistanceTrigger name="portal3" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=1/>
    454    <SimpleNotification message="Housten: Reach the wormhole to Area 51">
    455       <events>
    456          <trigger>
    457             <EventListener event="portal3"
    458          </trigger>
    459       </events>
    460    </SimpleNotification>
    461 
    462    <DistanceTrigger name="portal4" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=4/>
    463    <SimpleNotification message="Housten: Hurry up John">
    464       <events>
    465          <trigger>
    466             <EventListener event="portal4"
    467          </trigger>
    468       </events>
    469    </SimpleNotification>
    470 
    471    <DistanceTrigger name="portal5" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=7/>
    472    <SimpleNotification message="We ">
    473       <events>
    474          <trigger>
    475             <EventListener event="portal5"
    476          </trigger>
    477       </events>
    478    </SimpleNotification>
    479 
    480 
    481 
    482397    <SimpleNotification message="End of game">
    483398        <events>
     
    494409            </trigger>
    495410        </events>
    496     </Script>
     411    </Script> -->
    497412
    498413  </Scene>
Note: See TracChangeset for help on using the changeset viewer.