Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4563 for data/trunk


Ignore:
Timestamp:
Jan 27, 2007, 9:27:39 PM (18 years ago)
Author:
snellen
Message:
 
Location:
data/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/levels/sp_cutscene_intro.oxw

    r4561 r4563  
    1414  <WorldEntities>
    1515
    16 
    1716        <SkyBox>
    1817          <name>Sky</name>
     
    2322        <NPC>
    2423          <name>shutleOne</name>
    25           <model>models/spaceships/noxon_spaceship_fighter.obj</model>
    26           <abs-coor>0, 0, 1000</abs-coor>
    27           <abs-dir> 1.5,0,1,0 </abs-dir>
     24          <model>models/spaceships/noxon_spaceship_fighter.obj, 0.2</model>
     25          <abs-coor>110, 0, 175</abs-coor>
     26          <abs-dir> 3.14,0,1,0 </abs-dir>
    2827        </NPC>
    2928
    3029        <Planet>
    3130            <name>Earth</name>
    32             <size>140</size>
    33             <abs-coor>0, 0, -200</abs-coor>
     31            <size>200</size>
     32            <abs-coor>-75, 0, 400</abs-coor>
    3433            <texture>textures/planets/mars.png</texture>
    3534          </Planet>
     
    3837         <name>Moon</name>
    3938         <texture>textures/planets/pluto.png</texture>
    40          <size>40</size>
    41          <abs-coor> 250, 0 , 0</abs-coor>
     39         <size>35</size>
     40         <abs-coor> -500, 0 , 200</abs-coor>
    4241         <abs-dir>3.1412, 0,1,0</abs-dir>
    4342        </Planet>
     
    4544        <Building>
    4645          <name>zhara</name>
    47           <model>models/space_stations/ZHARA_Space_Station.obj</model>
    48           <abs-coor>0,0,0</abs-coor>
     46          <model>models/space_stations/ZHARA_Space_Station.obj, 2</model>
     47          <abs-coor>-150,0,150</abs-coor>
     48          <abs-dir>3.1412, 0,1,0</abs-dir>
    4949        </Building>
    5050
     
    8686    <Camera>
    8787     <name> CameraOne </name>
    88      <abs-coor>500,0,0</abs-coor>
     88     <abs-coor>0,0,-200</abs-coor>
    8989     <Track>
    9090       <mode>1</mode>
    91        <speed>1</speed>
    92        <addPoint>500,0,0</addPoint>
    93        <addPoint>450,0,0</addPoint>
    94        <addPoint>350,0,0</addPoint>
    95        <addPoint>300,0,0</addPoint>
    96        <addPoint>250,0,0</addPoint>
    97        <addPoint>200,0,0</addPoint>
    98        <addPoint>150,0,0</addPoint>
    99        
     91       <speed>0.25</speed>
     92       <addPoint>0,0,-200</addPoint>
     93       <addPoint>0,0,-150</addPoint>
     94       <addPoint>0,0,-100</addPoint>
     95       <addPoint>0,0,0</addPoint>
     96       <addPoint>0,0,75</addPoint>
     97       <addPoint>0,0,150</addPoint>
     98       <addPoint>0,0,200</addPoint>
    10099     </Track>
    101100    </Camera>
     
    114113      <Light>
    115114       <diffuse-color>1,1,1</diffuse-color>
    116        <abs-coor>0, 0, -2000</abs-coor>
     115       <abs-coor>2000, 0, 0</abs-coor>
    117116      </Light>
    118117    </Lights>
  • data/trunk/scripts/cutscene/cutscene.lua

    r4561 r4563  
    99triggerOne:setScript("cutscene.lua")
    1010triggerOne:setFunction("switchCamTargetToEarth")
    11 triggerOne:setAbsCoor(250, 0 , 0)
     11triggerOne:setAbsCoor(0 , 0 , -50)
    1212triggerOne:setTarget("CameraOne")
    13 triggerOne:setRadius(1)
     13triggerOne:setRadius(10)
    1414triggerOne:setDebugDraw(true)
    1515
     
    1919triggerTwo:setScript("cutscene.lua")
    2020triggerTwo:setFunction("switchCamToSpaceship")
    21 triggerTwo:setAbsCoor(250, 0 , 0)
    22 triggerTwo:setTarget("shutleOne")
    23 triggerTwo:setRadius(1)
     21triggerTwo:setAbsCoor(0, 0 , 125)
     22triggerTwo:setTarget("CameraOne")
     23triggerTwo:setRadius(5)
    2424triggerTwo:setDebugDraw(true) 
    2525
     
    2828triggerThree:setScript("cutscene.lua")
    2929triggerThree:setFunction("switchCamToStation")
    30 triggerThree:setAbsCoor(250, 0 , 0)
    31 triggerThree:setTarget("CameraTwo")
    32 triggerThree:setRadius(1)
     30triggerThree:setAbsCoor(-125, 0 , 175)
     31triggerThree:setTarget("CameraOne")
     32triggerThree:setRadius(5)
    3333triggerThree:setDebugDraw(true) 
    3434
     
    4040-- Global Variables
    4141time = 0
     42
     43
     44-- shutleOne
     45shutle = { }
     46--{
     47
     48 function shutle:tick(timestep)
     49 if cameraManager:getCurrCameraCoorZ() > 0 then
     50  coorX = shutleOne:getAbsCoorX()
     51  coorY = shutleOne:getAbsCoorY()
     52  coorZ = shutleOne:getAbsCoorZ()
     53  shutleOne:setAbsCoor(coorX-.06,coorY,coorZ)
     54 end
     55 end
     56
     57 --}
     58
    4259
    4360
     
    5572function switchCamToStation(timestep)
    5673cameraManager:atachCurrCameraToWorldEntity("Building", "zhara")
     74
     75--cameraManager:detachCurrCamera()
    5776return true
    5877end
     
    6382function tick(timestep)
    6483time = time + timestep
     84
     85shutle:tick(timestep)
     86
     87if not cameraSwitched then
    6588cameraManager:setCam("CameraOne")
    66 --cameraManager:atachCurrCameraToWorldEntity( "NPC", "shutleOne")
    67 
     89--cameraManager:atachCurrCameraToWorldEntity("NPC", "shutleOne")
     90cameraManager:changeCurrTarget("Planet", "Moon")
    6891cameraSwitched = true
     92end
    6993
    7094if time > 4 then
    7195--cameraManager:togglFade()
    72 return true
     96--return true
    7397end
    7498
Note: See TracChangeset for help on using the changeset viewer.