home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_03_pipemove.cog < prev    next >
Text File  |  1998-11-04  |  12KB  |  360 lines

  1. # Droids Cog Script
  2. #
  3. # 03_watermove.cog
  4. #
  5. # Desc:                                                                 
  6. #    Companion cog to Tanks cog.  When receiving message from tanks cog, it clears them water sectors.
  7. #    For Tank 2 (the med one)
  8. #
  9. # 2/18/98  [JP]     Created
  10. #  
  11. # (C) 1998 LucasLearningLimited. All Rights Reserved
  12.  
  13.  
  14.  
  15. symbols                     
  16. message             startup
  17. message             arrived
  18. message             user1
  19. message             timer
  20.  
  21. sector              water00 
  22. sector              water01
  23. sector              water02
  24. sector              water03
  25. sector              water04
  26. sector              water05
  27. sector              water06
  28. sector              water07
  29. sector              water08
  30. sector              water09
  31. sector              water10
  32. sector              water11
  33. sector              water12
  34. sector              water13
  35. sector              water14
  36. sector              water16
  37. sector              water17
  38. sector              water18
  39. sector              water19
  40. sector              water20
  41. sector              water21
  42. sector              water22
  43. sector              water23
  44. sector              water24
  45. sector              water25
  46. sector              water26
  47. sector              water27
  48. sector              water28
  49. sector              water29
  50. sector              water30
  51. sector              water31
  52. sector              water32
  53. sector              water33
  54. sector              water34
  55. sector              water35
  56. sector              water36
  57. sector              water37
  58. sector              water38
  59. sector              water39
  60. sector              water40
  61. sector              water41
  62. sector              water42
  63. sector              water43
  64. sector              water44
  65. sector              water45
  66. sector              water46
  67. sector              water47
  68. sector              water48
  69. sector              water49
  70. sector              water50
  71.  
  72.  
  73. sound               water_gush
  74. sound               ambient=amb00tindust08.wav local
  75.                
  76. end
  77.  
  78. # =======================================
  79.  
  80.  
  81. ## Code Section
  82. code 
  83.  
  84. startup:
  85.      sleep(15);
  86.      clearvector=vectorset(0, 0, 0);
  87.      c2=vectorset(0.4, 0.8, 1.0);
  88.      print("uh oh!!");
  89.  
  90.      setsectorflags(water00, 2);   //set these sector to water
  91.      setsectorflags(water01, 2);
  92.      setsectorflags(water02, 2);
  93.      setsectorflags(water03, 2);
  94.      setsectorflags(water04, 2);
  95.      setsectorflags(water05, 2);
  96.      setsectorflags(water06, 2);
  97.      setsectorflags(water07, 2);
  98.      setsectorflags(water08, 2);
  99.      setsectorflags(water09, 2);
  100.      setsectorflags(water10, 2);
  101.      setsectorflags(water11, 2);
  102.      setsectorflags(water12, 2);
  103.      setsectorflags(water13, 2);
  104.      setsectorflags(water14, 2);
  105.      setsectorflags(water15, 2);
  106.      setsectorflags(water16, 2);
  107.      setsectorflags(water17, 2);
  108.      setsectorflags(water18, 2);
  109.      setsectorflags(water19, 2);
  110.      setsectorflags(water20, 2);
  111.      setsectorflags(water21, 2);
  112.      setsectorflags(water22, 2);
  113.      setsectorflags(water23, 2);
  114.      setsectorflags(water24, 2);
  115.      setsectorflags(water25, 2);
  116.      setsectorflags(water26, 2);
  117.      setsectorflags(water27, 2);
  118.      setsectorflags(water28, 2);
  119.      setsectorflags(water29, 2);
  120.      setsectorflags(water30, 2);
  121.      setsectorflags(water31, 2);
  122.      setsectorflags(water32, 2);
  123.      setsectorflags(water33, 2);
  124.      setsectorflags(water34, 2);
  125.      setsectorflags(water35, 2);
  126.      setsectorflags(water36, 2);
  127.      setsectorflags(water37, 2);
  128.      setsectorflags(water38, 2);
  129.      setsectorflags(water39, 2);
  130.      setsectorflags(water40, 2);
  131.      setsectorflags(water41, 2);
  132.      setsectorflags(water42, 2);
  133.      setsectorflags(water43, 2);
  134.      setsectorflags(water44, 2);
  135.      setsectorflags(water45, 2);
  136.      setsectorflags(water46, 2);
  137.      setsectorflags(water47, 2);
  138.      setsectorflags(water48, 2);
  139.      setsectorflags(water49, 2);
  140.      setsectorflags(water50, 2);
  141.  
  142.      setsectortint(water00, c2);   //tint these sectors to water
  143.      setsectortint(water01, c2);
  144.      setsectortint(water02, c2);
  145.      setsectortint(water03, c2);
  146.      setsectortint(water04, c2);
  147.      setsectortint(water05, c2);
  148.      setsectortint(water06, c2);
  149.      setsectortint(water07, c2);
  150.      setsectortint(water08, c2);
  151.      setsectortint(water09, c2);
  152.      setsectortint(water10, c2);
  153.      setsectortint(water11, c2);
  154.      setsectortint(water12, c2);
  155.      setsectortint(water13, c2);
  156.      setsectortint(water14, c2);
  157.      setsectortint(water15, c2);
  158.      setsectortint(water16, c2);
  159.      setsectortint(water17, c2);
  160.      setsectortint(water18, c2);
  161.      setsectortint(water19, c2);
  162.      setsectortint(water20, c2);
  163.      setsectortint(water21, c2);
  164.      setsectortint(water22, c2);
  165.      setsectortint(water23, c2);
  166.      setsectortint(water24, c2);
  167.      setsectortint(water25, c2);
  168.      setsectortint(water26, c2);
  169.      setsectortint(water27, c2);
  170.      setsectortint(water28, c2);
  171.      setsectortint(water29, c2);
  172.      setsectortint(water30, c2);
  173.      setsectortint(water31, c2);
  174.      setsectortint(water32, c2);
  175.      setsectortint(water33, c2);
  176.      setsectortint(water34, c2);
  177.      setsectortint(water35, c2);
  178.      setsectortint(water36, c2);
  179.      setsectortint(water37, c2);
  180.      setsectortint(water38, c2);
  181.      setsectortint(water39, c2);
  182.      setsectortint(water40, c2);
  183.      setsectortint(water41, c2);
  184.      setsectortint(water42, c2);
  185.      setsectortint(water43, c2);
  186.      setsectortint(water44, c2);
  187.      setsectortint(water45, c2);
  188.      setsectortint(water46, c2);
  189.      setsectortint(water47, c2);
  190.      setsectortint(water48, c2);
  191.      setsectortint(water49, c2);
  192.      setsectortint(water50, c2);
  193.      return;
  194.  
  195. user1:
  196.      settimer(10);
  197.       return;
  198.      
  199. # =========================================================
  200. timer:
  201.      print("watermove1");
  202.      clearsectorflags(water00, 2);  //control & drain rooms no longer submerged
  203.      clearsectorflags(water01, 2);
  204.      clearsectorflags(water02, 2);
  205.      clearsectorflags(water03, 2);
  206.      clearsectorflags(water04, 2);
  207.      clearsectorflags(water05, 2);
  208.      clearsectorflags(water06, 2);
  209.      clearsectorflags(water07, 2);
  210.      clearsectorflags(water08, 2);
  211.      clearsectorflags(water09, 2);
  212.      clearsectorflags(water10, 2);
  213.      clearsectorflags(water11, 2);
  214.      clearsectorflags(water12, 2);
  215.      clearsectorflags(water13, 2);
  216.      clearsectorflags(water14, 2);
  217.      clearsectorflags(water15, 2);
  218.      clearsectorflags(water16, 2);
  219.      clearsectorflags(water17, 2);
  220.      clearsectorflags(water18, 2);
  221.      clearsectorflags(water19, 2);
  222.      clearsectorflags(water20, 2);
  223.      clearsectorflags(water21, 2);
  224.      clearsectorflags(water22, 2);
  225.      clearsectorflags(water23, 2);
  226.      clearsectorflags(water24, 2);
  227.      clearsectorflags(water25, 2);
  228.      clearsectorflags(water26, 2);
  229.      clearsectorflags(water27, 2);
  230.      clearsectorflags(water28, 2);
  231.      clearsectorflags(water29, 2);
  232.      clearsectorflags(water30, 2);
  233.      clearsectorflags(water31, 2);
  234.      clearsectorflags(water32, 2);
  235.      clearsectorflags(water33, 2);
  236.      clearsectorflags(water34, 2);
  237.      clearsectorflags(water35, 2);
  238.      clearsectorflags(water36, 2);
  239.      clearsectorflags(water37, 2);
  240.      clearsectorflags(water38, 2);
  241.      clearsectorflags(water39, 2);
  242.      clearsectorflags(water40, 2);
  243.      clearsectorflags(water41, 2);
  244.      clearsectorflags(water42, 2);     
  245.      clearsectorflags(water43, 2);
  246.      clearsectorflags(water44, 2);
  247.      clearsectorflags(water45, 2);
  248.      clearsectorflags(water46, 2);
  249.      clearsectorflags(water47, 2);
  250.      clearsectorflags(water48, 2);
  251.      clearsectorflags(water49, 2);
  252.      clearsectorflags(water50, 2);
  253.  
  254.      setsectortint(water00, clearvector);
  255.      setsectortint(water01, clearvector); 
  256.      setsectortint(water02, clearvector);
  257.      setsectortint(water03, clearvector);
  258.      setsectortint(water04, clearvector);
  259.      setsectortint(water05, clearvector); 
  260.      setsectortint(water06, clearvector);
  261.      setsectortint(water07, clearvector);
  262.