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

  1. symbols
  2. message        user0
  3. message        timer
  4.  
  5. sound          tenwav
  6. sound          ninewav
  7. sound          eightwav
  8. sound          sevenwav
  9. sound          sixwav
  10. sound          fivewav
  11. sound          fourwav
  12. sound          threewav
  13. sound          twowav
  14. sound          onewav
  15.  
  16. cog            catapultcog
  17. cog            EdroidCOG
  18. cog            RdroidCOG
  19. sound          thischeesywav=MCHt1CatRset.wav
  20. end
  21.  
  22. code
  23. user0:
  24.      print("countdown starting");
  25.      jgs=10;
  26. //     jgs=3;
  27.      settimer(1);
  28.      sendmessage(EdroidCOG, user4);
  29.      sendmessage(RdroidCOG, user4);
  30.      return;
  31.  
  32.  
  33. timer:
  34.      if (jgs==10) {
  35.           playsoundlocal(tenwav, 0.7, 0.0, 4);
  36.           playsoundlocal(thischeesywav, 0.0, 0.0, 4);
  37.           jgs=9;
  38.           settimer(1);
  39.           }
  40.      else if (jgs==9) {
  41.           playsoundlocal(ninewav, 0.7, 0.0, 4);
  42.           jgs=8;
  43.           settimer(1);
  44.           }
  45.      else if (jgs==8) {
  46.           playsoundlocal(eightwav, 0.7, 0.0, 4);
  47.           settimer(1);
  48.           jgs=7;
  49.           }
  50.      else if (jgs==7) {
  51.           playsoundlocal(sevenwav, 0.7, 0.0, 4);
  52.           jgs=6;
  53.           settimer(1);
  54.           }
  55.      else if (jgs==6) {
  56.           playsoundlocal(sixwav, 0.7, 0.0, 4);
  57.           jgs=5;
  58.           settimer(1);
  59.           }
  60.      else if (jgs==5) {
  61.           playsoundlocal(fivewav, 0.7, 0.0, 4);
  62.           jgs=4;
  63.           settimer(1);
  64.           }
  65.      else if (jgs==4) {
  66.           playsoundlocal(fourwav, 0.7, 0.0, 4);
  67.           settimer(1);
  68.           jgs=3;
  69.           }
  70.      else if (jgs==3) {
  71.           playsoundlocal(threewav, 0.7, 0.0, 4);
  72.           jgs=2;
  73.           settimer(1);
  74.           }
  75.      else if (jgs==2) {
  76.           playsoundlocal(twowav, 0.7, 0.0, 4);
  77.           jgs=1;
  78.           settimer(1);
  79.           }
  80.      else if (jgs==1) {
  81.           playsoundlocal(onewav, 0.7, 0.0, 4);
  82.           settimer(1);
  83.           jgs=0;
  84.           }
  85.      else if (jgs==0) {
  86.           sendmessage(catapultcog, user0);
  87.           sendmessage(EdroidCOG, user5);
  88.           sendmessage(RdroidCOG, user5);
  89.           print("sending launch message");
  90.      }
  91.      return;   
  92.      
  93. end
  94.  
  95.  
  96.