Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4655 for data/trunk


Ignore:
Timestamp:
Jan 30, 2007, 4:06:27 PM (18 years ago)
Author:
snellen
Message:

cutscene finished

Location:
data/trunk
Files:
3 edited

Legend:

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

    r4651 r4655  
    9191        <NPC>
    9292          <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>
    9494          <abs-dir> 0,0,1,0 </abs-dir>
    9595          <Track>
     
    111111          <abs-dir> 0,0,1,0 </abs-dir>
    112112          <Track>
    113             <mode>0</mode>
     113            <mode>1</mode>
    114114            <speed>11.8</speed>
    115115             <addPoint>80,0,-120</addPoint>
     
    126126          <abs-dir> 0,0,1,0 </abs-dir>
    127127          <Track>
    128             <mode>0</mode>
     128            <mode>1</mode>
    129129            <speed>11.2</speed>
    130130             <addPoint>80,3,-100</addPoint>
     
    133133             <addPoint>65,8,-300</addPoint>
    134134          </Track>
    135           <weapon-config>0</weapon-config>
     135
    136136        </NPC>
    137137
     
    151151
    152152         </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
    153171
    154172        <Planet>
  • data/trunk/scripts/cutscene/cutscene.lua

    r4606 r4655  
    4444--triggerThree:setDebugDraw(true) 
    4545
    46  
     46
     47-- startScenery
     48triggerFour = ScriptTrigger()
     49triggerFour:setScript("cutscene.lua")
     50triggerFour:setFunction("startSceneryOne")
     51triggerFour:setAbsCoor(125,0,-245)
     52triggerFour:setTarget("CameraOne")
     53triggerFour:setRadius(5)
     54triggerFour:setDebugDraw(true) 
     55
     56
    4757-- Get objects from orxonox
    4858thisscript:addObject("CameraMan", "cameraManager")
     59thisscript:addObject("NPC", "shutleOne")
     60thisscript:addObject("NPC", "bomberOne")
     61thisscript:addObject("NPC", "fighterOne")
     62thisscript:addObject("NPC", "bomberTwo")
     63thisscript:addObject("NPC", "fighterTwo")
     64thisscript:addObject("NPC", "pirateOne")
     65thisscript:addObject("NPC", "pirateTwo")
    4966thisscript:addObject("NPC", "fighterThree")
     67thisscript:addObject("NPC", "bomberThree")
     68thisscript:addObject("NPC", "bomberFour")
    5069thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld")
    5170thisscript:addObjectAsName("ScrollingScreen", "Credits Scroller","scrollingScreen")
     
    5473-- Global Variables
    5574time = 0
    56 stationReached = false
    5775fadeout = false
    5876bInit = 0
    5977bInit2 = 0
    60 
     78sceneryOneStopped = false
     79sceneryOneRunning = false
     80stationReached = false
    6181
    6282-- Switch cam functions
     
    85105
    86106
     107-- Start
     108function 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
     120shutleOne:pause(false)
     121bomberOne:pause(false)
     122fighterOne:pause(false)
     123bomberTwo:pause(false)
     124fighterTwo:pause(false)
     125pirateOne:pause(false)
     126pirateTwo:pause(false)
     127fighterThree:pause(false)
     128bomberThree:pause(false)
     129bomberFour:pause(false)
     130
     131sceneryOneRunning = true
     132time = 0
     133
     134return true
     135
     136end
     137
     138-- Stop
     139function 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
     151shutleOne:pause(true)
     152bomberOne:pause(true)
     153fighterOne:pause(true)
     154bomberTwo:pause(true)
     155fighterTwo:pause(true)
     156pirateOne:pause(true)
     157pirateTwo:pause(true)
     158fighterThree:pause(true)
     159bomberThree:pause(true)
     160bomberFour:pause(false)
     161
     162return true
     163
     164end
     165
    87166
    88167-- THE tick function
     
    91170time = time + timestep
    92171
     172if not sceneryOneStopped then
     173sceneryOneStopped = stopSceneryOne(timestep)
     174end
    93175
    94176if bInit == 0 then
     
    105187
    106188
    107 if time > 3 and time < 4 then
     189if time > 8 and time < 8.5 and sceneryOneRunning then
    108190   fighterThree:fire()
    109191end
     
    112194cameraManager:setCam("CameraOne")
    113195cameraManager:jumpCurrCam(125,0,-245)
    114 --cameraManager:atachCurrCameraToWorldEntity("NPC", "pirateOne")
    115 cameraManager:changeCurrTarget("Building", "zhara")
     196cameraManager:atachCurrCameraToWorldEntity("NPC", "transporterOne")
     197--cameraManager:changeCurrTarget("Building", "zhara")
    116198cameraSwitched = true
    117199end
  • data/trunk/scripts/spacestation/spaceship_tower.lua

    r4653 r4655  
    1212triggerOne:setAbsCoor(1177.693, -12.796, 203.514)
    1313triggerOne:setRadius(50)
    14 triggerOne:setDebugDraw(true)
     14--triggerOne:setDebugDraw(true)
    1515
    1616
Note: See TracChangeset for help on using the changeset viewer.