Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*----------------------------
- Global table
- ------------------------------*/
- UBR = { };
- UBR.Config = { };
- UBR.Networking = { }; // Contains networking functions
- /*----------------------------
- Settings
- ------------------------------*/
- UBR.Config.AdminGroups = { "superadmin", "admin", "owner" };
- UBR.Config.AlarmActivationRange = 1000;
- UBR.Config.AlarmHealth = 100;
- UBR.Config.AlarmRepairDelay = 30;
- UBR.Config.AlarmRingTime = 20;
- UBR.Config.AlarmRepairTime = 3;
- UBR.Config.C4ExplodeDelay = 10;
- UBR.Config.C4DestroyDoors = true;
- UBR.Config.C4DoorRespawnDelay = 20;
- UBR.Config.C4DoorRepairTime = 8;
- UBR.Config.LockpickTime = 20;
- UBR.Config.SafeMoney = 10000;
- UBR.Config.SafePlunderTime = 2;
- UBR.Config.SafeRefillDelay = 300;
- UBR.Config.SafeSilverValue = 2000;
- UBR.Config.SafeGoldValue = 4000;
- UBR.Config.SafeDiamondValue = 8000;
- UBR.Config.VaultDoorHealth = 5000;
- UBR.Config.VaultDoorRepairTime = 15;
- UBR.Config.DrillRepairTime = 2;
- UBR.Config.ShopItems = {
- {
- Name = "Lockpick",
- Description = "Useful for silent robbery.",
- Price = 3000,
- Model = "models/weapons/w_crowbar.mdl",
- BuyFunc = function(ply) {
- ply:Give("swep_lockpick");
- }
- },
- {
- Name = "C4",
- Description = "Great for loud and fast raids. Placed on a door or safe instanly breaks it.",
- Price = 8000,
- Model = "models/weapons/w_c4.mdl",
- BuyFunc = function(ply) {
- ply:Give("swep_ubr_c4");
- ply:GiveAmmo(1, "ubr_c4_ammo", false);
- }
- },
- {
- Name = "Basic Drill",
- Description = "Without a drill, you won't be able open the vault door. Don't forget to buy it!",
- Price = 2000,
- Model = "models/weapons/w_smg_tmp.mdl",
- BuyFunc = function(ply) {
- ply:ChatPrint("Not implemented!");
- }
- },
- {
- Name = "Reinforced Drill",
- Description = "Faster than basic drill.",
- Price = 5000,
- Model = "models/weapons/w_smg_tmp.mdl",
- BuyFunc = function(ply) {
- ply:ChatPrint("Not implemented!");
- }
- },
- {
- Name = "Diamond Drill",
- Description = "Super fast drill. The best choice for exprienced robbers.",
- Price = 15000,
- Model = "models/weapons/w_smg_tmp.mdl",
- BuyFunc = function(ply) {
- ply:ChatPrint("Not implemented!");
- }
- },
- {
- Name = "Durable Crate",
- Description = "You'll need this, if you want to steal something more than just money. After a successful robbery, bring this to me, I'll pay you.",
- Price = 100,
- Model = "models/props_junk/PlasticCrate01a.mdl",
- BuyFunc = function(ply) {
- var crate = ents.Create("ubr_crate");
- crate:SetPos(ply:GetPos() + Vector(0, 0, 90));
- crate:Spawn();
- crate:PhysWake();
- }
- },
- };
- UBR.Config.Lang = { };
- UBR.Config.Lang.NPC = "Gangster boss";
- UBR.Config.Lang.C4WeaponName = "C4";
- UBR.Config.Lang.RepairingAlarm = "Repairing alarm";
- UBR.Config.Lang.RepairingDoor = "Repairing door";
- UBR.Config.Lang.RepairingVaultDoor = "Repairing vault door";
- UBR.Config.Lang.RepairingDrill = "Repairing drill";
- UBR.Config.Lang.Lockpicking = "Lockpicking";
- UBR.Config.Lang.Plundering = "Plundering";
- UBR.Config.Lang.ShopTitle = "Ultimate Bank Robbery Shop";
- UBR.Config.Lang.ShopBuy = "Buy";
- UBR.Config.Lang.ShopClose = "Close";
- UBR.Config.Lang.ToolDescription = table.concat({
- "This tool saves Ultimate Bank Robbery entities and custom props (you can build a custom vault).",
- "You don't need to add Ultimate Bank Robbery entities, those are saved automatically.",
- "",
- "Left mouse button: Add/removes a custom prop.",
- "Right mouse button: Saves .",
- }, "\n");
- UBR.Config.Lang.ToolUBREntityClick = "You don't need to mark addon's entities. Those are saved automatically.";
- /*----------------------------
- Includes
- ------------------------------*/
- include("util.lua");
- include("npc_controller.lua");
- if (SERVER)
- {
- include("networking_server.lua");
- include("saving_loading.lua");
- }
- if (CLIENT)
- {
- include("networking_client.lua");
- }
- /*----------------------------
- Ammo types for weapons
- ------------------------------*/
- game.AddAmmoType({
- name = "ubr_c4_ammo"
- });
- if(CLIENT)
- language.Add("ubr_c4_ammo_ammo", UBR.Config.Lang.C4WeaponName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement