home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_03_ctrl_wm2.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  2.0 KB  |  87 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   user7        
  14.     message    arrived        
  15.     message    timer        
  16.  
  17.     thing        waterA1        linkid=1 mask=0x405
  18.     //thing        waterA2        linkid=1 mask=0x405
  19.      
  20.      //thing          waterB1
  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.      sound          wmove=wtr03wtrdrn.wav local
  30.      
  31.      vector         v1   desc=thrust_direction
  32.      sector         lastwater
  33.      
  34.      thing          door
  35.      
  36.      sound          hstop=wtr03wtrdrnstp.wav local
  37.      
  38. end
  39.  
  40. # ========================================================================================
  41.  
  42. code
  43.  
  44. user7:
  45. //     setcamerafocii(2, waterA1, camera2);
  46.      MovetoFrame(waterA1, 1, 1.1);
  47.      dwplaycammyspeech(16035, "M3CA031.wav", 5, 2); //c alright!  hatch drain ctrl rm!
  48.      wmovei=playsoundlocal(wmove, 1, 0, 0x1);
  49.      
  50.      
  51.      //setcamerafocus(0, camera2);
  52.      //setcurrentcamera(0);
  53.      dwfreezeplayer();
  54.      print("playerfreeze");
  55.      settimer(1);
  56. //     movetoframe(camera2, 1, 1);
  57.     //MoveToFrame(waterA1, 1, moveSpeed);
  58.      //MoveToFrame(waterB1, 1, .2);    
  59.      MoveToFrame(door, 1, 5);     
  60.      return;
  61.      
  62. timer:
  63.      setcamerafocus(0, camera2);                    
  64.      setcurrentcamera(0);                           
  65.      //SetActorFlags(GetLocalPlayerThing(), 0xa00000);
  66.      movetoframe(camera2, 1, 0.1); //LL
  67.      return;
  68.      
  69. arrived:
  70.      if (getsenderid()== 1)
  71.           {
  72.           print("UNFREEZE Lala");
  73.           dwunfreezeplayer();
  74.           setcurrentcamera(7);
  75.           sectorthrust(lastwater, v1, 4);
  76.           print("thrust");
  77.           playsoundlocal(hstop, 1, 0, 0);
  78.           stopsound(wmovei, 0.5);
  79.           }
  80.      return;
  81.      
  82.  
  83.  
  84.  
  85. end
  86.  
  87.