Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9748


Ignore:
Timestamp:
Nov 4, 2013, 4:16:32 PM (10 years ago)
Author:
skaan
Message:

Level angepasst

File:
1 edited

Legend:

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

    r9721 r9748  
    5050   <?lua
    5151      include("includes/pickups.oxi")
    52   ?>
    53 
    54  
    55 <?lua
     52   ?>
     53
     54   <?lua
    5655    dofile("includes/CuboidSpaceStation.lua")
    57 ?>
    58 
    59 
    60 <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"/> 
    61 
    62 <SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
    63 
    64 
    65 
     56   ?>
     57
     58
     59   <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"/>       
     60
     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 />
    6692
    6793<!----------------------------------------------------------------------------------------------------->
     
    74100   
    75101<!-- @Objects: HYDROGEN FARMER & DOCKING -->
    76     <SpaceShip
     102   <SpaceShip
    77103        team      = 0
    78         position  = "-4000,4000,4000"
     104        position  = "-4000,4100,4000"
    79105        roll      = 90   yaw=0  pitch=20
    80106        mass      = 10000
    81107        health    = 100000 initialhealth=100000 maxhealth="100000"
    82108        name      = "HydroFarmer"
    83         radarname = "Main-Station" >
     109        radarname = "Hydrogen Farmer" >
    84110      <attached>
    85111        <!-- Docking -->
    86         <DistanceTriggerBeacon name="bcnDestroyer" />
    87         <DockingTarget name="destroyer" />
     112         <DistanceTriggerBeacon name="bcnDestroyer" />
     113         <DockingTarget name="destroyer" />
    88114
    89115        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
     
    152178        template            = "spaceshipcollateraldamage"
    153179        team                = "0"
    154         position            = "-4000,4700,4000"
     180        position            = "-4000,4800,4000"
    155181        orientation         = "-0.14, 0.68, 0.68, 0.223"
    156182        health              = "400"
     
    171197
    172198
    173 <!--<MovableEntity position="-500,500, 500">
     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>
     214
     215<MovableEntity position="-500,500, 500">
    174216    <attached>
    175217        <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=0.5/>
    176218    </attached>
    177 </MovableEntity>-->
    178 
     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>
    179252
    180253  <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=4/>
     
    196269    </SimpleNotification>
    197270
    198  <DistanceTrigger name="flying3" position="-4000,4000, 4000" target="Pawn" distance=3500 stayActive="true" delay=3/>
     271 <DistanceTrigger name="flying3" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=3/>
    199272    <SimpleNotification message="Our Commander got kidnapped in District 69">
    200273        <events>
     
    205278    </SimpleNotification>
    206279
    207  <DistanceTrigger name="flying4" position="-4000,4000, 4000" target="Pawn" distance=3500 stayActive="true" delay=7/>
     280 <DistanceTrigger name="flying4" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=7/>
    208281    <SimpleNotification message="We need you to rescue him.">
    209282        <events>
     
    214287    </SimpleNotification>
    215288
    216 <DistanceTrigger name="flying5" position="-4000,4000,4000" target="Pawn" distance=3500 stayActive="true" delay=11/>
     289<DistanceTrigger name="flying5" position="-500,500,500" target="Pawn" distance=100 stayActive="true" delay=11/>
    217290    <SimpleNotification message="Dock on the station to get a better ship.">
    218291        <events>
     
    231304<!-- OBJECTS IN THIS PART -->
    232305
    233 <Template name=PortalDefault>
    234         <PortalEndPoint>
    235             <attached>
    236                 <Model mesh="Spacegate.mesh" yaw="90"/>
    237             </attached>
    238         </PortalEndPoint>
    239     </Template>
    240 
    241     <PortalEndPoint position="0,2000,0" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
    242     <PortalEndPoint position="0,97100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
    243     <PortalLink fromID="1" toID="2" />
    244     <!--<PortalLink fromID="2" toID="1" />-->
    245 
    246 <SpaceBoundaries warnDistance="1" maxDistance="500" showDistance="300" healthDecrease="0.1" position="0,97100,0"/>
     306   <Template name=PortalDefault>
     307      <PortalEndPoint>
     308         <attached>
     309            <Model mesh="Spacegate.mesh" yaw="90"/>
     310         </attached>
     311      </PortalEndPoint>
     312   </Template>
     313
     314   <PortalEndPoint position="-4000,2500,4000" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
     315   <PortalEndPoint position="0,95000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
     316   <PortalLink fromID="1" toID="2" />
     317   <!--<PortalLink fromID="2" toID="1" />-->
     318
     319  <!-- <SpaceBoundaries warnDistance="1" maxDistance="500" showDistance="300" healthDecrease="0.1" position="0,97100,0"/> -->
    247320
    248321<?lua
    249       for i = 1, 500, 1
     322      for i = 1, 700, 1
    250323      do
    251324      j = math.random()
    252     ?>
    253 
    254     <MovableEntity
     325   ?>
     326
     327   <MovableEntity       
    255328      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"
    256331      collisionType = dynamic
     332      collisiondamage = 0.05
     333      enablecollisiondamage = true
     334   >
     335     <!--
    257336      linearDamping = 0.8
    258337      angularDamping = 0
    259       scale = "<?lua print(j * 150)?>"
    260       collisiondamage = 0.005
    261       enablecollisiondamage = true
    262      
    263     >
     338       -->
     339
     340      <events>
     341         <activity>
     342            <EventListener event="start" />
     343         </activity>
     344      </events>
    264345      <attached>
    265         <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    266       </attached>
    267       <collisionShapes>
    268         <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
    269       </collisionShapes>
    270     </MovableEntity>
    271 
    272     <?lua
     346         <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     347         <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
     348      </attached>
     349         <collisionShapes>
     350            <SphereCollisionShape radius="<?lua print(j * 50) ?>" />
     351         </collisionShapes>   -->
     352   </MovableEntity>
     353
     354   <?lua
    273355      end
    274     ?>
    275 
    276 <SpaceShip position="0,97300,200" lookat="0,-1,0" name="movingtarget" radarname="Pirate">
     356   ?>
     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">
    277363       <templates>
    278364                  <Template link=spaceshippirate />
    279365                    </templates>
    280  </SpaceShip>
     366 </SpaceShip> -->
    281367
    282368<DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
     
    289375    </SimpleNotification>
    290376
    291 <DistanceTrigger name="portal3" position="0,100000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
     377<DistanceTrigger name="portal3" position="0,95000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
    292378    <SimpleNotification message="You came to District 69">
    293379        <events>
Note: See TracChangeset for help on using the changeset viewer.