Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 26, 2015, 2:04:42 PM (9 years ago)
Author:
luhug
Message:

Updated flightTest.oxw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/planetLevelHS15/data/levels/flightTest.oxw

    r10672 r10701  
    2525  </templates>
    2626  <?lua include("includes/notifications.oxi") ?>
     27<Template name=PortalDefault>
     28    <PortalEndPoint>
     29        <attached>
     30            <Model mesh="Spacegate.mesh" yaw="90"/>
     31        </attached>
     32    </PortalEndPoint>
     33</Template>
    2734
     35<Template name=PortalBig>
     36    <PortalEndPoint>
     37        <attached>
     38            <Billboard material="Portals/Big" />
     39        </attached>
     40    </PortalEndPoint>
     41</Template>
    2842  <Scene
    2943    ambientlight = "0.8, 0.8, 0.8"
     
    3246
    3347    <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"/>
    34     <SpawnPoint team=0 position="30,30,30" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
     48    <SpawnPoint team=0 position="-1000,-1000,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
    3549   
    36 
    37 
    38 <StaticEntity position="20,20,20" direction="0,0,1" collisionType=static mass=0 friction=0.01 >
    39     <attached>
    40         <Model position="0,0,0" mesh="cube.mesh" scale3D="5,5,5" />
    41     </attached>
    42 </StaticEntity>
    43 
    44     <Dock position="20,20,20" roll=0 yaw=0 >
    45         <animations>
    46             <MoveToDockingTarget target="destroyer" />
    47         </animations>
    48         <effects>
    49             <DockToShip target="spaceShip" />
    50         </effects>
    51         <events>
    52             <execute>
    53                 <EventListener event="dockMe" />
    54             </execute>
    55 
    56             <undocking>
    57                 <EventListener event="undockMe" />
    58             </undocking>
    59        
    60             <activity>
    61                 <EventListener event=notGameEnd />
    62             </activity>
    63         </events>
    64         <attached>
    65         <!-- Trigger for docking with billboard -->
    66             <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
    67             <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
    68                 beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
    69             />
    70         <!-- Trigger for undocking with billboard -->
    71             <Billboard position="-2630,-19970,150" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
    72             <DistanceTrigger position="-2630,-19970,150" distance="50" target="Pawn"
    73                 beaconMode="identify" targetname="bcnDestroyer" name="undockMe"
    74             />
    75         </attached>
    76 
    77     </Dock>
    78     <StaticEntity position="0,20000,0" direction="0,0,1" collisionType=static mass=0 fricion=0.01 >
    79     <attached>
    80         <DockingTarget name="spaceShip" />
    81                 </attached>
    82 </StaticEntity>       
    83 
    84 <Planet
    85       position="0,1000,0"
    86       scale="63000"
     50    <Planet
     51      position="0,100000,0"
     52      scale="5000"
    8753      collisionType="dynamic"
    8854      linearDamping="0.8"
     
    9763      imagesize="1024.0f"
    9864      collisiondamage = 2
    99       enablecollisiondamage = true>
     65      enablecollisiondamage = true
     66    >
     67      <attached>
     68        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
     69<PortalEndPoint id="2" distance="5000" target="Pawn" design="PortalEndPoint"/>
     70      </attached>
     71      <collisionShapes>
     72        <SphereCollisionShape radius="10" position="0,0,0" />
     73      </collisionShapes>
    10074    </Planet>
     75
     76
     77
     78
     79<PortalEndPoint position="0,0,0" id="1" distance="40" target="Pawn" design="PortalDefault"/>
     80
     81<PortalLink fromID="1" toID="2" />
     82<PortalLink fromID="2" toID="1" />   
     83
     84
    10185  </Scene>
    10286</Level>
Note: See TracChangeset for help on using the changeset viewer.