Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4570


Ignore:
Timestamp:
Jan 28, 2007, 10:45:36 AM (17 years ago)
Author:
snellen
Message:

updated cutscene

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4569 r4570  
    2222        <NPC>
    2323          <name>shutleOne</name>
    24           <model>models/spaceships/noxon_spaceship_fighter.obj, 0.2</model>
    25           <abs-coor>110, 0, 175</abs-coor>
     24          <model>models/spaceships/human_spaceship_fighter.obj,0.2</model>
     25          <abs-coor>200, 0, 175</abs-coor>
    2626          <abs-dir> 3.14,0,1,0 </abs-dir>
    2727        </NPC>
     
    2929        <Planet>
    3030            <name>Earth</name>
    31             <size>400</size>
     31            <size>325</size>
    3232            <abs-coor>-75, 0, 400</abs-coor>
    3333            <texture>textures/planets/mars.png</texture>
     
    9090     <Track>
    9191       <mode>1</mode>
    92        <speed>0.25</speed>
     92       <speed>0.1</speed>
    9393       <addPoint>0,0,-200</addPoint>
    9494       <addPoint>0,0,-150</addPoint>
  • data/trunk/scripts/cutscene/cutscene.lua

    r4569 r4570  
    1919triggerTwo:setScript("cutscene.lua")
    2020triggerTwo:setFunction("switchCamToSpaceship")
    21 triggerTwo:setAbsCoor(0, 0 , 125)
     21triggerTwo:setAbsCoor(0, 0 , 150)
    2222triggerTwo:setTarget("CameraOne")
    2323triggerTwo:setRadius(5)
     
    4242-- Global Variables
    4343time = 0
     44stationReached = false
     45fadeout = false
    4446bInit = 0
    4547bInit2 = 0
     
    7678function switchCamToStation(timestep)
    7779cameraManager:atachCurrCameraToWorldEntity("Building", "zhara")
    78 
     80stationReached = true
     81time = 0
    7982--cameraManager:detachCurrCamera()
    8083return true
     
    8790time = time + timestep
    8891
     92shutle:tick(timestep)
     93
    8994if bInit == 0 then
    9095  cameraManager:initFadeBlack()
     96  gameWorld:showText("Earth Solar System");
    9197  bInit = 1
    9298end
    9399
    94 if time > 1 and bInit2 == 0 then
     100if time > 2 and bInit2 == 0 then
    95101   cameraManager:toggleFade()
    96    gameWorld:showText("Earth Solar System");
    97102   bInit2 = 1
    98103end
    99 
    100 shutle:tick(timestep)
    101104
    102105if not cameraSwitched then
     
    107110end
    108111
    109 if time > 4 then
    110 --cameraManager:toggleFade()
    111 --return true
     112if time > 4  and stationReached and not fadeout then
     113cameraManager:toggleFade()
     114fadeout = true
     115end
     116
     117if time > 6 and stationReached then
     118gameWorld:setNextStoryName( "Space Station 1" )
     119gameWorld:stop()
     120return true
    112121end
    113122
Note: See TracChangeset for help on using the changeset viewer.