Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3962


Ignore:
Timestamp:
Jun 30, 2006, 2:05:39 PM (18 years ago)
Author:
snellen
Message:

scripts updated

Location:
data/branches/single_player_map
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/falldown.lua

    r3945 r3962  
    2727randTime = randTime - timestep
    2828else
    29 io.write("Falldown called \n")
     29--io.write("Falldown called \n")
    3030fallDown(timestep)
    3131end
  • data/branches/single_player_map/scripts/guard.lua

    r3951 r3962  
    44playerInLock = false
    55hangarReached = false
     6
     7height = 29
    68
    79-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     
    2729if not routeOneProgrammed then
    2830--io.write("Guard called \n")
    29 guard:walkTo(-132, 29, 238.381805)
    30 guard:walkTo(-138.41, 29, 275.25)
    31 guard:walkTo(-143.70, 29, 275.35)
    32 guard:walkTo(-149.10, 29, 226.66)
    33 guard:walkTo(-149.10, 29, 196.83)
    34 guard:walkTo(-145.82, 29, 189.74)
    35 guard:walkTo(-138.48, 29, 184.28)
    36 guard:walkTo(35.48, 29, 191.28)
    37 guard:runTo(102, 29, 203.28)
    38 guard:runTo(164, 29, 245.28)
     31guard:walkTo(-132, height, 238.381805)
     32guard:walkTo(-138.41, height, 275.25)
     33guard:walkTo(-143.70, height, 275.35)
     34guard:walkTo(-149.10, height, 226.66)
     35guard:walkTo(-149.10, height, 196.83)
     36guard:walkTo(-145.82, height, 189.74)
     37guard:walkTo(-138.48, height, 184.28)
     38guard:walkTo(35.48, height, 191.28)
     39guard:runTo(102, height, 203.28)
     40guard:runTo(164, height, 245.28)
    3941
    4042routeOneProgrammed = true
     
    5355
    5456if not exitRouteProgrammed then
    55 guard:walkTo(-132, 29, 238.381805)
    56 guard:walkTo(-138.41, 29, 275.25)
    57 guard:walkTo(-143.70, 29, 275.35)
    58 guard:walkTo(-149.10, 29, 226.66)
    59 guard:walkTo(-149.10, 29, 196.83)
    60 guard:walkTo(-145.82, 29, 189.74)
    61 guard:walkTo(-138.48, 29, 184.28)
    62 guard:walkTo(35.48, 29, 191.28)
    63 guard:runTo(102, 29, 203.28)
    64 guard:runTo(164, 29, 245.28)
     57
     58guard:walkTo( 165.360611, height, 244.436813)
     59guard:walkTo( 164.003571, height, 254.198746)
     60guard:walkTo( 162.631683, height, 264.067474)
     61guard:walkTo( 162.096558, height, 274.944366)
     62guard:walkTo( 161.519516, height, 286.673370)
     63guard:walkTo( 161.098618, height, 295.228699)
     64guard:walkTo( 160.568466, height, 306.004486)
     65guard:walkTo( 160.151169, height, 314.486572)
     66guard:walkTo( 159.416641, height, 324.925232)
     67guard:walkTo( 158.700073, height, 335.108154)
     68guard:walkTo( 157.943298, height, 345.862610)
     69guard:walkTo( 157.418381, height, 356.131256)
     70guard:walkTo( 156.908035, height, 366.115417)
     71guard:walkTo( 156.940308, height, 377.467712)
     72guard:walkTo( 156.965408, height, 386.287933)
     73guard:walkTo( 156.924698, height, 394.296417)
     74guard:walkTo( 156.816116, height, 401.564911)
     75guard:walkTo( 156.147583, height, 446.314850)
     76guard:walkTo( 155.145660, height, 515.473877)
     77guard:walkTo( 148.450058, height, 524.572571)
     78guard:walkTo( 135.599609, height, 533.407166)
     79guard:walkTo( 119.772217, height, 539.609192)
     80guard:walkTo( 108.926720, height, 537.174927)
     81guard:walkTo( 100.885788, height, 524.737793)
     82guard:walkTo( 99.870834, height, 512.540100)
     83guard:walkTo( 108.219215, height, 502.064178)
    6584
    6685exitRouteProgrammed = true
     
    7998
    8099if not hangarRouteProgrammed  then
    81 guard:walkTo(-132, 29, 238.381805)
    82 guard:walkTo(-138.41, 29, 275.25)
    83 guard:walkTo(-143.70, 29, 275.35)
    84 guard:walkTo(-149.10, 29, 226.66)
    85 guard:walkTo(-149.10, 29, 196.83)
    86 guard:walkTo(-145.82, 29, 189.74)
    87 guard:walkTo(-138.48, 29, 184.28)
    88 guard:walkTo(35.48, 29, 191.28)
    89 guard:runTo(102, 29, 203.28)
    90 guard:runTo(164, 29, 245.28)
    91 
     100guard:walkTo( 138.422943, height, 504.832733)
     101guard:walkTo( 188.685089, height, 509.034851)
     102guard:walkTo( 259.451904, height, 515.326111)
     103guard:walkTo( 351.655762, height, 519.210571)
     104guard:walkTo( 495.821381, height, 517.551392)
     105guard:walkTo( 650.267029, height, 516.826843)
     106guard:walkTo( 752.277100, height, 506.265289)
     107guard:walkTo( 780.652405, height, 397.283752)
     108guard:walkTo( 780.212830, height, 317.386017)
     109guard:walkTo( 778.699158, height, 241.875305)
     110guard:walkTo( 776.305542, height, 120.869957)
     111guard:walkTo( 774.626343, height, 26.204597)
     112guard:walkTo( 773.148804, height, -30.654911)
     113guard:walkTo( 771.164978, height, -106.990250)
     114guard:walkTo( 756.719971, height, -197.656296)
     115guard:walkTo( 730.690796, height, -269.808075)
     116guard:walkTo( 702.250854, height, -341.732147)
     117guard:walkTo( 681.786011, height, -393.487030)
     118guard:walkTo( 664.005981, height, -441.609131)
     119guard:walkTo( 655.612671, height, -523.194153)
     120guard:walkTo( 664.289978, height, -585.003540)
     121guard:walkTo( 670.221069, height, -645.366333)
     122guard:walkTo( 674.347290, height, -704.953674)
     123guard:walkTo( 677.495605, height, -750.421082)
     124guard:walkTo( 680.699280, height, -796.687073)
     125guard:walkTo( 686.407043, height, -879.117859)
     126guard:walkTo( 692.573364, height, -952.031555)
     127guard:walkTo( 701.940552, height, -1025.037964)
     128guard:walkTo( 710.218628, height, -1086.598389)
     129guard:walkTo( 719.834900, height, -1142.248779)
     130guard:walkTo( 731.087158, height, -1198.201538)
     131guard:walkTo( 745.157715, height, -1258.461182)
     132guard:walkTo( 753.189331, height, -1290.539551)
     133guard:walkTo( 763.940369, height, -1347.249268)
     134guard:walkTo( 768.509949, height, -1377.040039)
     135guard:walkTo( 770.845215, height, -1408.751953)
     136guard:walkTo( 770.785583, height, -1435.573608)
     137guard:walkTo( 765.031799, height, -1462.657593)
     138guard:walkTo( 753.982727, height, -1483.425415)
     139guard:walkTo( 735.194580, height, -1500.978394)
     140guard:walkTo( 707.312500, height, -1514.814575)
     141guard:walkTo( 672.638550, height, -1522.803589)
     142guard:walkTo( 560.158936, height, -1530.277344)
     143guard:walkTo( 500.429626, height, -1532.241577)
     144guard:walkTo( 371.231262, height, -1535.953613)
     145guard:walkTo( 204.211609, height, -1539.026611)
     146guard:walkTo( 104.032593, height, -1546.350220)
     147guard:walkTo( 45.058315, height, -1550.720337)
     148guard:walkTo( 1.504358, height, -1574.713745)
     149guard:walkTo( -20.050890, height, -1627.849854)
     150guard:walkTo( -28.036245, height, -1674.240479)
     151guard:walkTo( -29.157598, height, -1702.924316)
     152guard:walkTo( -29.760004, height, -1730.014526)
     153guard:walkTo( -29.538343, height, -1759.887329)
     154guard:walkTo( -21.584003, height, -1790.162842)
     155guard:walkTo( -8.572795, height, -1823.067871)
     156guard:walkTo( 13.254844, height, -1861.705688)
    92157hangarRouteProgrammed  = true
    93158end
  • data/branches/single_player_map/scripts/prisoner.lua

    r3954 r3962  
    1010randTime = 0
    1111
     12
     13function dist( x1,x2,x3, y1,y2,y3 )
     14
     15return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 )
     16
     17end
     18
    1219function observeGuard()
    1320guardX = guard:getAbsCoorX()
     
    2835if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then
    2936playerInLock = true
     37end
     38
    3039end
    3140
  • data/branches/single_player_map/scripts/secondguard.lua

    r3954 r3962  
    2626function observePrisoner()
    2727
    28 prisonerX = Prisoner:getAbsCoorX()
    29 prisonerY = Prisoner:getAbsCoorY()
    30 prisonerZ = Prisoner:getAbsCoorZ()
     28prisonerX = prisoner:getAbsCoorX()
     29prisonerY = prisoner:getAbsCoorY()
     30prisonerZ = prisoner:getAbsCoorZ()
    3131
    3232if dist( prisonerX,prisonerY,prisonerZ,161.76,49,358.87 ) < 60 then
     
    4040
    4141if not cellProgrammed then
    42 --io.write("Guard called \n")
    43 secondguard:walkTo(-132, 29, 238.381805)
    44 secondguard:walkTo(-138.41, 29, 275.25)
    45 secondguard:walkTo(-143.70, 29, 275.35)
    46 secondguard:walkTo(-149.10, 29, 226.66)
    47 secondguard:walkTo(-149.10, 29, 196.83)
    48 secondguard:walkTo(-145.82, 29, 189.74)
    49 secondguard:walkTo(-138.48, 29, 184.28)
    50 secondguard:walkTo(35.48, 29, 191.28)
    51 secondguard:runTo(102, 29, 203.28)
    52 secondguard:runTo(164, 29, 245.28)
     42
    5343
    5444cellProgrammed = true
  • data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw

    r3956 r3962  
    2727     <object>GenericNPC, secondguard</object>
    2828     <object>FPSPlayer, Player</object>
    29      <object>GenericNPC, Prisoner</object>
     29     <object>GenericNPC, prisoner</object>
    3030    </Script>
    3131
    3232    <Script>
    3333     <file>prisoner.lua</file>
    34      <object>GenericNPC, Prisoner</object>
     34     <object>GenericNPC, prisoner</object>
    3535     <object>FPSPlayer, Player</object>
    3636     <object>GenericNPC, guard</object>
     
    156156
    157157    <GenericNPC>
    158        <name>Prisoner</name>
     158       <name>prisoner</name>
    159159       <model>models/creatures/doom_guy.md2, 10</model>
    160160       <md2texture>doom_guy.png</md2texture>
Note: See TracChangeset for help on using the changeset viewer.