Changeset 4582
- Timestamp:
- Jan 28, 2007, 4:19:46 PM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/sp_cutscene_intro.oxw
r4577 r4582 38 38 <name>bomberOne</name> 39 39 <model>models/spaceships/human_spaceship_bomber.obj,1.2</model> 40 <abs-coor>-4 80, 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>-4 80,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> 46 46 <addPoint>1000,5,-70</addPoint> 47 47 </Track> … … 51 51 <name>fighterOne</name> 52 52 <model>models/spaceships/human_spaceship_fighter.obj,0.5</model> 53 <abs-coor>-4 30, 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>-4 30,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> 59 59 <addPoint>1000,5,-70</addPoint> 60 60 </Track> … … 64 64 <name>bomberTwo</name> 65 65 <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> 76 75 77 76 <NPC> 78 77 <name>fighterTwo</name> 79 78 <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> 87 100 </Track> 88 101 </NPC> … … 101 114 <texture>textures/planets/pluto.png</texture> 102 115 <size>25</size> 103 <abs-coor> 100, 0 , -2 25</abs-coor>116 <abs-coor> 100, 0 , -200</abs-coor> 104 117 <abs-dir>3.1412, 0,1,0</abs-dir> 105 118 </Planet> … … 149 162 <Camera> 150 163 <name> CameraOne </name> 151 <abs-coor>125,0,-245</abs-coor>152 164 <Track> 153 165 <mode>1</mode> -
data/trunk/scripts/cutscene/cutscene.lua
r4575 r4582 5 5 trigger:setActiveOnCreation(true) 6 6 7 8 -- Cameraswitchzero 9 triggerZero = ScriptTrigger() 10 triggerZero:setScript("cutscene.lua") 11 triggerZero:setFunction("switchCamToBomber") 12 triggerZero:setAbsCoor(37 , 0 , -200) 13 triggerZero:setTarget("CameraOne") 14 triggerZero:setRadius(10) 15 triggerZero:setDebugDraw(true) 16 17 7 18 -- Cameraswitchone 8 19 triggerOne = ScriptTrigger() 9 20 triggerOne:setScript("cutscene.lua") 10 21 triggerOne:setFunction("switchCamTargetToEarth") 11 triggerOne:setAbsCoor(0 , 0 , 0)22 triggerOne:setAbsCoor(0 , 0 , -65) 12 23 triggerOne:setTarget("CameraOne") 13 24 triggerOne:setRadius(10) … … 84 95 end 85 96 97 function switchCamToBomber(timestep) 98 cameraManager:changeCurrTarget( "NPC", "fighterTwo") 99 return true 100 end 101 102 86 103 87 104 -- THE tick function … … 105 122 if not cameraSwitched then 106 123 cameraManager:setCam("CameraOne") 107 --cameraManager:atachCurrCameraToWorldEntity("NPC", "bomberOne") 124 cameraManager:jumpCurrCam(125,0,-245) 125 --cameraManager:atachCurrCameraToWorldEntity("NPC", "pirateOne") 108 126 cameraManager:changeCurrTarget("Building", "zhara") 109 127 cameraSwitched = true
Note: See TracChangeset
for help on using the changeset viewer.