Changeset 4563
- Timestamp:
- Jan 27, 2007, 9:27:39 PM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/sp_cutscene_intro.oxw
r4561 r4563 14 14 <WorldEntities> 15 15 16 17 16 <SkyBox> 18 17 <name>Sky</name> … … 23 22 <NPC> 24 23 <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> 28 27 </NPC> 29 28 30 29 <Planet> 31 30 <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> 34 33 <texture>textures/planets/mars.png</texture> 35 34 </Planet> … … 38 37 <name>Moon</name> 39 38 <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> 42 41 <abs-dir>3.1412, 0,1,0</abs-dir> 43 42 </Planet> … … 45 44 <Building> 46 45 <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> 49 49 </Building> 50 50 … … 86 86 <Camera> 87 87 <name> CameraOne </name> 88 <abs-coor> 500,0,0</abs-coor>88 <abs-coor>0,0,-200</abs-coor> 89 89 <Track> 90 90 <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> 100 99 </Track> 101 100 </Camera> … … 114 113 <Light> 115 114 <diffuse-color>1,1,1</diffuse-color> 116 <abs-coor> 0, 0, -2000</abs-coor>115 <abs-coor>2000, 0, 0</abs-coor> 117 116 </Light> 118 117 </Lights> -
data/trunk/scripts/cutscene/cutscene.lua
r4561 r4563 9 9 triggerOne:setScript("cutscene.lua") 10 10 triggerOne:setFunction("switchCamTargetToEarth") 11 triggerOne:setAbsCoor( 250, 0 ,0)11 triggerOne:setAbsCoor(0 , 0 , -50) 12 12 triggerOne:setTarget("CameraOne") 13 triggerOne:setRadius(1 )13 triggerOne:setRadius(10) 14 14 triggerOne:setDebugDraw(true) 15 15 … … 19 19 triggerTwo:setScript("cutscene.lua") 20 20 triggerTwo:setFunction("switchCamToSpaceship") 21 triggerTwo:setAbsCoor( 250, 0 , 0)22 triggerTwo:setTarget(" shutleOne")23 triggerTwo:setRadius( 1)21 triggerTwo:setAbsCoor(0, 0 , 125) 22 triggerTwo:setTarget("CameraOne") 23 triggerTwo:setRadius(5) 24 24 triggerTwo:setDebugDraw(true) 25 25 … … 28 28 triggerThree:setScript("cutscene.lua") 29 29 triggerThree:setFunction("switchCamToStation") 30 triggerThree:setAbsCoor( 250, 0 , 0)31 triggerThree:setTarget("Camera Two")32 triggerThree:setRadius( 1)30 triggerThree:setAbsCoor(-125, 0 , 175) 31 triggerThree:setTarget("CameraOne") 32 triggerThree:setRadius(5) 33 33 triggerThree:setDebugDraw(true) 34 34 … … 40 40 -- Global Variables 41 41 time = 0 42 43 44 -- shutleOne 45 shutle = { } 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 42 59 43 60 … … 55 72 function switchCamToStation(timestep) 56 73 cameraManager:atachCurrCameraToWorldEntity("Building", "zhara") 74 75 --cameraManager:detachCurrCamera() 57 76 return true 58 77 end … … 63 82 function tick(timestep) 64 83 time = time + timestep 84 85 shutle:tick(timestep) 86 87 if not cameraSwitched then 65 88 cameraManager:setCam("CameraOne") 66 --cameraManager:atachCurrCameraToWorldEntity( 67 89 --cameraManager:atachCurrCameraToWorldEntity("NPC", "shutleOne") 90 cameraManager:changeCurrTarget("Planet", "Moon") 68 91 cameraSwitched = true 92 end 69 93 70 94 if time > 4 then 71 95 --cameraManager:togglFade() 72 return true96 --return true 73 97 end 74 98
Note: See TracChangeset
for help on using the changeset viewer.