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

  1. # Jedi Knight Cog Script
  2. #
  3. # 00_Door.cog
  4. #
  5. # Generic Door Script
  6. #
  7. # [IS]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     message    user1        
  14.     message    arrived        
  15.     message    timer        
  16.  
  17.     thing        waterA1        linkid=0 mask=0x405
  18.     thing        waterA2        linkid=1 mask=0x405
  19.      
  20.      thing          waterB1        linkid=3
  21.      thing          waterB4
  22.      
  23.      thing          camera2
  24.                     
  25.     float        moveSpeed=0.5
  26.     float        sleepTime=2.0
  27.     float        lightValue=0.5
  28.  
  29.     int        numDoors=0    local
  30.     int        doorStatus    local
  31.     int        moveStatus    local
  32.     int        i             local
  33.      thing     water1         local
  34.      thing     water2         linkid=3
  35.      
  36.      template       octogon
  37.      cog       watermove3   //tells watermove3cog to show h20 at right time
  38.      sound     drain=wtr03wtrdrn.wav local
  39.      sound     drains=wtr00tlp09.wav local
  40.      
  41. end
  42.  
  43. # ========================================================================================
  44.  
  45. code
  46.  
  47. user1:
  48. //     setcamerafocii(2, waterA1, camera2);
  49.      Sleep(0.5);
  50.      setcamerafocus(0, camera2);
  51.      setcurrentcamera(0);
  52.      dwfreezeplayer();
  53. //     movetoframe(camera2, 1, 1);
  54.     water1=creatething(octogon, waterA1);
  55.      water2=creatething(octogon, waterB1);
  56.      //dwplaycammyspeech(16030, "M3CA025.wav", 5, 2); //water's draining from tank!
  57.      print("create");
  58.      capturething(water1);
  59.      capturething(water2);
  60.      print("capture");     
  61.      MoveToFrame(water1, 1, .5); //was waterA1
  62.      MoveToFrame(water2, 1, .3);         //was wateB1
  63.      //draini=playsoundthing(drain, water1, 1, -1, -1, 0x1);
  64.      draini=playsoundlocal(drain, 1, 0, 0x1);     
  65.      drainsi=playsoundlocal(drains, 1, 0, 0x1);
  66.      print("move");
  67.      MoveToFrame(camera2, 1, .5);
  68.      settimer(13);
  69.      sleep(6);
  70.      dwplaycammyspeech(16030, "M3CA025.wav", 5, 2); //water's draining from tank!
  71.      return;
  72.      
  73. //timer:
  74.      //movetoframe(camera2, 1, 3);
  75.      //return;
  76.      
  77. timer:
  78.           print("arrived");
  79.           destroything(water1);  //get rid of this 3do  //waterA1
  80.           destroything(water2);  //get rid of this 3do  //waterB1 
  81.           dwunfreezeplayer();
  82.           setcurrentcamera(7);    //return camera to normal
  83.           sendmessage(watermove3, user1); //tells tanks2cog to show water at right time
  84.           print("messages");
  85.           stopsound(draini, 3);
  86.           stopsound(drainsi, 3);
  87.      
  88.      return;
  89.      
  90.  
  91.  
  92.  
  93. end
  94.  
  95.