Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4151 for data/branches


Ignore:
Timestamp:
Jul 5, 2006, 9:34:05 AM (18 years ago)
Author:
snellen
Message:

added attractor.lua

Location:
data/branches/presentation
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • data/branches/presentation/scripts/guard.lua

    r4106 r4151  
    99hangarReached = false
    1010guardStopped = false
     11gotoSpaceship = false
    1112
    1213height = 34
     
    3132distance = dist( guardX,guardY,guardZ,playerX, playerY, playerZ)
    3233
    33 if distance > 250 and hangarRouteProgrammed and not guardStopped then
     34if distance > 250 and hangarRouteProgrammed and not guardStopped and not gotoSpaceship then
    3435 guard:stop()
    3536 guardStopped = true
    3637end
    3738
    38 if distance < 250 and hangarRouteProgrammed and guardStopped then
     39if distance < 250 and hangarRouteProgrammed and guardStopped and not gotoSpaceship then
    3940 guard:resume()
    4041 guardStopped = false
     
    4445playerInLock = true
    4546end
     47
     48if dist( guardX,guardY,guardZ,772.325012, height, -1500.850708) < 200 then
     49gotoSpaceship = true
     50end
     51
    4652
    4753end
     
    281287
    282288
     289
    283290function tick(timestep)
    284291--io.write("Guard called \n")
    285292observePlayer()
    286293
     294
    287295if walkingRouteOne then
    288296walkingRouteOne = walkRouteOne(timestep)
  • data/branches/presentation/scripts/hangar.lua

    r4100 r4151  
    309309mechanictMove(timestep)
    310310
    311 if playerReachedTrigger and not spaceshipLaunchReady then
    312 moveToLaunchSite(timestep)
    313 end
    314 
    315 if spaceshipLaunchReady then
    316 launchSpaceShip(timestep)
    317 end
     311--if playerReachedTrigger and not spaceshipLaunchReady then
     312--moveToLaunchSite(timestep)
     313--end
     314
     315--if spaceshipLaunchReady then
     316--launchSpaceShip(timestep)
     317--end
    318318
    319319
  • data/branches/presentation/scripts/prisoner.lua

    r4100 r4151  
    1515playerInLock = false
    1616guardStopped = false
     17gotoSpaceship = false
    1718
    1819randTime = 0
     
    5455
    5556
    56 if distance > 250 and hangarRouteProgrammed and not guardStopped then
     57if distance > 250 and hangarRouteProgrammed and not guardStopped and not gotoSpaceship then
    5758 prisoner:stop()
    5859 guardStopped = true
    5960end
    6061
    61 if distance < 250 and hangarRouteProgrammed and guardStopped then
     62if distance < 250 and hangarRouteProgrammed and guardStopped and not gotoSpaceship then
    6263 prisoner:resume()
    6364 guardStopped = false
    6465end
     66
     67
     68if dist( guardX,guardY,guardZ,772.325012, height, -1500.850708) < 200 then
     69gotoSpaceship = true
     70end
     71
    6572
    6673end
  • data/branches/presentation/worlds/sp_level_ambush_at_uranus.oxw

    r4148 r4151  
    4747    <Script>
    4848     <file>spaceship_flight.lua</file>
     49    </Script>
     50   
     51    <Script>
     52     <file>attractor.lua</file>
    4953    </Script>
    5054
Note: See TracChangeset for help on using the changeset viewer.