Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2013, 2:07:54 PM (11 years ago)
Author:
skaan
Message:

Update meteorids, endofgame

Location:
code/branches/levelKaan/data/levels
Files:
7 edited

Legend:

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

    r9748 r9807  
    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,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort/>
    62 
    63    <MovableEntity       
    64       position = "300,0,0"
    65       scale = "10"
    66       velocity = "-20, 0, 0"
    67       collisionType = dynamic
    68       collisiondamage = 0.005
    69       enablecollisiondamage = true
    70    >
    71      <!-- collisionType = dynamic
    72       linearDamping = 0.8
    73       angularDamping = 0
    74       collisiondamage = 0.005
    75       enablecollisiondamage = true -->
    76 
    77       <events>
    78          <activity>
    79             <EventListener event="startAsteroids" />
    80          </activity>
    81       </events>
    82       <attached>
    83          <Model mass="1000" mesh="ast1.mesh" />
    84          <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
    85       </attached>
    86         <collisionShapes>
    87          <SphereCollisionShape radius="10" />
    88       </collisionShapes> 
    89    </MovableEntity>
    90 
    91    <DistanceTrigger name="startAsteroids" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
     61   <TeamSpawnPoint team=0 position="-4000,2500,4100" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage/> <!--spaceshipescort-->
     62
    9263
    9364<!----------------------------------------------------------------------------------------------------->
     
    197168
    198169
    199    <SpaceShip
    200       position="-4000, 4900, 4000" >
    201 <templates>
    202             <Template link=spaceshipcollateraldamage /> <!--spaceshipTransporter spaceshippirate-->
    203         </templates>
    204         <controller>
    205             <AIController team=0>
    206                 <events>
    207                     <activity>
    208                         <EventListener event="formation" />
    209                      </activity>
    210                 </events>
    211             </AIController>
    212         </controller>
    213     </SpaceShip>
    214170
    215171<MovableEntity position="-500,500, 500">
     
    217173        <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=0.5/>
    218174    </attached>
    219 </MovableEntity>
    220 
    221 <MovableEntity position="-4000,4100, 4000">
    222     <attached>
    223         <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=5/>
    224     </attached>
    225 </MovableEntity>
    226 
    227  <Script code="formationcontroller formationflight true" onLoad="false">
    228         <events>
    229             <trigger>
    230                 <EventListener event=formation />
    231             </trigger>
    232         </events>
    233     </Script> <!-- !!! activates formation behaviour !!! -->
    234 
    235     <Script code="artificialcontroller setbotlevel 5" onLoad="false">
    236         <events>
    237             <trigger>
    238                 <EventListener event=formation />
    239             </trigger>
    240         </events>
    241     </Script>
    242 
    243  <DistanceTrigger name="formation" position="-4000,4800,4000" target="Pawn" distance=20 stayActive="true" delay=4/>
    244 
    245 <Script code="humancontroller toggleFormationFlight" onLoad="false">
    246    <events>
    247         <trigger>
    248                 <EventListener event="formation" />
    249         </trigger>
    250    </events>
    251 </Script>
    252 
    253   <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=4/>
     175</MovableEntity>   
     176
     177  <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=100 stayActive="true" delay=4/>
    254178    <SimpleNotification message="Hey Rookie.. We got a new mission for you.">
    255179        <events>
     
    296220    </SimpleNotification>
    297221
    298 
     222<DistanceTrigger name="flying6" position="-4000,2800,4000" target="Pawn" distance=100 stayActive="true" delay=1/>
     223    <SimpleNotification message="Enemy behind the portal!">
     224        <events>
     225            <trigger>
     226                <EventListener event="flying6" />
     227            </trigger>
     228        </events>
     229    </SimpleNotification>
     230
     231<DistanceTrigger name="flying7" position="-4000,2800,4000" target="Pawn" distance=100 stayActive="true" delay=4/>
     232    <SimpleNotification message="Kill it by pressing T!">
     233        <events>
     234            <trigger>
     235                <EventListener event="flying7" />
     236            </trigger>
     237        </events>
     238    </SimpleNotification>
    299239
    300240<!----------------------------------------------------------------------------------------------------->
     
    302242<!----------------------------------------------------------------------------------------------------->
    303243
    304 <!-- OBJECTS IN THIS PART -->
     244
     245<!------------------------------------- OBJECTS IN THIS PART ------------------------------------------>
     246
     247   <Model position="-4000,  2800, 4000" yaw="90" pitch="-90" roll="0" scale="3" mesh="satellite.mesh" />
    305248
    306249   <Template name=PortalDefault>
     
    319262  <!-- <SpaceBoundaries warnDistance="1" maxDistance="500" showDistance="300" healthDecrease="0.1" position="0,97100,0"/> -->
    320263
     264
     265<!-- Meteoriten, die sich bewegen -->
    321266<?lua
    322       for i = 1, 700, 1
     267      for i = 1, 400, 1
    323268      do
    324269      j = math.random()
     
    326271
    327272   <MovableEntity       
    328       position = "<?lua print(math.random()* 10000-5000) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 10000-5000) ?>"
    329       scale = "<?lua print(j * 50)?>"
    330       velocity = "0, -60, 0"
     273      position = "<?lua print(math.random()* 2000-1000) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 2000-1000) ?>"
     274      scale = "<?lua print(j * 40)?>"
     275      velocity = "0, -20, 0"
    331276      collisionType = dynamic
    332       collisiondamage = 0.05
     277      collisiondamage = 0.1
    333278      enablecollisiondamage = true
    334279   >
     
    355300      end
    356301   ?>
    357        
    358    <DistanceTrigger name="start" position="0,95000,0" target="SpaceShip" distance=50 stayActive="true" delay=0 />
    359 
    360        
    361 
    362 <!--<SpaceShip position="0,97300,200" lookat="0,-1,0" name="movingtarget" radarname="Pirate">
    363        <templates>
    364                   <Template link=spaceshippirate />
    365                     </templates>
    366  </SpaceShip> -->
     302
     303   <DistanceTrigger name="start" position="0,95000,0" target="SpaceShip" beaconMode="exclude" targetname="SpaceShipSupport" distance=20 stayActive="true" delay=0 />
    367304
    368305<DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
    369     <SimpleNotification message="Now go to the portal">
     306    <SimpleNotification message="Now go to the satel">
    370307        <events>
    371308            <trigger>
     
    376313
    377314<DistanceTrigger name="portal3" position="0,95000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
    378     <SimpleNotification message="You came to District 69">
     315    <SimpleNotification message="Reach the wormhole to District 69">
    379316        <events>
    380317            <trigger>
     
    387324<!--------------------------- PART TWO: Passing throug area with meteorits ---------------------------->
    388325<!----------------------------------------------------------------------------------------------------->
    389    
     326
     327<?lua for i=0,2,1 do
     328?>
     329
     330   <SpaceShip
     331      position="-50+i*50, 94000, 4000"
     332   >
     333      <templates>
     334         <Template link=spaceshipcollateraldamage /> <!--spaceshipTransporter spaceshippirate-->
     335      </templates>
     336      <controller>
     337         <AIController team=0>
     338          <events>
     339                    <activity>
     340                        <EventListener event="start" />
     341                     </activity>
     342            </events>
     343         </AIController>
     344      </controller>
     345      <attached>
     346         <DistanceTriggerBeacon name="SpaceShipSupport" />
     347                  <DistanceTriggerBeacon name="bcnDestroyer" />
     348      </attached>
     349   </SpaceShip>
     350
     351<?lua end ?> 
     352
     353<Script code="humancontroller toggleFormationFlight" onLoad="false">
     354   <events>
     355        <trigger>
     356                <EventListener event="start" />
     357        </trigger>
     358   </events>
     359</Script>
     360
     361 <Script code="formationcontroller formationflight true" onLoad="false">
     362        <events>
     363            <trigger>
     364                <EventListener event=start />
     365            </trigger>
     366        </events>
     367    </Script> <!-- !!! activates formation behaviour !!! -->
     368
     369    <Script code="artificialcontroller setbotlevel 5" onLoad="false">
     370        <events>
     371            <trigger>
     372                <EventListener event=start />
     373            </trigger>
     374        </events>
     375    </Script>
     376   
     377   <SpaceShip
     378        team      = 0
     379        position  = "0,100000,0"
     380        roll      = 0   yaw=90  pitch=0
     381        mass      = 10000
     382        health    = 100000 initialhealth=100000 maxhealth="100000"
     383        name      = "wormhole"
     384        radarname = "Wormhole to District 69" >
     385      <attached>
     386        <!-- Docking -->
     387         <DistanceTriggerBeacon name="bcnDestroyer" />
     388         <Billboard position="0,0,0" material="Portals/Default" />
     389
     390        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
     391   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
     392        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
     393        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
     394        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
     395        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
     396        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
     397        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
     398        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
     399        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
     400        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
     401        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
     402        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
     403        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
     404        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
     405        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
     406        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
     407      </attached>
     408      <collisionShapes>
     409        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
     410        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
     411        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
     412        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
     413        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
     414        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
     415        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
     416        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
     417        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
     418        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
     419        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
     420        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
     421        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
     422        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
     423        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
     424        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
     425      </collisionShapes>
     426    </SpaceShip>
     427
     428   <DistanceTrigger name="endOfLevel" position="0,100000,0" target="SpaceShip" beaconMode="exclude" targetname="bcnDestroyer" distance=50 stayActive="true" delay=3/>
     429    <SimpleNotification message="End of game">
     430        <events>
     431            <trigger>
     432                <EventListener event="portal3" />
     433            </trigger>
     434        </events>
     435    </SimpleNotification>
     436
     437   <Script code="Mission endMission true" onLoad="false">
     438        <events>
     439            <trigger>
     440                <EventListener event=endOfLevel />
     441            </trigger>
     442        </events>
     443    </Script>
     444
    390445  </Scene>
    391446</Level>
  • code/branches/levelKaan/data/levels/maxim.oxw

    r9664 r9807  
     1<!-- -->
     2
    13<LevelInfo
    24 name = "Maxim's Test"
  • code/branches/levelKaan/data/levels/missionOne.oxw

    r9348 r9807  
     1<!---->
     2
    13<LevelInfo
    24 name = "Mission One"
  • code/branches/levelKaan/data/levels/portals.oxw

    r9348 r9807  
    1 
     1<!---->
    22<LevelInfo
    33 name = "Portals"
  • code/branches/levelKaan/data/levels/presentation.oxw

    r9016 r9807  
     1<!-- -->
     2
    13<LevelInfo
    24 name = "Presentation"
  • code/branches/levelKaan/data/levels/presentationFS11.oxw

    r9348 r9807  
     1<!---->
     2
    13<LevelInfo
    24 name = "Presentation FS11"
  • code/branches/levelKaan/data/levels/underAttack.oxw

    r9348 r9807  
     1<!---->
     2
    13<LevelInfo
    24 name = "Under Attack"
Note: See TracChangeset for help on using the changeset viewer.