home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_03_waterfall.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  1.7 KB  |  97 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        pulse
  15. message          user3
  16. message        timer
  17.  
  18. thing        spout1
  19. thing         spout2
  20. thing        spout3
  21. thing        spout4
  22. thing          spout5
  23. thing          spout6
  24. thing          spout7
  25. thing          spout8
  26.  
  27.  
  28.  
  29.  
  30. template    large_part
  31. template    fine_part
  32.  
  33.  
  34. int        rock=0
  35. int        l_color=0
  36. int        move=10
  37. flex        l_size=0
  38. flex        l_speed=0.5     local      
  39.  
  40. sound     watertop
  41. sound     waterbottom
  42.  
  43. end
  44.  
  45. code
  46.  
  47. user3:        //Fill top
  48.      setpulse(0.1);
  49.      settimer(13);
  50.      return;
  51.  
  52.     
  53. pulse:
  54.      creatething(large_part, spout1);
  55.     creatething(fine_part, spout1);
  56.     creatething(large_part, spout2);
  57.     creatething(fine_part, spout2);
  58.      creatething(large_part, spout3);
  59.     creatething(fine_part, spout3);
  60.      creatething(large_part, spout4);
  61.      creatething(fine_part, spout4);
  62.      creatething(large_part, spout5);
  63.      creatething(fine_part, spout5); 
  64.      creatething(large_part, spout5);
  65.      creatething(fine_part, spout5); 
  66.      creatething(large_part, spout5);
  67.      creatething(fine_part, spout5); 
  68.      creatething(large_part, spout5);
  69.      creatething(fine_part, spout5); 
  70.  
  71.  
  72.  
  73.     return;
  74.      
  75. timer:
  76.      setpulse(0);
  77.      print("nomoreair");
  78.      destroything(spout1);
  79.      destroything(spout2);
  80.      destroything(spout3);
  81.      destroything(spout4);
  82.      destroything(spout5);
  83.      destroything(spout6);
  84.      destroything(spout7);
  85.      destroything(spout8);
  86.  
  87.  
  88.  
  89.  
  90.      return;
  91.      
  92. end
  93.  
  94.  
  95.  
  96.  
  97.