Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2013, 4:05:10 PM (11 years ago)
Author:
agermann
Message:

Docking funktioniert nun mit einem eingebauten Trigger ueber undocking XMLPort. Jedoch immer noch mit cmdUndock(). Forcefield wurde um eine homogenes Kraftfeld erweitert, dass Kugelfoermig und mit einer bestimmten Richtung gemacht werden kann.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spacestationentry/data/levels/dockingToASpaceStation.oxw

    r9820 r9857  
    7171    </StaticEntity>
    7272
    73    <!-- Docking (Andocken) -->
     73<!-- Docking -->
    7474    <Dock position="2830,20,50" roll=0 yaw=0 >
    7575        <animations>
     
    8383                <EventListener event="dockMe" />
    8484            </execute>
     85
     86            <undocking>
     87                <EventListener event="undockMe" />
     88            </undocking>
    8589       
    8690            <activity>
     
    9397                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
    9498            />
     99
     100            <Billboard position="-2730,-19970,50" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
     101            <DistanceTrigger position="-2730,-19970,50" distance="50" target="Pawn"
     102                beaconMode="identify" targetname="bcnDestroyer" name="undockMe"
     103            />
    95104        </attached>
    96105
    97106    </Dock>
    98 
    99 
    100        
    101 
    102107   
    103     <!--SpaceShip
    104         template            = "spaceshipcollateraldamage"
    105         team                = "0"
    106         position            = "2890,-40,6"
    107         orientation         = "-0.14, 0.68, 0.68, 0.223"
    108         lookat              = "0,0,0"
    109         roll                = "180"
    110         name                = "collateralDamage"
    111         radarname           = "Collateral Damage" >
    112       <attached>
    113         <DockingTarget name="spaceShip" />
    114         <DistanceTriggerBeacon name="bcnDestroyer" />
    115         <DockingTarget name="destroyer" />
    116       </attached>
    117     </SpaceShip-->
    118    
    119 <FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-1900,0" >
     108<FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-19900,0" >
    120109      <attached>
    121110        <DockingTarget name="spaceShip" />
     
    127116<!-- Wuerfel -->
    128117
    129   <StaticEntity position="0,-2000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
     118  <StaticEntity position="0,-20000,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
    130119      <attached>
    131         <Model position="0,0,0" mesh="crate.mesh" scale3D="66,15,5" />
    132        
     120        <Model position="0,0,0" mesh="crate.mesh" scale3D="80,80,5" />
    133121      </attached>
    134122      <collisionShapes>
    135         <BoxCollisionShape position="0,0,0" halfExtents="330,330,10" />
     123        <BoxCollisionShape position="0,0,0" halfExtents="400,400,25" />
    136124      </collisionShapes>
    137125  </StaticEntity>
     
    139127<!-- Schwerkraftfeld -->
    140128
    141 <ForceField position="2500,-92000,2500" mode="sphere" diameter="184000" velocity="-5000" />
    142 <ForceField position="2500,-92000,-2500" mode="sphere" diameter="184000" velocity="-5000" />
    143 <ForceField position="-2500,-92000,2500" mode="sphere" diameter="184000" velocity="-5000" />
    144 <ForceField position="-2500,-92000,-2500" mode="sphere" diameter="184000" velocity="-5000" />
    145 
    146 <!-- Ausgang - Trigger -->
    147 
    148 <Billboard position="150,-1950,150" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
    149 
    150 <DistanceTrigger name="ausgang" position="100,-1950,100"  target="Pawn" distance=50 stayActive="false" delay=0 />
    151     <Script code="undock" onLoad="false">
    152         <events>
    153             <trigger>
    154                 <EventListener event=ausgang />
    155             </trigger>
    156         </events>
    157     </Script>
    158 
     129<ForceField position="0,-20000,0" mode="homogen" diameter="2000" forcedirection = "0,-400,0" />
    159130
    160131<!-- Rest -->
Note: See TracChangeset for help on using the changeset viewer.