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

  1. # Droids Cog Script
  2. #
  3. # D0_skyway.cog
  4. #
  5. # Goals for catapult 
  6. #
  7. #
  8. #
  9. # [MT]                                              
  10. #
  11. #
  12. # (C) 1997 LucasLearningLimited. All Rights Reserved
  13.  
  14.  
  15.  
  16. symbols                     
  17. message        startup
  18. message        shutdown
  19.  
  20. message        user4
  21. message        user6
  22. message        pulse
  23.  
  24. sound          accomplish=00tAccomplish.WAV
  25.  
  26. end
  27.  
  28. ## Code Section
  29. code    
  30.  
  31. startup:
  32.      //setpulse(1);
  33.      player=getlocalplayerthing();
  34.      radius=getthingradius(getlocalplayerthing());
  35.      droidweight     =     GetThingMass(GetLocalPlayerThing()) / 2.2;  // Get the player's weight 
  36.      //strength=dwgetarmstrength(getlocalplayerthing());     
  37.  
  38.      if (dwCheckDroidCaps(131072)!=0) SetInv(player, 2, 1); //welder check in box2      
  39.      if (dwCheckDroidCaps(8)!=0) 
  40.           {
  41.           if (radius > 0.074560)
  42.                {
  43.                SetInv(player, 1, 1); //biped in box1 and taller than radius ( number was: 0.09498)
  44.                }
  45.           else
  46.                {
  47.                SetInv(player, 1, 0);
  48.                }               
  49.           }               
  50.      if (dwCheckDroidCaps(256)!=0) SetInv(player, 3, 1); //corrosion check in box3
  51.      if (dwGetArmStrength() > 8) SetInv(player, 5, 1);  //arm strength 135 or more
  52.      //if (dwCheckDroidCaps(2048)!=0) SetInv(player, 5, 1); //grabbing ability, in box5 but should have fine arm man.
  53.      if (droidweight < 150) SetInv(player, 6, 1);  //less than 150kg
  54.      //if (dwGetArmstrength() > 8) SetInv(player, 6, 1);       //arm strength 130 or greater
  55.  
  56.            
  57.      return;
  58.      
  59. //user6:     
  60.      //fixed all corroded pipes
  61.      //SetInv(player, 6, 1);
  62.      //playsoundthing(accomplish, player, 1.0, -1, -1, 0x80);     
  63.      //return;
  64.      
  65. user4:
  66.      //got crystal
  67.      SetInv(player, 4, 1);
  68.      playsoundthing(accomplish, player, 1.0, -1, -1, 0x80);
  69.      return;
  70.      
  71. pulse:
  72.      //to check height
  73.      print("radius");
  74.      printflex(radius);
  75.      return;
  76.  
  77.                  
  78. end
  79.  
  80.  
  81.  
  82.  
  83.