Changeset 4570
- Timestamp:
- Jan 28, 2007, 10:45:36 AM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/sp_cutscene_intro.oxw
r4569 r4570 22 22 <NPC> 23 23 <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> 26 26 <abs-dir> 3.14,0,1,0 </abs-dir> 27 27 </NPC> … … 29 29 <Planet> 30 30 <name>Earth</name> 31 <size> 400</size>31 <size>325</size> 32 32 <abs-coor>-75, 0, 400</abs-coor> 33 33 <texture>textures/planets/mars.png</texture> … … 90 90 <Track> 91 91 <mode>1</mode> 92 <speed>0. 25</speed>92 <speed>0.1</speed> 93 93 <addPoint>0,0,-200</addPoint> 94 94 <addPoint>0,0,-150</addPoint> -
data/trunk/scripts/cutscene/cutscene.lua
r4569 r4570 19 19 triggerTwo:setScript("cutscene.lua") 20 20 triggerTwo:setFunction("switchCamToSpaceship") 21 triggerTwo:setAbsCoor(0, 0 , 1 25)21 triggerTwo:setAbsCoor(0, 0 , 150) 22 22 triggerTwo:setTarget("CameraOne") 23 23 triggerTwo:setRadius(5) … … 42 42 -- Global Variables 43 43 time = 0 44 stationReached = false 45 fadeout = false 44 46 bInit = 0 45 47 bInit2 = 0 … … 76 78 function switchCamToStation(timestep) 77 79 cameraManager:atachCurrCameraToWorldEntity("Building", "zhara") 78 80 stationReached = true 81 time = 0 79 82 --cameraManager:detachCurrCamera() 80 83 return true … … 87 90 time = time + timestep 88 91 92 shutle:tick(timestep) 93 89 94 if bInit == 0 then 90 95 cameraManager:initFadeBlack() 96 gameWorld:showText("Earth Solar System"); 91 97 bInit = 1 92 98 end 93 99 94 if time > 1and bInit2 == 0 then100 if time > 2 and bInit2 == 0 then 95 101 cameraManager:toggleFade() 96 gameWorld:showText("Earth Solar System");97 102 bInit2 = 1 98 103 end 99 100 shutle:tick(timestep)101 104 102 105 if not cameraSwitched then … … 107 110 end 108 111 109 if time > 4 then 110 --cameraManager:toggleFade() 111 --return true 112 if time > 4 and stationReached and not fadeout then 113 cameraManager:toggleFade() 114 fadeout = true 115 end 116 117 if time > 6 and stationReached then 118 gameWorld:setNextStoryName( "Space Station 1" ) 119 gameWorld:stop() 120 return true 112 121 end 113 122
Note: See TracChangeset
for help on using the changeset viewer.