shadowndacorner

Untitled

Oct 20th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.09 KB | None | 0 0
  1.  
  2. Lockpick.Config={
  3.     // Entities
  4.    
  5.     CustomEnts={                                // Custom lockpickable entities.  See below for the formatting.
  6.    
  7.         prop_vehicle_airboat=
  8.         {
  9.             IsPickable=function(self, ent)
  10.                 for f, v in pairs(player.GetAll()) do
  11.                     if v:GetVehicle()==ent then
  12.                         return false
  13.                     end
  14.                 end
  15.                 return true//(ent.GetDriver and !IsValid(ent:GetDriver()))
  16.             end;
  17.             OnPicked=function(self, ply, ent)
  18.                 ent:Unlock()
  19.             end;
  20.             IsLocked=function(self, ent)
  21.                 return ent.Locked
  22.             end;
  23.             Unlock=function(self, ent)
  24.                 ent:Fire('unlock')
  25.             end;
  26.             Lock=function(self, ent)
  27.                 ent:Fire('lock')
  28.             end;
  29.         };
  30.        
  31.         prop_vehicle_jeep=
  32.         {
  33.             IsPickable=function(self, ent)
  34.                 for f, v in pairs(player.GetAll()) do
  35.                     if v:GetVehicle()==ent then
  36.                         return false
  37.                     end
  38.                 end
  39.                 return true//(ent.GetDriver and !IsValid(ent:GetDriver()))
  40.             end;
  41.             OnPicked=function(self, ply, ent)
  42.                 ent:Unlock()
  43.             end;
  44.             IsLocked=function(self, ent)
  45.                 return ent.Locked
  46.             end;
  47.             Unlock=function(self, ent)
  48.                 ent:Fire('unlock')
  49.             end;
  50.             Lock=function(self, ent)
  51.                 ent:Fire('lock')
  52.             end;
  53.         };
  54.        
  55.         /*player=                                   // Uncomment this for teh lulz
  56.         {
  57.             IsPickable=function(self, ent)
  58.                 return true
  59.             end;
  60.             OnPicked=function(self, ply, ent)
  61.                 ent:Unlock()
  62.             end;
  63.             IsLocked=function(self, ent)
  64.                 return true
  65.             end;
  66.             Unlock=function(self, ent)
  67.                 ent:SetVelocity(Vector(0, 0, 10000))
  68.                 for f, v in pairs(player.GetAll()) do
  69.                     v:ChatPrint('wtf')
  70.                 end
  71.             end;
  72.             Lock=function(self, ent)
  73.                 ent:SetVelocity(Vector(0, 0, 10000))
  74.             end;
  75.         };//*/
  76.        
  77.     };
  78.    
  79.     // Game/Interface
  80.    
  81.     TooFarMessage = "Come closer to lockpick";  // Seems self explanatory
  82.    
  83.     PressEMessage = "Press E to begin lockpicking"; // Seems self explanatory
  84.    
  85.     CrouchMessage = "Crouch to lockpick";       // Seems self explanatory
  86.    
  87.     UseDarkRPNotifications = false;             // Use the DarkRP notification system (if available)
  88.    
  89.     NotificationFunction=function(ply, text)    // If you don't know what this means, don't touch it.
  90.         //do stuff
  91.         //return true                           // Coders, return true here if you want to override the notifications with your own.
  92.     end;
  93.    
  94.     BreakNotificationLength = 5;                // Time in seconds the notification that you have broken your last lockpick lasts
  95.    
  96.     DefaultFont="Orator Std";                   // Default font for the various text overlays and HUD elements
  97.    
  98.     ThirdPersonLockpick=true;                   // Enables/disables third person mode while lockpicking; I recommend you set this to true.
  99.    
  100.     RestrictedClasses={                         // Remove the // and duplicate this line for every team that should not be able to lockpick
  101.         //TEAM_RESTRICTME,
  102.     };
  103.    
  104.     // Lockpicks
  105.    
  106.     BaseHealth=300;
  107.    
  108.     ForceCrouch=true,                           // Forces players to crouch to lockpick; Makes it function similar to Skyrim's sneaking-to-lockpick system
  109.    
  110.     AngleToComplete=30;                         // How (in degrees 0-360) far the player has to turn the pick to unlock
  111.    
  112.     AngleTolerance=9;                           // How close (in degrees 0-360) to the target angle the player can be to unlock
  113.    
  114.     AngleToleranceMultiplier=
  115.     function(ply, tol, cfg)                     // If you don't know what this is, don't touch it.  It's useful for coders who want to easily modify stuff.
  116.         if ply:IsAdmin() then                   // Coders, this the arguments are (Player, Default tolerance, Config table)
  117.             //return tol*2                      // Return what you want the tolerance to be
  118.         end
  119.     end;
  120.    
  121.     DebugMode=true;                             // Shows debug text while lockpicking and disables certain security measures
  122.    
  123.     LockExponent=1.25;                          // Determins how easily the lock will stop/shake
  124.    
  125.     TensionDamage=1;                            // Multiplier for damage caused by lockpick tension (speed at which you move)
  126.    
  127.     ShakeScale=10;                              // Determines the severity of the shakes
  128.    
  129.     // Data
  130.    
  131.     SaveLockpickData=true;                      // Makes lockpicks permenant for players, similar to how money, rpname, etc are permenant.  Disable to disable saving.  I PERSONALLY only recommend this if you're planning on implementing your own saving system.
  132.    
  133.     SaveDirectory="lockpick_pdata";             // Sets the save directory.  Do NOT leave a trailing "/".
  134.    
  135. }
Advertisement
Add Comment
Please, Sign In to add comment