Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4582


Ignore:
Timestamp:
Jan 28, 2007, 4:19:46 PM (18 years ago)
Author:
snellen
Message:

cutscene continued

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4577 r4582  
    3838          <name>bomberOne</name>
    3939          <model>models/spaceships/human_spaceship_bomber.obj,1.2</model>
    40           <abs-coor>-480, 5, -70 </abs-coor>
    41           <abs-dir> 0,0,1,0 </abs-dir>
    42           <Track>
    43             <mode>1</mode>
    44             <speed>0.5</speed>
    45              <addPoint>-480,5,-70</addPoint>
     40          <abs-coor>-460, 5, -70 </abs-coor>
     41          <abs-dir> 0,0,1,0 </abs-dir>
     42          <Track>
     43            <mode>1</mode>
     44            <speed>0.3</speed>
     45             <addPoint>-460,5,-70</addPoint>
    4646             <addPoint>1000,5,-70</addPoint>
    4747          </Track>
     
    5151          <name>fighterOne</name>
    5252          <model>models/spaceships/human_spaceship_fighter.obj,0.5</model>
    53           <abs-coor>-430, 5, -70 </abs-coor>
    54           <abs-dir> 0,0,1,0 </abs-dir>
    55           <Track>
    56             <mode>1</mode>
    57             <speed>0.5</speed>
    58              <addPoint>-430,5,-70</addPoint>
     53          <abs-coor>-410, 5, -70 </abs-coor>
     54          <abs-dir> 0,0,1,0 </abs-dir>
     55          <Track>
     56            <mode>1</mode>
     57            <speed>0.3</speed>
     58             <addPoint>-410,5,-70</addPoint>
    5959             <addPoint>1000,5,-70</addPoint>
    6060          </Track>
     
    6464          <name>bomberTwo</name>
    6565          <model>models/spaceships/human_spaceship_bomber.obj,1,2</model>
    66           <abs-coor>-490, -10, -60 </abs-coor>
    67           <abs-dir> 0,0,1,0 </abs-dir>
    68           <Track>
    69             <mode>1</mode>
    70             <speed>0.5</speed>
    71              <addPoint>-490,-10,-60</addPoint>
    72              <addPoint>1000,-10,-60</addPoint>
    73           </Track>
    74         </NPC>
    75        
     66          <abs-coor>-490, -5, -60 </abs-coor>
     67          <abs-dir> 0,0,1,0 </abs-dir>
     68          <Track>
     69            <mode>1</mode>
     70            <speed>0.3</speed>
     71             <addPoint>-490,-5,-60</addPoint>
     72             <addPoint>1000,-5,-60</addPoint>
     73          </Track>
     74        </NPC>
    7675
    7776        <NPC>
    7877          <name>fighterTwo</name>
    7978          <model>models/spaceships/human_spaceship_fighter.obj,0.5</model>
    80           <abs-coor>-430, -10, -60 </abs-coor>
    81           <abs-dir> 0,0,1,0 </abs-dir>
    82           <Track>
    83             <mode>1</mode>
    84             <speed>0.5</speed>
    85              <addPoint>-430,-10,-60</addPoint>
    86              <addPoint>1000,-10,-60</addPoint>
     79          <abs-coor>-430, -5, -60 </abs-coor>
     80          <abs-dir> 0,0,1,0 </abs-dir>
     81          <Track>
     82            <mode>1</mode>
     83            <speed>0.3</speed>
     84             <addPoint>-430,-5,-60</addPoint>
     85             <addPoint>1000,-5,-60</addPoint>
     86          </Track>
     87        </NPC>
     88
     89        <NPC>
     90          <name>pirateOne</name>
     91          <model>models/spaceships/pirates_spaceship_fighter.obj,0.5</model>
     92          <abs-coor>0, 0, -400 </abs-coor>
     93          <abs-dir> 0,0,1,0 </abs-dir>
     94          <Track>
     95            <mode>1</mode>
     96            <speed>0.1</speed>
     97             <addPoint>0,0,-400</addPoint>
     98             <addPoint>0,0,100</addPoint>
     99             <addPoint>0,0,500</addPoint>
    87100          </Track>
    88101        </NPC>
     
    101114         <texture>textures/planets/pluto.png</texture>
    102115         <size>25</size>
    103          <abs-coor> 100, 0 , -225</abs-coor>
     116         <abs-coor> 100, 0 , -200</abs-coor>
    104117         <abs-dir>3.1412, 0,1,0</abs-dir>
    105118        </Planet>
     
    149162    <Camera>
    150163     <name> CameraOne </name>
    151      <abs-coor>125,0,-245</abs-coor>
    152164     <Track>
    153165       <mode>1</mode>
  • data/trunk/scripts/cutscene/cutscene.lua

    r4575 r4582  
    55trigger:setActiveOnCreation(true)     
    66
     7
     8-- Cameraswitchzero
     9triggerZero = ScriptTrigger()
     10triggerZero:setScript("cutscene.lua")
     11triggerZero:setFunction("switchCamToBomber")
     12triggerZero:setAbsCoor(37 , 0 , -200)
     13triggerZero:setTarget("CameraOne")
     14triggerZero:setRadius(10)
     15triggerZero:setDebugDraw(true)
     16
     17
    718-- Cameraswitchone
    819triggerOne = ScriptTrigger()
    920triggerOne:setScript("cutscene.lua")
    1021triggerOne:setFunction("switchCamTargetToEarth")
    11 triggerOne:setAbsCoor(0 , 0 , 0)
     22triggerOne:setAbsCoor(0 , 0 , -65)
    1223triggerOne:setTarget("CameraOne")
    1324triggerOne:setRadius(10)
     
    8495end
    8596
     97function switchCamToBomber(timestep)
     98cameraManager:changeCurrTarget( "NPC", "fighterTwo")
     99return true
     100end
     101
     102
    86103
    87104-- THE tick function
     
    105122if not cameraSwitched then
    106123cameraManager:setCam("CameraOne")
    107 --cameraManager:atachCurrCameraToWorldEntity("NPC", "bomberOne")
     124cameraManager:jumpCurrCam(125,0,-245)
     125--cameraManager:atachCurrCameraToWorldEntity("NPC", "pirateOne")
    108126cameraManager:changeCurrTarget("Building", "zhara")
    109127cameraSwitched = true
Note: See TracChangeset for help on using the changeset viewer.