Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9987


Ignore:
Timestamp:
Jan 5, 2014, 11:59:15 PM (11 years ago)
Author:
jo
Message:

Improving the portal handling, such that the way to go after passing the portal is more clear.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/iJohnVane_TriptoArea51.oxw

    r9986 r9987  
    6868   <!--TeamSpawnPoint team=0 position="0,94000,0" lookat="0,118000,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage/-->
    6969
    70    <Script code="Mission setLives 1" onLoad="true"/>
     70   <Script code="Mission setLives 1" onLoad="true" times="1" />
    7171
    7272   <DistanceTrigger name="spawntrigger" position="0,0,0" distance=10 target="SpaceShip" stayActive="true" delay=0.1/>
     
    354354   </Template>
    355355
    356    <PortalEndPoint position="5000,5800,4500" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
    357    <PortalEndPoint position="0,94000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0" lookat="0,118000,0" />
     356   <PortalEndPoint position="5000,6400,5000" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0" lookat="5000,5800,5000"/>
     357   <PortalEndPoint position="0,94000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0" />
    358358   <PortalLink fromID="1" toID="2" />
    359359   <!--<PortalLink fromID="2" toID="1" />-->
     
    377377      enablecollisiondamage = true
    378378      active = true
    379    >           
    380           <events>           
    381             <activity>           
    382               <EventListener event="start" />           
    383             </activity>           
    384           </events>           
     379   >                 
    385380          <attached>           
    386               <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />                     
     381              <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" >
     382                  <events>           
     383                    <visibility>           
     384                      <EventListener event="portal3" />           
     385                    </visibility>           
     386                  </events>
     387              </Model>                         
    387388          </attached>
    388389         <collisionShapes>
     
    414415      enablecollisiondamage = true
    415416      active = true
    416    >           
    417           <events>           
    418             <activity>           
    419               <EventListener event="start" />           
    420             </activity>           
    421           </events>           
     417      visible = false
     418   >                     
    422419          <attached>           
    423               <Model mass="2000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />                     
     420              <Model mass="2000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" >
     421                  <events>           
     422                    <visibility>           
     423                      <EventListener event="portal3" />           
     424                    </visibility>           
     425                  </events>
     426              </Model>                   
    424427          </attached>
    425428         <collisionShapes>
     
    491494         <DistanceTrigger name="endOfLevel" position="0,0,0" target="SpaceShip" beaconMode="exclude"
    492495                          targetname="bcnDestroyer" distance=50 stayActive="true" delay=0/>
    493         <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
     496        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 visible=false >
     497          <events>           
     498            <visibility>           
     499              <EventListener event="portal3" />           
     500            </visibility>           
     501          </events>
     502        </Model>
    494503      </attached>
    495504  </StaticEntity>
     
    515524    </OverlayGroup>
    516525
    517 
    518   <DistanceTrigger name="HACKgameOver" position="0,94000,0" target="SpaceShip" distance=100000 stayActive="true" >
     526  <DistanceTrigger name="HACKgameOver" position="0,94000,0" distance=100000 target="SpaceShip" stayActive="true" delay=2.0>
     527    <EventTrigger name="gameOver" activations="1" stayactive="true" delay=0.1>
     528      <events>
     529        <trigger>
     530          <EventListener event="portal4" />
     531        </trigger>
     532      </events>
     533    </EventTrigger>
     534  </DistanceTrigger>
     535
     536
     537
     538
     539
     540
     541  <!--DistanceTrigger name="HACKgameOver" position="0,94000,0" target="SpaceShip" distance=100000 stayActive="true" >
    519542    <EventTrigger name="gameOver" stayActive="true" delay=10 >
    520543      <events>
     
    524547      </events>
    525548    </EventTrigger>
    526   </DistanceTrigger>
    527 
    528    <Script code="Mission endMission false" onLoad="false">
     549  </DistanceTrigger-->
     550    <SimpleNotification message="GAMEOVER !">
     551        <events>
     552            <trigger>
     553                <EventListener event="HACKgameOver" />
     554            </trigger>
     555        </events>
     556    </SimpleNotification>
     557    <SimpleNotification message="GAMEOVER simple">
     558        <events>
     559            <trigger>
     560                <EventListener event="gameOver" />
     561            </trigger>
     562        </events>
     563    </SimpleNotification>
     564
     565   <Script code="Mission endMission false" onLoad="false" times="1" >
    529566        <events>
    530567            <trigger>
     
    562599
    563600   <DistanceTrigger name="portal6" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=13/>
    564    <SimpleNotification message="John: I see the wormhole station on the radar">
     601   <SimpleNotification message="Houston: Make sure to reach the wormhole in time!">
    565602      <events>
    566603         <trigger>
     
    571608
    572609
    573    <DistanceTrigger name="portal7" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=17/>
     610   <!--DistanceTrigger name="portal7" position="0,94000,0" target="SpaceShip" distance=50 stayActive="true" delay=17/>
    574611   <SimpleNotification message="Houston: Is it black?">
    575612      <events>
     
    626663    </SimpleNotification-->
    627664
    628    <Script code="Mission endMission true" onLoad="false">
     665   <Script code="Mission endMission true" onLoad="false" times="1" >
    629666        <events>
    630667            <trigger>
Note: See TracChangeset for help on using the changeset viewer.