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

  1. # Jedi Knight Cog Script
  2. #
  3. # CC_Mirror.cog
  4. #
  5. # Generic Mirror control Script
  6. #
  7. # 03/17/98 DGS Created
  8. #
  9. #Desc:
  10. # cog designed to keep the doors from being able to be cut.
  11. # (C) 1998 Lucas Learning Limited All Rights Reserved
  12. # ========================================================================================
  13.  
  14. symbols
  15. message            startup
  16. message            entered
  17.  
  18. ## ========================= Things
  19. sector            sector0
  20. sector            sector1
  21. sector            sector2
  22. sector            sector3
  23. sector            sector4
  24. sector            sector5
  25. sector            sector6
  26.  
  27. int                say0=0        local
  28. int                say1=0        local
  29. int                say2=0        local
  30. int                say3=0        local
  31. int                say4=0        local
  32. int                say5=0        local
  33. int                say6=0        local
  34.  
  35. end
  36.  
  37. # ========================================================================================
  38.                     
  39. code
  40. startup:
  41.     sleep(1);
  42.     dwPlayCammySpeech(16000, "M4ca001.wav", 10, 0);              //This jawa place is a little creepy. And 
  43.     return;
  44. entered:
  45.     
  46.     if (getsenderref() == sector0)
  47.         {
  48.         if (say0 == 0)
  49.             {
  50.             say0 = 1;
  51.             // Not used anymore.
  52.             print("say0");
  53.             }
  54.         }
  55.     if (getsenderref() == sector1)
  56.         {
  57.         if (say1 == 0)
  58.             {
  59.             say1 = 1;
  60.             dwPlayCammySpeech(16011, "M4ca003.wav", 10, 0);
  61.             dwsetreftopic("Reflection.tpc");
  62.             print("say1");
  63.             }
  64.         }
  65.     if (getsenderref() == sector2)
  66.         {
  67.         if (say2 == 0)
  68.             {
  69.             say2 = 1;
  70.             dwPlayCammySpeech(16021, "M4ca019.wav", 10, 0);
  71.             print("say2");
  72.             }
  73.         }
  74.     if (getsenderref() == sector3)
  75.         {
  76.         if (say3 == 0)
  77.             {
  78.             say3 = 1;
  79.             dwPlayCammySpeech(16019, "M4ca017.wav", 10, 0);        //It looks broken
  80.             print("say3");
  81.             }
  82.         }
  83.     if (getsenderref() == sector4)
  84.         {
  85.         if (say4 == 0)
  86.             {
  87.             say4 = 1;
  88.             dwPlayCammySpeech(16018, "M4ca016.wav", 10, 0);        //It looks broken
  89.             print("say4");
  90.             }
  91.         }
  92.     
  93.     
  94.     return;
  95.     
  96. end
  97.  
  98.