Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10802


Ignore:
Timestamp:
Nov 14, 2015, 4:31:10 PM (9 years ago)
Author:
paulsc
Message:

Furthered quests, started work on pickups for quest 6.

File:
1 edited

Legend:

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

    r10792 r10802  
    7373    >
    7474
    75     <SpawnPoint name="playerSpawn" team=0 position="<?lua printC(cSpawn) ?>" lookat="<?lua printC(cCenter) ?>" spawnclass=SpaceShip pawndesign=spaceshipescort />
     75    <SpawnPoint name="playerSpawn" team=0 position="<?lua printC(cSpawn) ?>" lookat="<?lua printC(cA) ?>" spawnclass=SpaceShip pawndesign=spaceshipescort />
    7676
    7777    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" />
     
    151151
    152152    <GlobalQuest id="quest6">
    153         <QuestDescription title="Get back to the Transporter" description="Undock from Station C and get into your Spaceship!" failMessage="" completeMessage="" />
     153        <QuestDescription title="Get back for the Showdown" description="Undock from Station C and get into your Spaceship!" failMessage="" completeMessage="" />
    154154        <hints>
    155155        </hints>
     
    314314    </EventMultiTrigger>
    315315
     316    <EventMultiTrigger name="readyAfterWave2" activations="1" delay=2 stayactive=true>
     317        <events>
     318            <trigger>
     319                <Trigger mode=and>
     320                    <EventTrigger>
     321                        <events>
     322                            <trigger>
     323                                <EventListener event="undockC" />
     324                            </trigger>
     325                        </events>
     326                    </EventTrigger>
     327                    <EventTrigger>
     328                        <events>
     329                            <trigger>
     330                                <EventListener event="waveClear2" />
     331                            </trigger>
     332                        </events>
     333                    </EventTrigger>
     334                </Trigger>
     335            </trigger>
     336        </events>
     337    </EventMultiTrigger>
     338
     339    <!-- See the DistanceTrigger attached to the shuttle here! !-->
     340
     341    <EventMultiTrigger name="wave3" activations="1" delay=12>
     342        <events>
     343            <trigger>
     344                <EventListener event="reachedShuttle" />
     345            </trigger>
     346        </events>
     347    </EventMultiTrigger>
     348
    316349    <!-- FIXME: This trigger needs fixing, as endMission can only be called by a Pawn Distance Trigger. Herpaderp.
    317350    Also, the fix proposed in MissionOne does not work anymore... -->
     
    424457    </QuestEffectBeacon>
    425458
     459    <QuestEffectBeacon times=1>
     460        <effects>
     461            <CompleteQuest questId="quest6.1" />
     462        </effects>
     463        <events>
     464            <execute>
     465                <EventListener event="gotPickups" />
     466            </execute>
     467        </events>
     468    </QuestEffectBeacon>
     469
     470    <QuestEffectBeacon times=1>
     471        <effects>
     472            <CompleteQuest questId="quest6.2" />
     473            <CompleteQuest questId="quest6" />
     474        </effects>
     475        <events>
     476            <execute>
     477                <EventListener event="reachedShuttle" />
     478            </execute>
     479        </events>
     480    </QuestEffectBeacon>
     481
    426482    <!--NOTIFICATIONS -->
    427483
     
    498554    </SimpleNotification>
    499555
    500     <SimpleNotification broadcast="true" message="Howdy Commander! Ready to kick alien ass?">
     556    <SimpleNotification broadcast="true" message="Howdy Commander! Ready to kick some alien ass?">
    501557        <events>
    502558            <trigger>
     
    557613            </trigger>
    558614        </events>
    559     </SimpleNotification>   
     615    </SimpleNotification>
    560616
    561617    <SimpleNotification broadcast="true" message="It should deal with those pesky invaders!">
     
    577633            <trigger>
    578634                <EventListener event="waveClear2" />
     635            </trigger>
     636        </events>
     637    </SimpleNotification>
     638
     639    <SimpleNotification broadcast="true" message="Here's some supplies for you. Shoot that crate!">
     640        <events>
     641            <trigger>
     642                <EventListener event="readyAfterWave2" />
     643            </trigger>
     644        </events>
     645    </SimpleNotification>
     646
     647    <SimpleNotification broadcast="true" message="Our Intelligence reports one more wave...">
     648        <events>
     649            <trigger>
     650                <EventListener event="reachedShuttle" />
     651            </trigger>
     652        </events>
     653    </SimpleNotification>
     654
     655    <SimpleNotification broadcast="true" message="Ready to be a hero, Commander?">
     656        <events>
     657            <trigger>
     658                <EventTrigger stayactive="true" delay=4 >
     659                   <events>
     660                      <trigger>
     661                         <EventListener event="reachedShuttle" />
     662                      </trigger>
     663                   </events>
     664                </EventTrigger>
    579665            </trigger>
    580666        </events>
     
    756842            <Model position="0,0,0" mesh="crate.mesh" scale3D="80,5,80" />
    757843            <Billboard position="320,50,320" material="Flares/ringflare2" colour="0.2,0.4,0.8" />
    758             <DistanceTrigger position="320,50,320" distance="50" target="Pawn" beaconMode="identify" targetname="fpsPlayer" name="undockC"/>
     844            <DistanceTrigger position="320,50,320" distance="50" target="Pawn" beaconMode="identify" targetname="fpsPlayer" name="undockC" stayactive=true />
    759845            <ForceField active=false position="0,0,0" mode="homogen" diameter="600" forcedirection = "0,-500,0" />
    760846            <!-- TODO: Invisible boundaries to prevent falling off platform -->
     
    837923    ?>
    838924
     925    <!-- 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        <events>
     928            <visibility>
     929                <EventListener event="readyAfterWave2" />
     930            </visibility>
     931            <activity>
     932                <EventListener event="readyAfterWave2" />
     933            </activity>
     934        </events>
     935        <attached>
     936            <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
     937        </attached>
     938        <collisionShapes>
     939            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     940        </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">
     946        <events>
     947            <visibility>
     948                <EventListener event="gotPickups" />
     949            </visibility>
     950        </events>
     951    </PickupSpawner>
     952
     953    <PickupSpawner pickup=mediumspeedpickup position="<?lua print((cC[1]+600) .. ',' .. cC[2] .. ',' .. (cC[3]-600)) ?>" triggerDistance="10" maxSpawnedItems="1"  visible="true">
     954        <events>
     955            <visibility>
     956                <EventListener event="gotPickups" />
     957            </visibility>
     958        </events>
     959    </PickupSpawner>
     960
     961    -->
     962
    839963    <!-- Allies -->
    840964    <?lua
     
    9071031    </SpaceShip>
    9081032    <?lua end ?>
    909     <?lua 
     1033    <?lua
    9101034    enemies = enemies + enemiesIncrease
    9111035    end ?>
     
    9181042        <attached>
    9191043            <DistanceTriggerBeacon name="NPC" />
     1044            <DistanceTrigger active=false name="reachedShuttle" position="0,0,0" distance=400 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true>
     1045                <events>
     1046                    <activity>
     1047                        <EventListener event="readyAfterWave2" />
     1048                    </activity>
     1049                </events>
     1050            </DistanceTrigger>
    9201051        </attached>
    9211052        <controller>
Note: See TracChangeset for help on using the changeset viewer.