Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 15, 2015, 12:05:48 AM (9 years ago)
Author:
paulsc
Message:

Started work on spaceshipShuttle.oxt, furthered quests.

Location:
code/branches/campaignHS15/data/levels
Files:
1 added
1 edited

Legend:

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

    r10802 r10804  
    1414    include("templates/spaceshipPirate.oxt")
    1515    include("templates/spaceshipEscort.oxt")
    16     include("templates/spaceshipTransporter.oxt")
     16    include("templates/spaceshipShuttle.oxt")
    1717    include("templates/FPS.oxt")
     18    include("templates/pickupRepresentationTemplates.oxt")
    1819?>
    1920
     
    289290    </EventDispatcher>
    290291
    291     <DistanceTrigger active=false name="reachedC" position="<?lua printC(cC) ?>" distance=1000 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true>
     292    <DistanceTrigger active=false name="reachedC" position="<?lua printC(cC) ?>" distance=400 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true>
    292293        <events>
    293294            <activity>
     
    679680    <!-- (Temporary) Template for stations. Used to define common features of all Stations. -->
    680681    <Template name="station">
    681         <Pawn mass=10000 collisionType=dynamic friction=0.01>
     682        <Pawn mass=10000000 collisionType=dynamic friction=0.01>
    682683            <attached>
    683684                <Model mesh="HydroHarvester.mesh" position="0,0,0" scale=50 />
     
    706707
    707708    <!-- A, Coordinates are approx. (cos(29pi/16), sin(29pi/16), 0)*3000 -->
    708     <Pawn name="statA" team=0 radarname="Station A" position="<?lua printC(cA) ?>" direction="<?lua printC(dStation) ?>" initialhealth=10000 maxhealth=10000>
     709    <Pawn name="statA" team=0 radarname="Station A" position="<?lua printC(cA) ?>" direction="<?lua printC(dStation) ?>" yaw=-50 initialhealth=10000 maxhealth=10000>
    709710        <templates>
    710711            <Template link="station" />
     
    733734
    734735    <!-- B, Coordinates are approx. (-cos(29pi/16), sin(29pi/16), 0)*3000 -->
    735     <Pawn name="statB" team=0 radarname="Station B" position="<?lua printC(cB) ?>" direction="<?lua printC(dStation) ?>" initialhealth=10000 maxhealth=10000>
     736    <Pawn name="statB" team=0 radarname="Station B" position="<?lua printC(cB) ?>" direction="<?lua printC(dStation) ?>" yaw=210 initialhealth=10000 maxhealth=10000>
    736737        <templates>
    737738            <Template link="station" />
     
    739740        <attached>
    740741            <DockingTarget name="dockTargetB" />
    741             <Dock position="0,0,0" active=true>
     742            <Dock position="0,0,0" active=false>
    742743                <animations>
    743744                    <MoveToDockingTarget target="dockTargetB" />
     
    766767        <attached>
    767768            <DockingTarget name="dockTargetC" />
    768             <Dock position="0,0,0" active=true>
     769            <Dock position="0,0,0">
    769770                <animations>
    770771                    <MoveToDockingTarget target="dockTargetC" />
     
    777778                        <EventListener event="dockC" />
    778779                    </execute>
    779                     <active>
    780                         <EventListener event="reachedC" />
    781                     </active>
    782780                </events>
    783781                <attached>
     
    791789                                <EventListener event="undockC" />
    792790                            </execute>
    793                             <active>
    794                                 <EventListener event="reachedC" />
    795                             </active>
    796791                        </events>
    797792                    </Dock>
    798                     <DistanceTrigger position="0,0,0" distance="200" target="SpaceShip" beaconMode="exclude" targetname="NPC" name="dockC" />
     793                    <DistanceTrigger active=false position="0,0,0" distance="200" target="SpaceShip" beaconMode="exclude" targetname="NPC" name="dockC">
     794                        <events>
     795                            <activity>
     796                                <EventListener event="reachedC" />
     797                            </activity>
     798                        </events>
     799                    </DistanceTrigger>
    799800                    <Billboard position="0,0,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />
    800801                </attached>
     
    811812            health              = "400"
    812813            initialhealth       = "400"
    813             maxhealth           = "500"
     814            maxhealth           = "1500"
    814815            shieldhealth        = "80"
    815816            initialshieldhealth = "80"
     
    924925
    925926    <!-- Box with Pickups. TODO: Pickups! -->
    926     <Pawn team=0 name="gotPickups" health=30 position="<?lua print((cC[1]+600) .. ',' .. cC[2] .. ',' .. (cC[3]-600)) ?>" direction="0,-1,0" collisionType=dynamic mass=1000 radarname="Supplies" >
     927    <SpaceShip team=0 name="gotPickups" health=30 position="<?lua print((cC[1]+600) .. ',' .. cC[2] .. ',' .. (cC[3]-600)) ?>" direction="0,-1,0" collisionType=dynamic mass=1000 radarname="Supplies" >
    927928        <events>
    928929            <visibility>
     
    934935        </events>
    935936        <attached>
    936             <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
     937            <Model position="0,0,0" mesh="crate.mesh" scale3D="10,10,10" />
    937938        </attached>
    938939        <collisionShapes>
    939             <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     940            <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
    940941        </collisionShapes>
    941     </Pawn>
    942 
    943     <!-- TODO: these pickups do not work somehow?? their templates are not recognized...
    944 
    945     <PickupSpawner pickup=hugehealthpickup position="<?lua print((cC[1]+600) .. ',' .. cC[2] .. ',' .. (cC[3]-600)) ?>" triggerDistance="10" maxSpawnedItems="1" visible="true">
     942    </SpaceShip>
     943
     944    <?lua
     945        include("includes/pickups.oxi")
     946    ?>
     947
     948    <PickupSpawner pickup=hugeshieldpickup position="<?lua print((cC[1]+585) .. ',' .. cC[2] .. ',' .. (cC[3]-585)) ?>" triggerDistance="15" maxSpawnedItems="1">
    946949        <events>
    947950            <visibility>
    948                 <EventListener event="gotPickups" />
     951                <EventListener event="readyAfterWave2" />
    949952            </visibility>
     953            <activity>
     954                <EventListener event="readyAfterWave2" />
     955            </activity>
    950956        </events>
    951957    </PickupSpawner>
    952958
    953     <PickupSpawner pickup=mediumspeedpickup position="<?lua print((cC[1]+600) .. ',' .. cC[2] .. ',' .. (cC[3]-600)) ?>" triggerDistance="10" maxSpawnedItems="1"  visible="true">
     959    <PickupSpawner pickup=crazyhealthpickup position="<?lua print((cC[1]+615) .. ',' .. cC[2] .. ',' .. (cC[3]-615)) ?>" triggerDistance="15" maxSpawnedItems="1">
    954960        <events>
    955961            <visibility>
    956                 <EventListener event="gotPickups" />
     962                <EventListener event="readyAfterWave2" />
    957963            </visibility>
     964            <activity>
     965                <EventListener event="readyAfterWave2" />
     966            </activity>
    958967        </events>
    959968    </PickupSpawner>
    960969
    961     -->
     970    <PickupSpawner pickup=hugespeedpickup position="<?lua print((cC[1]+585) .. ',' .. cC[2] .. ',' .. (cC[3]-615)) ?>" triggerDistance="15" maxSpawnedItems="1" >
     971        <events>
     972            <visibility>
     973                <EventListener event="readyAfterWave2" />
     974            </visibility>
     975            <activity>
     976                <EventListener event="readyAfterWave2" />
     977            </activity>
     978        </events>
     979    </PickupSpawner>
    962980
    963981    <!-- Allies -->
     
    10381056    <SpaceShip position="<?lua printC(cA) ?>" lookat="<?lua printC(cB) ?>" team=0 name="transporter" radarname="Shuttle">
    10391057        <templates>
    1040             <Template link="spaceshipTransporter" />
     1058            <Template link="spaceshipShuttle" />
    10411059        </templates>
    10421060        <attached>
Note: See TracChangeset for help on using the changeset viewer.