Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 26, 2015, 5:49:01 PM (9 years ago)
Author:
paulsc
Message:

Started work on docking. Needs work tho.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/data/levels/Campaign1.oxw

    r10705 r10710  
    1919    include("templates/spaceshipSwallow.oxt")
    2020    include("templates/spaceshipTransporter.oxt")
     21    include("templates/FPS.oxt")
    2122?>
    2223
     
    5253    >
    5354
    54     <SpawnPoint name="playerSpawn" team=1 position="0,-50,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
     55    <SpawnPoint name="playerSpawn" team=1 position="6000,-4000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
    5556
    5657    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" />
     
    327328          <attached>
    328329            <Model mesh="HydroHarvester.mesh" position="0,0,0" scale=50 />
     330            <DistanceTriggerBeacon name="NPC" />
    329331          </attached>
    330332          <collisionShapes>
     
    349351    </Template>
    350352
     353    <Dock position="5000,-3000,0" active=true >
     354        <animations>
     355            <MoveToDockingTarget target="dockA" />
     356        </animations>
     357        <effects>
     358            <DockToShip target="newSpaceShip" />
     359        </effects>
     360        <events>
     361            <execute>
     362                <EventListener event="dockMe" />
     363            </execute>
     364        </events>
     365        <attached>
     366            <DistanceTrigger position="0,0,0" distance="200" target="SpaceShip" beaconMode="exclude" targetname="NPC" name="dockMe" />
     367            <Billboard position="0,0,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />
     368        </attached>
     369    </Dock>
     370
     371    <SpaceShip
     372        template            = "spaceshipassff2"
     373        team                = "0"
     374        position            = "7500,-5500,0"
     375        orientation         = "-0.14, 0.68, 0.68, 0.223"
     376        health              = "400"
     377        initialhealth       = "400"
     378        maxhealth           = "500"
     379        shieldhealth        = "80"
     380        initialshieldhealth = "80"
     381        maxshieldhealth     = "120"
     382        shieldabsorption    = "0.8"
     383        reloadrate          = "1"
     384        reloadwaittime      = "1"
     385        name                = "cruiser"
     386        radarname           = "Spacecruiser" >
     387      <attached>
     388        <DockingTarget name="newSpaceShip" />
     389      </attached>
     390    </SpaceShip>
     391
     392    <!-- FPS Player as destination of the dock -->
     393    <FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-19900,0" >
     394        <attached>
     395            <DockingTarget name="newSpaceShip" />
     396            <DistanceTriggerBeacon name="NPC" />
     397        </attached>
     398    </FpsPlayer>
     399
    351400    <!-- A, Coordinates are approx. (cos(29pi/16), sin(29pi/16), 0)*3000 -->
    352     <Pawn name="statA" radarname="Station A" position="5000,-3000,0" direction="0,1,0" initialhealth=1000 maxhealth=1000>
     401    <Pawn name="statA" radarname="Station A" position="5000,-3000,0" direction="0,1,0" initialhealth=10000 maxhealth=10000>
     402        <templates>
     403            <Template link="station" />
     404        </templates>
     405        <attached>
     406            <DockingTarget name="dockA" />
     407        </attached>
     408    </Pawn>
     409
     410    <!-- B, Coordinates are approx. (-cos(29pi/16), sin(29pi/16), 0)*3000 -->
     411    <Pawn name="statB" radarname="Station B" position="-5000,-3000,0" direction="0,1,0" initialhealth=10000 maxhealth=10000>
    353412        <templates>
    354413            <Template link="station" />
     
    356415    </Pawn>
    357416
    358     <!-- B, Coordinates are approx. (-cos(29pi/16), sin(29pi/16), 0)*3000 -->
    359     <Pawn name="statB" radarname="Station B" position="-5000,-3000,0" direction="0,1,0" initialhealth=1000 maxhealth=1000>
    360         <templates>
    361             <Template link="station" />
    362         </templates>
    363     </Pawn>
    364 
    365417    <!-- C -->
    366     <Pawn name="statC" radarname="Station C" position="0,-2500,0" direction="0,1,0" initialhealth=1000 maxhealth=1000>
     418    <Pawn name="statC" radarname="Station C" position="0,-2500,0" direction="0,1,0" initialhealth=10000 maxhealth=10000>
    367419        <templates>
    368420            <Template link="station" />
     
    426478    <?lua end ?>
    427479
    428     <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 -->
     480    <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 --
    429481    <SpaceShip position="5000,-3000,0" lookat="-2494, -1667, 0" team=1 name="transporter" radarname="Shuttle">
    430482        <templates>
     
    437489            <WaypointController accuracy=10>
    438490                <waypoints>
    439                     <!-- A to B -->
     491                    !-- A to B --
    440492                    <?lua
    441493                    max = 5
     
    448500                    <?lua end ?>
    449501
    450                     <!-- Return Point -->
     502                    !-- Return Point --
    451503                    <Billboard position="-5000, -3000, 0" amplitude=1 material="Flares/lensflare" colour="1,1,0.05"/>
    452504
    453                     <!-- B to A -->
     505                    !-- B to A --
    454506                    <?lua
    455507                    max = 5
     
    462514                    <?lua end ?>
    463515
    464                     <!-- Start Point -->
     516                    !-- Start Point --
    465517                    <Billboard position="5000,-3000,0" amplitude=1 material="Flares/lensflare" colour="1,1,0.05"/>
    466518                </waypoints>
    467519            </WaypointController>
    468520        </controller>
    469     </SpaceShip>
     521    </SpaceShip/> -->
    470522
    471523    </Scene>
Note: See TracChangeset for help on using the changeset viewer.