Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 22, 2015, 3:07:53 PM (9 years ago)
Author:
paulsc
Message:

Completed shuttle level (also added station names and such), added and templated prologue and epilogue levels.

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

Legend:

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

    r10812 r10823  
     1<!--TODO: Rename screenshot as soon as it is in data_extern branch -->
     2<!--TODO: Shuttle and Stations -->
    13<LevelInfo
    2     name = "CampaignHS15 1"
    3     description = "Protect the transporter!"
     4    name = "Shuttle under Attack"
     5    description = "The newly discovered hostile alien species is attacking one of our outset stations, Andromeda! There is no protecting it; you have to escort the escape shuttle to a safer location."
    46    tags = "mission"
    57    screenshot = "missionOne.png"
     
    8385
    8486    <GlobalQuest id="quest1">
    85         <QuestDescription title="Reach the Station A!" description="You need to get in contact with your base! Word is enemies are preparing to attack our people and goods! Be quick!" failMessage="" completeMessage="" />
     87        <QuestDescription title="Reach Andromeda Station!" description="You need to get in contact with your base! Word is enemies are preparing to attack our people and goods! Be quick!" failMessage="" completeMessage="" />
    8688        <hints>
    8789        </hints>
     
    113115
    114116    <GlobalQuest id="quest3">
    115         <QuestDescription title="Fight the first Wave" description="Five enemies are approaching you! There main target is the transporter though, so destroy them - before the destroy the transporter with the valuebals goods (and of course the people aboard)!" failMessage="Oh no! You have to be better, they destroyed the transporter!" completeMessage="Good Job!" />
     117        <QuestDescription title="Fight the first Wave" description="Five enemies are approaching you! There main target is the shuttle though, so destroy them - before the destroy the escape shuttle with the valuebals goods (and of course the people aboard)!" failMessage="Oh no! You have to be better, they destroyed the shuttle!" completeMessage="Good Job!" />
    116118        <hints>
    117119        </hints>
     
    129131        <subquests>
    130132            <GlobalQuest id="quest4.1">
    131                 <QuestDescription title="> Get to the Defense Station" description="Fly to Station C, we will repair your spaceship while you will fight them with the Cannons." failMessage="" completeMessage="" />
     133                <QuestDescription title="> Get to the Defense Station" description="Fly to the defense station, we will guard your spaceship while you will fight them with the Cannon Suit." failMessage="" completeMessage="" />
    132134            </GlobalQuest>
    133135            <GlobalQuest id="quest4.2">
    134                 <QuestDescription title="> Get into the Cannon Suit!" description="Dock to Station C, you will be able to contol the Cannons on top of the station, perfect for fighting off a hord of enemies!" failMessage="" completeMessage="" />
     136                <QuestDescription title="> Get into the Cannon Suit!" description="Dock to the defense station, you will be able to contol the Cannon Suit on top of the station, perfect for fighting off a hord of enemies!" failMessage="" completeMessage="" />
    135137            </GlobalQuest>
    136138        </subquests>
     
    152154
    153155    <GlobalQuest id="quest6">
    154         <QuestDescription title="Get back for the Showdown" description="Undock from Station C and get into your Spaceship!" failMessage="" completeMessage="" />
     156        <QuestDescription title="Get back for the Showdown" description="Undock from the defense station and get into your Spaceship!" failMessage="" completeMessage="" />
    155157        <hints>
    156158        </hints>
    157159        <subquests>
    158160            <GlobalQuest id="quest6.1">
    159                 <QuestDescription title="> Collect the local Pickups" description="There are pickups scattered around Spacestation C, you can collect them if you want to, but it is advised to do so. They will support your task in destroying the enemies and make your life easier." failMessage="" completeMessage="" />
     161                <QuestDescription title="> Collect the local Pickups" description="There is a box with pickups close to the station, you can collect them if you want to, but it is advised to do so. They will support your task in destroying the enemies and make your life easier." failMessage="" completeMessage="" />
    160162            </GlobalQuest>
    161163            <GlobalQuest id="quest6.2">
    162                 <QuestDescription title="> Get back to the Transporter" description="Fly to the transporter!" failMessage="" completeMessage="" />
     164                <QuestDescription title="> Get back to the Shuttle" description="Fly to the Shuttle!" failMessage="" completeMessage="" />
    163165            </GlobalQuest>
    164166        </subquests>
     
    188190    -->
    189191
     192
     193
    190194    <EventMultiTrigger name="spawntrigger">
    191195        <events>
     
    198202    <DistanceTrigger name="reachedA" position="<?lua printC(cA) ?>" distance=1000 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
    199203
    200     <!-- TODO: find out how to link an event to the COMPLETION of a dock. How is this not possible?? -->
     204    <!-- HACK: just waited out 3sec for animation. Cannot link an event to the COMPLETION of a dock. How is this not possible?? -->
    201205    <EventMultiTrigger name="dockedA" activations="1" stayactive="true" delay=3>
    202206        <events>
     
    258262    <?lua end ?>
    259263
    260     <!-- This controls the ally AI controller so it is only active when active enemies are around!
    261     TODO: Find a way to control the allies in another case (Multiple controllers are not allowed). -->
     264    <!-- This controls the ally AI controller so it is only active when active enemies are around! -->
    262265    <EventDispatcher name="allyControllerDispatcher">
    263266      <targets>
     
    298301    </DistanceTrigger>
    299302
    300     <!-- TODO: find out how to link an event to the COMPLETION of a dock. How is this not possible?? -->
    301303    <EventMultiTrigger name="dockedC" activations="1" stayactive="true" delay=3>
    302304        <events>
     
    364366    </Script>
    365367
    366     <!-- See the MissionFailed DistanceTrigger attached to the shuttle here! !-->
    367 
    368     <DistanceTrigger name="missionNotFailed" position="0,0,0" distance=100000 target="SpaceShip" beaconMode="identify" targetname="transporter" />
    369 
    370     <!--FIXME: How does this work but the below does not?? -->
    371 
    372     <SimpleNotification broadcast="true" message="TEST">
    373         <events>
    374             <trigger>
    375                 <Trigger invert=true>
    376                     <EventTrigger>
    377                         <events>
    378                             <trigger>
    379                                 <EventListener event="missionNotFailed" />
    380                             </trigger>
    381                         </events>
    382                     </EventTrigger>
    383                 </Trigger>
    384             </trigger>
    385         </events>
    386     </SimpleNotification>
     368    <EventMultiTrigger name="missionFailed" activations="1" stayactive=true>
     369        <events>
     370            <trigger>
     371                <EventListener event="transporter" />
     372            </trigger>
     373        </events>
     374    </EventMultiTrigger>
     375
     376    <EventMultiTrigger name="failMissionHelper" delay=4 stayactive=true>
     377        <events>
     378            <trigger>
     379                <EventListener event="missionFailed" />
     380            </trigger>
     381        </events>
     382    </EventMultiTrigger>
     383
     384    <DistanceTrigger active=false name="failMission" position="<?lua printC(cA) ?>" distance=100 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true>
     385        <events>
     386            <activity>
     387                <EventListener event="failMissionHelper" />
     388            </activity>
     389        </events>
     390    </DistanceTrigger>
     391
     392    <!--HACK: Ultimately settled on docking A to fail the mission... that makes a whole lot of sense. -->
    387393
    388394    <Script code="Mission endMission fail" onLoad="false">
    389395        <events>
    390396            <trigger>
    391                 <Trigger invert=true>
    392                     <EventTrigger>
    393                         <events>
    394                             <trigger>
    395                                 <EventListener event="missionNotFailed" />
    396                             </trigger>
    397                         </events>
    398                     </EventTrigger>
    399                 </Trigger>
     397                <EventListener event="failMission" />
    400398            </trigger>
    401399        </events>
     
    530528    <!--NOTIFICATIONS -->
    531529
    532     <SimpleNotification broadcast="true" message="Welcome, Commander. Please report at Station A.">
     530    <SimpleNotification broadcast="true" message="Welcome, Commander. Please report at Andromeda Station.">
    533531        <events>
    534532            <trigger>
     
    572570    </SimpleNotification>
    573571
    574     <SimpleNotification broadcast="true" message="Welcome to Station A, Commander.">
     572    <SimpleNotification broadcast="true" message="Welcome to Andromeda, Commander.">
    575573        <events>
    576574            <trigger>
     
    641639    </SimpleNotification>
    642640
    643     <SimpleNotification broadcast="true" message="But it's not over yet! Get to Station C and dock!">
     641    <SimpleNotification broadcast="true" message="But it's not over yet! Get to the defense station and dock!">
    644642        <events>
    645643            <trigger>
     
    723721    </SimpleNotification>
    724722
    725     <SimpleNotification broadcast="true" message="Get over to Station B to take a break.">
     723    <SimpleNotification broadcast="true" message="Get over to the safe base to take a break.">
    726724        <events>
    727725            <trigger>
     
    737735    </SimpleNotification>
    738736
    739     <SimpleNotification broadcast="true" message="It's over... we failed. Retreat!">
     737    <SimpleNotification broadcast="true" message="It's over... we failed. Retreat to Andromeda!">
    740738        <events>
    741739            <trigger>
     
    776774
    777775    <!-- A, Coordinates are approx. (cos(29pi/16), sin(29pi/16), 0)*3000 -->
    778     <Pawn name="statA" team=0 radarname="Station A" position="<?lua printC(cA) ?>" direction="<?lua printC(dStation) ?>" yaw=-50 initialhealth=10000 maxhealth=10000>
     776    <Pawn name="statA" team=0 radarname="Andromeda Station" position="<?lua printC(cA) ?>" direction="<?lua printC(dStation) ?>" yaw=-50 initialhealth=10000 maxhealth=10000>
    779777        <templates>
    780778            <Template link="station" />
     
    803801
    804802    <!-- B, Coordinates are approx. (-cos(29pi/16), sin(29pi/16), 0)*3000 -->
    805     <Pawn name="statB" team=0 radarname="Station B" position="<?lua printC(cB) ?>" direction="<?lua printC(dStation) ?>" yaw=210 initialhealth=10000 maxhealth=10000>
     803    <Pawn name="statB" team=0 radarname="Safe Base" position="<?lua printC(cB) ?>" direction="<?lua printC(dStation) ?>" yaw=210 initialhealth=10000 maxhealth=10000>
    806804        <templates>
    807805            <Template link="station" />
     
    830828
    831829    <!-- C -->
    832     <Pawn name="statC" team=0 radarname="Station C" position="<?lua printC(cC) ?>" direction="<?lua printC(dStation) ?>" initialhealth=10000 maxhealth=10000>
     830    <Pawn name="statC" team=0 radarname="Defense Station" position="<?lua printC(cC) ?>" direction="<?lua printC(dStation) ?>" initialhealth=10000 maxhealth=10000>
    833831        <templates>
    834832            <Template link="station" />
     
    914912            <DistanceTrigger position="320,50,320" distance="50" target="Pawn" beaconMode="identify" targetname="fpsPlayer" name="undockC" stayactive=true />
    915913            <ForceField active=false position="0,0,0" mode="homogen" diameter="600" forcedirection = "0,-500,0" />
    916             <!-- TODO: Invisible boundaries to prevent falling off platform -->
    917914        </attached>
    918915        <collisionShapes>
     
    993990    ?>
    994991
    995     <!-- Box with Pickups. TODO: Pickups! -->
    996     <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" >
     992    <Pawn team=0 health=30 position="<?lua print((cC[1]+600) .. ',' .. cC[2] .. ',' .. (cC[3]-600)) ?>" direction="0,-1,0" collisionType=dynamic mass=1000 radarname="Supplies" name="gotPickups">
    997993        <events>
    998994            <visibility>
     
    10091005            <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
    10101006        </collisionShapes>
    1011     </SpaceShip>
     1007    </Pawn>
    10121008
    10131009    <?lua
     
    11231119
    11241120    <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 -->
    1125     <SpaceShip position="<?lua printC(cA) ?>" lookat="<?lua printC(cB) ?>" team=0 name="transporter" radarname="Shuttle">
     1121    <SpaceShip position="<?lua printC(cA) ?>" lookat="<?lua printC(cB) ?>" team=0 name="transporter" radarname="Shuttle" >
    11261122        <templates>
    11271123            <Template link="spaceshipShuttle" />
     
    11301126            <DistanceTriggerBeacon name="NPC" />
    11311127            <DistanceTriggerBeacon name="transporter" />
    1132             <DistanceTrigger active=false name="reachedShuttle" position="0,0,0" distance=400 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true>
     1128            <DistanceTrigger active=false name="reachedShuttle" position="0,0,0" distance=400 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true initialhealth=1000 maxhealth=1000>
    11331129                <events>
    11341130                    <activity>
Note: See TracChangeset for help on using the changeset viewer.