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

  1. #
  2. # b0_mazeDroid.cog
  3. #    
  4. # CommuniCog for the Droid in the Dark Maze.
  5. #
  6. # Desc:
  7. #     He's a droid, yes, and he's a talkin' like a [insert talky thing here]
  8. #
  9. # 12/23/97 DGS    Created. 
  10. #-----------------------------------------------------------------------------
  11.  
  12. symbols
  13.     message       startup
  14.     message     user1
  15.     message        activated
  16.     
  17.     thing         door 
  18.     surface        switch                     linkid=5    
  19.     
  20.     int        Met=0                            local
  21.     int        Joke=0                            local
  22.     int        spoken_1=0                       local
  23.     int        gears=0                               local
  24.     int        ConversationActive=0            local
  25.     int     gonkcurframe=0                  local
  26.     int        ResponseID                        local
  27.     int        bye=0                            local
  28.     int        turnoff=0                        local
  29.     int        password=0                        local
  30.     int        shot=1                            local
  31.     flex    wait_time=1.3                    local
  32. end
  33.  
  34.  
  35. code
  36. startup:
  37.     SetSectorLight(getthingsector(door), 0.5, 0.0);        // add some light to door sector
  38.     return;
  39.  
  40. user1:
  41.     password = 2;
  42.     return;
  43.  
  44. activated:
  45.     print("Activated");
  46.     // Used for activing the door that leads to the end of the level.
  47.     if (getsenderid()==5)
  48.         {
  49.         if (password == 2)
  50.             {
  51.             setwallcel(switch,1);
  52.             movetoframe(door,1,4);
  53.             }
  54.         else
  55.             {
  56.             dwPlayCammySpeech(12102, "M1ca036.wav", 10, 0);
  57.             }
  58.         }
  59.     //else call injected;
  60.     return;
  61. end
  62.  
  63.  
  64.