- Timestamp:
- Jan 30, 2007, 4:06:27 PM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/sp_cutscene_intro.oxw
r4651 r4655 91 91 <NPC> 92 92 <name>pirateOne</name> 93 <model>models/spaceships/pirates_spaceship_fighter.obj,0. 1</model>93 <model>models/spaceships/pirates_spaceship_fighter.obj,0.3</model> 94 94 <abs-dir> 0,0,1,0 </abs-dir> 95 95 <Track> … … 111 111 <abs-dir> 0,0,1,0 </abs-dir> 112 112 <Track> 113 <mode> 0</mode>113 <mode>1</mode> 114 114 <speed>11.8</speed> 115 115 <addPoint>80,0,-120</addPoint> … … 126 126 <abs-dir> 0,0,1,0 </abs-dir> 127 127 <Track> 128 <mode> 0</mode>128 <mode>1</mode> 129 129 <speed>11.2</speed> 130 130 <addPoint>80,3,-100</addPoint> … … 133 133 <addPoint>65,8,-300</addPoint> 134 134 </Track> 135 <weapon-config>0</weapon-config> 135 136 136 </NPC> 137 137 … … 151 151 152 152 </NPC> 153 154 155 <NPC> 156 <name>bomberFour</name> 157 <model>models/spaceships/human_spaceship_bomber.obj,1.2</model> 158 <abs-dir> 0,0,1,0 </abs-dir> 159 <Track> 160 <mode>1</mode> 161 <speed>6.4</speed> 162 <addPoint>10,385,-50</addPoint> 163 <addPoint>10,0,-10</addPoint> 164 <addPoint>10,-100,30</addPoint> 165 <addPoint>10,-200,70</addPoint> 166 </Track> 167 168 </NPC> 169 170 153 171 154 172 <Planet> -
data/trunk/scripts/cutscene/cutscene.lua
r4606 r4655 44 44 --triggerThree:setDebugDraw(true) 45 45 46 46 47 -- startScenery 48 triggerFour = ScriptTrigger() 49 triggerFour:setScript("cutscene.lua") 50 triggerFour:setFunction("startSceneryOne") 51 triggerFour:setAbsCoor(125,0,-245) 52 triggerFour:setTarget("CameraOne") 53 triggerFour:setRadius(5) 54 triggerFour:setDebugDraw(true) 55 56 47 57 -- Get objects from orxonox 48 58 thisscript:addObject("CameraMan", "cameraManager") 59 thisscript:addObject("NPC", "shutleOne") 60 thisscript:addObject("NPC", "bomberOne") 61 thisscript:addObject("NPC", "fighterOne") 62 thisscript:addObject("NPC", "bomberTwo") 63 thisscript:addObject("NPC", "fighterTwo") 64 thisscript:addObject("NPC", "pirateOne") 65 thisscript:addObject("NPC", "pirateTwo") 49 66 thisscript:addObject("NPC", "fighterThree") 67 thisscript:addObject("NPC", "bomberThree") 68 thisscript:addObject("NPC", "bomberFour") 50 69 thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld") 51 70 thisscript:addObjectAsName("ScrollingScreen", "Credits Scroller","scrollingScreen") … … 54 73 -- Global Variables 55 74 time = 0 56 stationReached = false57 75 fadeout = false 58 76 bInit = 0 59 77 bInit2 = 0 60 78 sceneryOneStopped = false 79 sceneryOneRunning = false 80 stationReached = false 61 81 62 82 -- Switch cam functions … … 85 105 86 106 107 -- Start 108 function startSceneryOne(timestep) 109 110 --shutleOne:unhide() 111 --bomberOne:unhide() 112 --fighterOne:unhide() 113 --bomberTwo:unhide() 114 --fighterTwo:unhide() 115 --pirateOne:unhide()) 116 --pirateTwo:unhide() 117 --fighterThree:unhide() 118 --bomberThree:unhide() 119 120 shutleOne:pause(false) 121 bomberOne:pause(false) 122 fighterOne:pause(false) 123 bomberTwo:pause(false) 124 fighterTwo:pause(false) 125 pirateOne:pause(false) 126 pirateTwo:pause(false) 127 fighterThree:pause(false) 128 bomberThree:pause(false) 129 bomberFour:pause(false) 130 131 sceneryOneRunning = true 132 time = 0 133 134 return true 135 136 end 137 138 -- Stop 139 function stopSceneryOne(timestep) 140 141 --shutleOne:hide() 142 --bomberOne:hide() 143 --fighterOne:hide() 144 --bomberTwo:hide() 145 --fighterTwo:hide() 146 --pirateOne:hide()) 147 --pirateTwo:hide() 148 --fighterThree:hide() 149 --bomberThree:hide() 150 151 shutleOne:pause(true) 152 bomberOne:pause(true) 153 fighterOne:pause(true) 154 bomberTwo:pause(true) 155 fighterTwo:pause(true) 156 pirateOne:pause(true) 157 pirateTwo:pause(true) 158 fighterThree:pause(true) 159 bomberThree:pause(true) 160 bomberFour:pause(false) 161 162 return true 163 164 end 165 87 166 88 167 -- THE tick function … … 91 170 time = time + timestep 92 171 172 if not sceneryOneStopped then 173 sceneryOneStopped = stopSceneryOne(timestep) 174 end 93 175 94 176 if bInit == 0 then … … 105 187 106 188 107 if time > 3 and time < 4then189 if time > 8 and time < 8.5 and sceneryOneRunning then 108 190 fighterThree:fire() 109 191 end … … 112 194 cameraManager:setCam("CameraOne") 113 195 cameraManager:jumpCurrCam(125,0,-245) 114 --cameraManager:atachCurrCameraToWorldEntity("NPC", "pirateOne")115 cameraManager:changeCurrTarget("Building", "zhara")196 cameraManager:atachCurrCameraToWorldEntity("NPC", "transporterOne") 197 --cameraManager:changeCurrTarget("Building", "zhara") 116 198 cameraSwitched = true 117 199 end -
data/trunk/scripts/spacestation/spaceship_tower.lua
r4653 r4655 12 12 triggerOne:setAbsCoor(1177.693, -12.796, 203.514) 13 13 triggerOne:setRadius(50) 14 triggerOne:setDebugDraw(true)14 --triggerOne:setDebugDraw(true) 15 15 16 16
Note: See TracChangeset
for help on using the changeset viewer.