Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

cutscene finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.