Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

level modified

File:
1 edited

Legend:

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

    r9704 r9717  
    5858
    5959
    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"/>
     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"/> 
    6161
    6262<SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
    6363
    64 
    65 
    66 <!-- <?lua
     64<SpaceBoundaries warnDistance="1" maxDistance="1000" showDistance="300" healthDecrease="0.1" position="0,0,0"/>
     65
     66<?lua
    6767      for i = 1, 250, 1
    6868      do
     
    7171
    7272    <MovableEntity
    73       position = "<?lua print(math.random()* 6000 - 3000) ?>,<?lua print(math.random() * 10000 + 3000) ?>,<?lua print(math.random() * 6000 - 3000) ?>"
     73      position = "<?lua print(math.random()* 6000-3000) ?>,<?lua print(math.random() * 6000 -3000) ?>,<?lua print(math.random() * 6000-3000) ?>"
    7474      collisionType = dynamic
    7575      linearDamping = 0.8
    7676      angularDamping = 0
    7777      scale = "<?lua print(j * 150)?>"
    78       collisiondamage = 0.05
     78      collisiondamage = 0.005
    7979      enablecollisiondamage = true
     80      velocity          = "-5,0,0"
    8081    >
    8182      <attached>
     
    8990    <?lua
    9091      end
    91     ?>-->
     92    ?>
    9293
    9394
     
    9697<!----------------------------------------------------------------------------------------------------->
    9798
    98 <!-- OBJECTS IN THIS PART
    99 
     99<!-- OBJECTS IN THIS PART -->
     100
     101<!-- @Objects: HYDROGEN FARMER & DOCKING -->
     102   
    100103<!-- @Objects: HYDROGEN FARMER & DOCKING -->
    101104    <SpaceShip
     
    107110        name      = "HydroFarmer"
    108111        radarname = "Hydrogen Farmer" >
    109         visible = true
    110112      <attached>
    111113        <!-- Docking -->
     
    151153    </SpaceShip>
    152154
     155    <Dock position="-4000,3900,4000" roll=90 yaw=180 >
     156        <animations>
     157            <MoveToDockingTarget target="destroyer" />
     158        </animations>
     159        <effects>
     160            <DockToShip target="spaceShip" />
     161        </effects>
     162        <events>
     163            <execute>
     164                <EventListener event="dockMe" />
     165            </execute>
     166            <activity>
     167                <EventListener event=notGameEnd />
     168            </activity>
     169        </events>
     170        <attached>
     171            <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn"
     172                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
     173            />
     174        </attached>
     175
     176    </Dock>
     177
    153178<!--@Objects: SpaceCruiser as docking target -->
    154179    <SpaceShip
    155         template            = "spaceshipassff"
     180        template            = "spaceshipspacecruiser"
    156181        team                = "0"
    157         position            = "-4000,3900,4000"
     182        position            = "-4000,4700,4000"
    158183        orientation         = "-0.14, 0.68, 0.68, 0.223"
    159184        health              = "400"
     
    167192        reloadwaittime      = "1"
    168193        name                = "cruiser"
    169         radarname           = "Spaceship Assff" >
    170         visible             = true     
     194        radarname           = "Spacecruiser" >
    171195      <attached>
    172196        <DockingTarget name="spaceShip" />
    173197      </attached>
    174198    </SpaceShip>
     199
    175200
    176201<MovableEntity position="-500,500, 500">
     
    199224    </SimpleNotification>
    200225
    201  <DistanceTrigger name="flying3" position="-500,500,500" target="Pawn" distance=50 stayActive="true" delay=3/>
     226 <DistanceTrigger name="flying3" position="-500,500, 500" target="Pawn" distance=50 stayActive="true" delay=3/>
    202227    <SimpleNotification message="Our friends from District 69 are under attack">
    203228        <events>
     
    208233    </SimpleNotification>
    209234
    210  <DistanceTrigger name="flying4" position="-500,500,500" target="Pawn" distance=50 stayActive="true" delay=7/>
     235 <DistanceTrigger name="flying4" position="-500,500, 500" target="Pawn" distance=50 stayActive="true" delay=7/>
    211236    <SimpleNotification message="We need you to help them.">
    212237        <events>
     
    217242    </SimpleNotification>
    218243
    219 <DistanceTrigger name="flying5" position="-500,500,500" target="Pawn" distance=50 stayActive="true" delay=11/>
     244<DistanceTrigger name="flying5" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=11/>
    220245    <SimpleNotification message="Dock on the station to get a better ship.">
    221246        <events>
     
    225250        </events>
    226251    </SimpleNotification>
     252
     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>
    227279
    228280<!----------------------------------------------------------------------------------------------------->
     
    230282<!----------------------------------------------------------------------------------------------------->
    231283
     284<!-- OBJECTS IN THIS PART -->
     285
     286<Template name=PortalDefault>
     287        <PortalEndPoint>
     288            <attached>
     289                <Model mesh="Spacegate.mesh" yaw="90"/>
     290            </attached>
     291        </PortalEndPoint>
     292    </Template>
     293
     294    <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"/>
     296    <PortalLink fromID="1" toID="2" />
     297    <!--<PortalLink fromID="2" toID="1" />-->
     298
     299 <?lua
     300      for i = 1, 500, 1
     301      do
     302      j = math.random()
     303    ?>
     304
     305    <MovableEntity
     306      position = "<?lua print(math.random()* 10000 - 5000) ?>,<?lua print(math.random() * 15000 + 45000) ?>,<?lua print(math.random() * 10000 - 5000) ?>"
     307      collisionType = dynamic
     308      linearDamping = 0.8
     309      angularDamping = 0
     310      scale = "<?lua print(j * 200)?>"
     311      collisiondamage = 0.05
     312      enablecollisiondamage = true
     313    >
     314      <attached>
     315        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     316      </attached>
     317      <collisionShapes>
     318        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
     319      </collisionShapes>
     320    </MovableEntity>
     321
     322    <?lua
     323      end
     324    ?>
     325
     326<DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/>
     327    <SimpleNotification message="Now go to the portal">
     328        <events>
     329            <trigger>
     330                <EventListener event="portal2" />
     331            </trigger>
     332        </events>
     333    </SimpleNotification>
     334
     335<DistanceTrigger name="portal3" position="0,50000,0" target="Pawn" distance=50 stayActive="true" delay=3/>
     336    <SimpleNotification message="You came to District 69">
     337        <events>
     338            <trigger>
     339                <EventListener event="portal3" />
     340            </trigger>
     341        </events>
     342    </SimpleNotification>
    232343   
    233344  </Scene>
Note: See TracChangeset for help on using the changeset viewer.