Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2013, 4:14:57 PM (11 years ago)
Author:
lumperte
Message:

Boxproblem hinzugekommen,
Missionsablauf fast vollstaendig fertig

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelElias/data/levels/EscapeTheBastards.oxw

    r9712 r9747  
    1818
    1919<?lua
     20  include("templates/pickupRepresentationTemplates.oxt")
    2021  include("templates/spaceshipAssff.oxt")
    2122  include("templates/spaceshipPirate.oxt")
    2223  include("templates/spaceshipEscort.oxt")
    23   include("templates/spaceshipSpacecruiser.oxt")
     24  include("templates/spaceshipCollateralDamage.oxt")
    2425?>
    2526
     
    5152  >
    5253
     54    <?lua
     55      include("includes/pickups.oxi")
     56    ?>
     57
    5358    <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"/>
    5459
     
    5762    <!-- SpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff / -->
    5863
    59 <!-- New Ship -->
    60 
    61 
    62 <!-- New Ship END -->
     64<!-- Pickups -->
     65
     66    <PickupSpawner pickup=dronepickup position="-5000,300,-209" triggerDistance="10" respawnTime="30" maxSpawnedItems="10" />
     67    <PickupSpawner pickup=hugespeedpickup position="-800,0,0" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" />
     68
     69<!--
     70    <PickupSpawner pickup=crazyhealthpickup position="2200,1000,-600" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" active=false>
     71                       <events>
     72                         <activity>
     73                              <EventListener event="reachedally" />
     74                         </activity>
     75                       </events>
     76        </PickupSpawner>
     77    <PickupSpawner pickup=hugespeedpickup position="2200,1000,-600" triggerDistance="10" respawnTime="10" maxSpawnedItems="99" active=false>
     78                       <events>
     79                         <activity>
     80                              <EventListener event="reachedally" />
     81                         </activity>
     82                       </events>
     83        </PickupSpawner>
     84-->
     85
     86<!-- Pickups heal the box, so one cant destroy the box -->
     87
     88<!-- Pickups END -->
    6389                                                        <!--Basic Infos end-->
    6490
     
    7096        <events>
    7197            <trigger>
    72                 <TeamSpawnPoint team=0 position="-1000,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipspacecruiser>
     98                <TeamSpawnPoint team=0 position="-8050,0,0" direction="1,0.3,0.2" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage>>
    7399                  <EventTrigger invert=true>
    74100                    <events>
     
    96122        <QuestEffectBeacon times=1>
    97123            <effects>
    98                 <CompleteQuest questId="Helpisontheway" />
     124                <CompleteQuest questId="Helpisontheway.1" />
    99125            </effects>
    100126            <events>
     
    105131        </QuestEffectBeacon>
    106132
    107         <QuestEffectBeacon times=1>
     133
     134        <QuestEffectBeacon times=1 >
    108135            <effects>
    109136                <CompleteQuest questId="defend.2" />
     
    111138            <events>
    112139                <execute>
    113                     <EventListener event="target3" />
     140                    <EventListener event="Boxdestroyed" />
    114141                </execute>
    115142            </events>
    116143        </QuestEffectBeacon>
    117144
    118 
    119 
    120         <DistanceTrigger name="missionfinish" position="-2580,300,-209" target="Pawn" distance=60 stayActive="true" delay=1>
    121         <DistanceTrigger name="reachedally" position="-2580,300,-209" target="Pawn" distance=60 stayActive="true" delay=6>
     145        <QuestEffectBeacon times=1 >
     146            <effects>
     147                <CompleteQuest questId="leave.3" />
     148            </effects>
     149            <events>
     150                <execute>
     151                    <EventListener event="reachedhomeplanet" />
     152                </execute>
     153            </events>
     154        </QuestEffectBeacon>
     155
     156
     157
     158        <DistanceTrigger name="missionfinish" position="-120,0,0" target="Pawn" distance=60 stayActive="true" delay=1>
    122159    </DistanceTrigger>
     160        <DistanceTrigger name="reachedally" position="-120,0,0" target="Pawn" distance=60 stayActive="true" delay=2>
    123161    </DistanceTrigger>
    124 
    125 
    126 
    127 
    128 <BlinkingBillboard position="-2580,300,-209" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     162        <DistanceTrigger name="reachedhomeplanet" position="8000,7500,-1990" target="Pawn" distance=60 stayActive="true" delay=2>
     163    </DistanceTrigger>
     164
     165
     166
     167          <EventTrigger name="boxtrigger" activations="1" stayactive="true" delay=0.1>
     168            <events>
     169              <trigger>
     170                <EventListener event="box" />
     171              </trigger>
     172            </events>
     173          </EventTrigger>
     174
     175
     176<!-- Billboard Allyplanet -->
     177
     178<BlinkingBillboard position="-120,0,0" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
    129179          <events>
    130180            <visibility>
     
    132182                <events>
    133183                  <trigger>
    134                     <EventListener event=missionfinish />
     184                    <EventListener event="missionfinish" />
    135185                  </trigger>
    136186                </events>
     
    140190</BlinkingBillboard>
    141191
    142 <Billboard position="-2580,300,-209" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     192<Billboard position="-120,0,0" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
    143193          <events>
    144194            <visibility>
     
    146196                <events>
    147197                  <trigger>
    148                     <EventListener event=missionfinish />
     198                    <EventListener event="missionfinish" />
    149199                  </trigger>
    150200                </events>
     
    153203          </events>
    154204</Billboard>
     205
     206<!-- Billboard Allyplanet END-->
     207
     208
     209<!-- Box with Pickups -->
     210    <Pawn team=1 health=30 position="2200,1000,-600" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Something" >
     211        <events>
     212          <visibility>
     213            <EventListener event="target3" />
     214          </visibility>
     215        </events>
     216        <attached>
     217            <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" />
     218        </attached>
     219        <collisionShapes>
     220            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     221        </collisionShapes>
     222    </Pawn>
     223
     224<Billboard position="2200,1000,-600" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     225          <events>
     226            <visibility>
     227              <EventTrigger>
     228                <events>
     229                  <trigger>
     230                    <EventListener event="boxtrigger" />
     231                  </trigger>
     232                </events>
     233              </EventTrigger>
     234            </visibility>
     235          </events>
     236</Billboard>
     237<!-- Box with Pickups END -->
     238
     239<!-- Billboard Homeplanet -->
     240
     241<BlinkingBillboard position="8000,7500,-1990" frequency=0.4 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
     242          <events>
     243            <visibility>
     244              <EventTrigger invert=true>
     245                <events>
     246                  <trigger>
     247                    <EventListener event="reachedhomeplanet" />
     248                  </trigger>
     249                </events>
     250              </EventTrigger>
     251            </visibility>
     252          </events>
     253</BlinkingBillboard>
     254
     255<Billboard position="8000,7500,-1990" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     256          <events>
     257            <visibility>
     258              <EventTrigger>
     259                <events>
     260                  <trigger>
     261                    <EventListener event="reachedhomeplanet" />
     262                  </trigger>
     263                </events>
     264              </EventTrigger>
     265            </visibility>
     266          </events>
     267</Billboard>
     268
     269<!-- Billboard Homeplanet END-->
     270
     271
    155272<!--Quests (Fly to the Ally) END-->
    156273
     
    158275
    159276
    160  <SpaceShip position="-6000,800,-709" lookat="0,0,1" name="attacker" radarname="Fighter1">
     277 <SpaceShip position="1000,0,0" lookat="0,0,1" name="attacker" radarname="Fighter1" visible="true">
    161278                            <events>
    162279                                <visibility>
    163                                     <EventListener event="reachedally" />
     280                                    <EventListener event="missionfinish" />
     281                                </visibility>
     282                            </events>
     283
     284                    <templates>
     285                      <Template link=spaceshippirate />
     286                    </templates>
     287                    <controller>
     288                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
     289                         <waypoints>
     290                        <Model mesh="cube.mesh" scale=10 position="1000,0,0"/>
     291                        <Model mesh="cube.mesh" scale=10 position="500,500,0"/>
     292                        <Model mesh="cube.mesh" scale=10 position="0,1000,0"/>
     293                        <Model mesh="cube.mesh" scale=10 position="-500,500,0"/>
     294                        <Model mesh="cube.mesh" scale=10 position="-1000,0,0"/>
     295                        <Model mesh="cube.mesh" scale=10 position="-500,-500,0"/>
     296                        <Model mesh="cube.mesh" scale=10 position="0,-1000,0"/>
     297                        <Model mesh="cube.mesh" scale=10 position="500,-500,0"/>
     298                       </waypoints>
     299                       <events>
     300                         <activity>
     301                              <EventListener event="reachedally" />
     302                         </activity>
     303                       </events>
     304                    </WaypointPatrolController>
     305                  </controller>
     306                </SpaceShip>
     307
     308 <SpaceShip position="0,1000,0" lookat="1,0,0" name="attacker" radarname="Fighter2" visible="true">
     309                            <events>
     310                                <visibility>
     311                                    <EventListener event="missionfinish" />
    164312                                </visibility>
    165313                            </events>
    166314                    <templates>
    167                       <Template link=spaceshipassff />
     315                      <Template link=spaceshippirate />
    168316                    </templates>
    169317                    <controller>
    170                       <WaypointPatrolController alertnessradius=1000  team=1>
     318                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
    171319                         <waypoints>
    172                         <Model mesh="cube.mesh" scale=10 position="-3700,800,-709"/>
    173                         <Model mesh="cube.mesh" scale=10 position="-3700,800,309"/>
    174                         <Model mesh="cube.mesh" scale=10 position="-3700,-200,309"/>
    175                         <Model mesh="cube.mesh" scale=10 position="-3700,-200,-709"/>
     320                        <Model mesh="cube.mesh" scale=10 position="0,1000,0"/>
     321                        <Model mesh="cube.mesh" scale=10 position="0,500,500"/>
     322                        <Model mesh="cube.mesh" scale=10 position="0,0,1000"/>
     323                        <Model mesh="cube.mesh" scale=10 position="0,-500,500"/>
     324                        <Model mesh="cube.mesh" scale=10 position="0,-1000,0"/>
     325                        <Model mesh="cube.mesh" scale=10 position="0,-500,-500"/>
     326                        <Model mesh="cube.mesh" scale=10 position="0,0,-1000"/>
     327                        <Model mesh="cube.mesh" scale=10 position="0,500,-500"/>
    176328                       </waypoints>
     329                       <events>
     330                         <activity>
     331                              <EventListener event="reachedally" />
     332                         </activity>
     333                       </events>
    177334                    </WaypointPatrolController>
    178335                  </controller>
    179336                </SpaceShip>
    180337
    181  <SpaceShip position="-6050,300,-709" lookat="1,0,0" name="attacker" radarname="Fighter2">
     338 <SpaceShip position="0,0,1000" lookat="0,1,0" name="attacker" radarname="Fighter3" visible="true">
    182339                            <events>
    183340                                <visibility>
    184                                     <EventListener event="reachedally" />
     341                                    <EventListener event="missionfinish" />
    185342                                </visibility>
    186343                            </events>
    187344                    <templates>
    188                       <Template link=spaceshipassff />
     345                      <Template link=spaceshippirate />
    189346                    </templates>
    190347                    <controller>
    191                       <WaypointPatrolController alertnessradius=1000  team=1>
     348                      <WaypointPatrolController alertnessradius=750  team=1 active=false>
    192349                         <waypoints>
    193                         <Model mesh="cube.mesh" scale=10 position="-4200,300,-709"/>
    194                         <Model mesh="cube.mesh" scale=10 position="-3200,300,-709"/>
    195                         <Model mesh="cube.mesh" scale=10 position="-4200,300,309"/>
    196                         <Model mesh="cube.mesh" scale=10 position="-3200,300,309"/>
     350                        <Model mesh="cube.mesh" scale=10 position="1000,0,0"/>
     351                        <Model mesh="cube.mesh" scale=10 position="500,0,500"/>
     352                        <Model mesh="cube.mesh" scale=10 position="0,0,1000"/>
     353                        <Model mesh="cube.mesh" scale=10 position="-500,0,500"/>
     354                        <Model mesh="cube.mesh" scale=10 position="-1000,0,0"/>
     355                        <Model mesh="cube.mesh" scale=10 position="-500,0,-500"/>
     356                        <Model mesh="cube.mesh" scale=10 position="0,0,-1000"/>
     357                        <Model mesh="cube.mesh" scale=10 position="500,0,-500"/>
    197358                       </waypoints>
    198                     </WaypointPatrolController>
    199                   </controller>
    200                 </SpaceShip>
    201 
    202  <SpaceShip position="-6100,-200,-209" lookat="0,1,0" name="attacker" radarname="Fighter3">
    203                             <events>
    204                                 <visibility>
    205                                     <EventListener event="reachedally" />
    206                                 </visibility>
    207                             </events>
    208                     <templates>
    209                       <Template link=spaceshipassff />
    210                     </templates>
    211                     <controller>
    212                       <WaypointPatrolController alertnessradius=1000  team=1>
    213                          <waypoints>
    214                         <Model mesh="cube.mesh" scale=10 position="-4200,-200,-209"/>
    215                         <Model mesh="cube.mesh" scale=10 position="-4200,800,-209"/>
    216                         <Model mesh="cube.mesh" scale=10 position="-3200,800,-209"/>
    217                         <Model mesh="cube.mesh" scale=10 position="-3200,-200,-209"/>
    218                        </waypoints>
     359                       <events>
     360                         <activity>
     361                              <EventListener event="reachedally" />
     362                         </activity>
     363                       </events>
    219364                    </WaypointPatrolController>
    220365                  </controller>
     
    254399    </SimpleNotification>
    255400
    256     <SimpleNotification message="No Mercy!!!"  broadcast="true">
     401    <SimpleNotification message="Booom, you got him!"  broadcast="true">
    257402        <events>
    258403            <trigger>
     
    262407    </SimpleNotification>
    263408
    264     <SimpleNotification message="Booom, you got them all."  broadcast="true">
     409
     410    <SimpleNotification message="No Mercy!! .. What's that?"  broadcast="true">
    265411        <events>
    266412            <trigger>
     
    269415        </events>
    270416    </SimpleNotification>
     417
     418
    271419
    272420
     
    294442
    295443    <LocalQuest id="defend.2">
    296         <QuestDescription title="Defend the Planet" description="You've picked up you're mate. He's wounded and you have to reach your base as fast as you can. Defend this place,      and try to get him home.
     444        <QuestDescription title="Defend the Planet" description="You've picked up you're mate. He's wounded and you have to reach your base as fast as you can. Defend this place,      and try to get him home. Perhaps you can find something usefull around here.
    297445
    298446        Try to stay on the planet. It's easier to fight!"
    299         failmessage="" completeMessage="" />
     447        failmessage="Well, you sucked" completeMessage="Well done, You're a hero" />
    300448        <complete-effects>
    301449            <AddQuest questId="leave.3" />
     
    306454
    307455    <LocalQuest id="leave.3">
    308         <QuestDescription title="Leave the Place" description="You've blown their minds. Let's go home." failmessage="" completeMessage="" />
     456        <QuestDescription title="Leave the Place" description="You've blown their minds. Let's go home. Follow the Big blue planet to reach your home." failmessage="" completeMessage="" />
    309457        <complete-effects>
    310458            <AddQuest questId="wayhome.4" />
     
    312460    </LocalQuest>
    313461
     462    <LocalQuest id="wayhome.4">
     463        <QuestDescription title="Let's go home" description="You've reached your planet. The radar is broke. You have to find the Base, cause you arent able to see from the air" failmessage="" completeMessage="" />
     464        <complete-effects>
     465            <AddQuest questId="end.5" />
     466        </complete-effects>
     467    </LocalQuest>
     468
    314469<!-- LocalQuests END -->
    315470
    316471<!-- Message Triggers -->
    317     <DistanceTrigger name="StartofMission" position="-1000,0,0" target="Pawn" distance=10 stayActive="true" delay=2/>
     472    <DistanceTrigger name="StartofMission" position="-8050,0,0" target="Pawn" distance=10 stayActive="true" delay=2/>
    318473    <SimpleNotification message="Hi, I'm the Commander.">
    319474        <events>
     
    324479    </SimpleNotification>
    325480
    326     <DistanceTrigger name="Introduction1" position="-1000,0,0" target="Pawn" distance=30 stayActive="true" delay=6.4/>
     481    <DistanceTrigger name="Introduction1" position="-8050,0,0" target="Pawn" distance=30 stayActive="true" delay=6.4/>
    327482    <SimpleNotification message="An allied pilot had to make a forced landing">
    328483        <events>
     
    333488    </SimpleNotification>
    334489
    335     <DistanceTrigger name="Introduction2" position="-1000,0,0" target="Pawn" distance=30 stayActive="true" delay=10.8/>
     490    <DistanceTrigger name="Introduction2" position="-8050,0,0" target="Pawn" distance=30 stayActive="true" delay=10.8/>
    336491    <SimpleNotification message="He needs your help. Get him out of there">
    337492        <events>
     
    359514        </events>
    360515    </SimpleNotification>
     516
     517
     518    <SimpleNotification message="Pickups! Pick them up ;-)"  broadcast="true">
     519        <events>
     520            <trigger>
     521                <EventListener event="boxtrigger" />
     522            </trigger>
     523        </events>
     524    </SimpleNotification>
     525
     526    <DistanceTrigger name="Boxdestroyed" position="2200,1000,-600" target="SpaceShip" distance=30 stayActive="true" delay=0.1 />
     527    <SimpleNotification message="Now aim the blue planet">
     528        <events>
     529            <trigger>
     530                <EventListener event="Boxdestroyed" />
     531            </trigger>
     532        </events>
     533    </SimpleNotification>
     534
     535    <DistanceTrigger name="Boxdestroyed2" position="2200,1000,-600" target="SpaceShip" distance=30 stayActive="true" delay=4.4 />
     536    <SimpleNotification message="Land near the blinking light!">
     537        <events>
     538            <trigger>
     539                <EventListener event="Boxdestroyed2" />
     540            </trigger>
     541        </events>
     542    </SimpleNotification>
     543
     544    <SimpleNotification message="You're almost there">
     545        <events>
     546            <trigger>
     547                <EventListener event="reachedhomeplanet" />
     548            </trigger>
     549        </events>
     550    </SimpleNotification>
     551
     552
    361553<!-- Message Triggers END -->
    362554
     
    369561                                                        <!--Asteroids Field-->
    370562
    371         <?lua for i=0,500,1 do
    372                 x=math.random(-2500,2500)
    373                 y=math.random(-2500,2500)
     563        <?lua for i=0,750,1 do
     564                x=math.random(-8000,-1000)
     565                y=math.random(-2345,2345)
    374566                z=math.random(-2500,2500)
    375567        scale=math.random(20,70)
     
    391583
    392584        <?lua for i=0,300,1 do
    393                 x=math.random(-8000,8000)
     585                x=math.random(-12000,4000)
    394586                y=math.random(-8000,8000)
    395587                z=math.random(-8000,8000)
     
    448640
    449641                                                        <!--Planet-->
    450     <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
     642    <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="planets/sol.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
    451643    <StaticEntity position="2600,0,0" collisionType=static>
    452644        <collisionShapes>
     
    454646        </collisionShapes>
    455647    </StaticEntity>
    456                                                         <!--Planet end-->
     648                                                        <!--Planet END-->
    457649
    458650                                                        <!--Planet with Ally-->
    459651    <Planet
    460       position="-2700,300,-209"
     652      position="0,0,0"
    461653      scale="100"
    462654      collisionType="dynamic"
     
    479671      </collisionShapes>
    480672    </Planet>
    481                                                         <!--Planet with Ally-->
    482 
     673                                                        <!-- Planet with Ally END-->
     674
     675
     676                                                        <!-- Homeplanet -->
     677    <Planet
     678      position="8000,7500,-5000"
     679      scale="3000"
     680      collisionType="dynamic"
     681      linearDamping="0.8"
     682      angularDamping="0"
     683      mass="5000000000000"
     684      pitch="0"
     685      mesh="iceplanet.mesh"
     686      atmosphere="atmosphere1"
     687      rotationaxis="0,0,0"
     688      rotationrate="0.0"
     689      atmospheresize="80.0f"
     690      imagesize="1024.0f"
     691    >
     692      <attached>
     693        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-900" />
     694      </attached>
     695      <collisionShapes>
     696        <SphereCollisionShape radius="3000" position="0,0,0" />
     697      </collisionShapes>
     698    </Planet>
    483699
    484700
Note: See TracChangeset for help on using the changeset viewer.