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

  1. # Droids COG Script
  2. #
  3. # 03_sander.cog
  4. #
  5. # Cog designed to generate sand for the counterweight
  6. #
  7. #
  8. # Desc:
  9. #     02/03/98 [DGS]    Created
  10. #    02/12/98 [JP]  Modified to be used for the Moisture Farm level.
  11. # ========================================================================================
  12.  
  13. symbols
  14. message        startup
  15. message        pulse
  16. message          user4
  17. message        timer
  18.  
  19. thing        spout1
  20. thing         spout2
  21. thing        spout3
  22.  
  23. thing        spout4
  24. thing         spout5
  25. thing        spout6
  26. thing          spout7
  27. thing          spout8
  28. thing          spout9
  29. thing          spout10
  30. thing          spout11
  31. thing          spout12
  32.  
  33.  
  34. template    large_part
  35. template    fine_part
  36.  
  37.  
  38. int        rock=0
  39. int        l_color=0
  40. int        move=10
  41. flex        l_size=0
  42. flex        l_speed=0.5     local      
  43.  
  44. sound     watertop
  45. sound     waterbottom
  46.  
  47. sound     hstart=wtr03wtrdrnst.wav local   
  48. sound     bubbly=wtr01acidlp.wav local
  49.  
  50. end
  51.  
  52. code
  53.  
  54. user4:        //Fill top
  55.      setpulse(0.1);
  56.      settimer(3);
  57.      playsoundlocal(htstart, 1, 0, 0);
  58.      bubblyi=playsoundlocal(bubbly, 1, 0, 0x1);
  59.      return;
  60.  
  61.     
  62. pulse:
  63.      creatething(large_part, spout1);
  64.     creatething(fine_part, spout1);
  65.     creatething(large_part, spout2);
  66.     creatething(fine_part, spout2);
  67.      creatething(large_part, spout3);
  68.     creatething(fine_part, spout3);
  69.      creatething(large_part, spout4);
  70.      creatething(fine_part, spout4);
  71.      creatething(large_part, spout5);
  72.      creatething(fine_part, spout5);
  73.      creatething(large_part, spout6);
  74.      creatething(fine_part, spout6);
  75.      creatething(large_part, spout7);
  76.      creatething(fine_part, spout7); 
  77.      creatething(large_part, spout8);
  78.      creatething(fine_part, spout8);
  79.      creatething(large_part, spout9);
  80.      creatething(fine_part, spout9); 
  81.      creatething(large_part, spout10);
  82.      creatething(fine_part, spout10); 
  83.      creatething(large_part, spout11);
  84.      creatething(fine_part, spout11); 
  85.      creatething(large_part, spout12);
  86.      creatething(fine_part, spout12); 
  87.     return;
  88.      
  89. timer:
  90.      setpulse(0);
  91.      print("nomoreair");
  92.      destroything(spout1);
  93.      destroything(spout2);
  94.      destroything(spout3);
  95.      destroything(spout4);
  96.      destroything(spout5);
  97.      destroything(spout6);
  98.      destroything(spout7);
  99.      destroything(spout8);
  100.      destroything(spout9);
  101.      destroything(spout10);
  102.      destroything(spout11);
  103.      destroything(spout12);
  104.      stopsound(bubblyi, 0.2);
  105.      return;
  106.      
  107. end
  108.  
  109.  
  110.  
  111.  
  112.