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

  1. # Droids COG Script
  2. #
  3. # b0_cweight_sand.cog
  4. #
  5. # Cog designed to generate sand for the counterweight
  6. #
  7. #
  8. # Desc:
  9. #     02/03/98 [DGS]    Created
  10. # ========================================================================================
  11.  
  12. symbols
  13. message        startup
  14. message        pulse
  15. message     user0
  16. message        user1
  17. message        user2
  18.  
  19. thing        spout1a
  20. thing         spout1b
  21. thing        spout1c
  22.  
  23. thing        spout2a
  24. thing         spout2b
  25. thing        spout2c
  26.  
  27.  
  28. template    large_part
  29. template    fine_part
  30.  
  31. template    largeh_part
  32. template    fineh_part
  33.  
  34.  
  35. int        rock=0
  36. int        l_color=0
  37. int        move=10
  38. flex        l_size=0
  39. flex        l_speed=0.1     local      
  40. end
  41.  
  42. code
  43. startup:
  44.     setpulse(0.2);
  45.     return;
  46.  
  47.  
  48. user0:        //stop
  49.     setpulse(0);
  50.     return;
  51.  
  52. user1:        //Fill top
  53.         spoutta = spout1a;
  54.         spouttb = spout1b;
  55.         spouttc = spout1c;
  56.     
  57.     setpulse(0.05);
  58.     return;
  59.  
  60. user2:        //Fill top
  61.         spoutta = spout2a;
  62.         spouttb = spout2b;
  63.         spouttc = spout2c;
  64.     
  65.     setpulse(0.05);
  66.     return;
  67.  
  68.     
  69. pulse:
  70.     creatething(large_part, spout1a);
  71.     creatething(fine_part, spout1a);
  72.  
  73.     creatething(largeh_part, spout1b);
  74.     creatething(fineh_part, spout1b);
  75.     
  76.     return;
  77. end
  78.  
  79.  
  80.  
  81.  
  82.