Guest User

Character system - CFG v1.0.1

a guest
Dec 19th, 2018
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.50 KB | None | 0 0
  1. /*-don't touch-*/   local _blackberry = _blackberry or {};
  2. /*-don't touch-*/   _blackberry.character_base = _blackberry.character_base or {};
  3. /*-don't touch-*/   local core = _blackberry.character_base;
  4. /*-don't touch-*/   core.config = core.config or {};
  5.  
  6. /*---------------------------------------------------------------------------
  7. Base config
  8. ---------------------------------------------------------------------------*/
  9. core.config["title"]            = "DarkRP Character menu";      // Name of window
  10. core.config["main_color"]       = Color(255, 209, 55);          // Default: Color(255, 209, 55)
  11. core.config["start_points"]     = 35;                   // Start points for attributes
  12. core.config["create_sound"]             = "sound/music/hl2_song19.mp3";         // Music in char creation menu
  13. core.config["need_recognize"]           = true;                                 // Enable recognze system
  14. core.config["hunger"]                   = false;                                // Hunger mod enabled
  15. core.config["disable_defult_hud"]       = true;                                 // Disable default hud
  16. core.config["max_jail_time"]            = 10;                                   // Optional time for arres by Karma of player. The smaller the karma, the longer the arrest
  17. core.config["karma_kills_point"]        = 2;                                    // How many kills for 1 karma point. minimum 1 kill for 1 point
  18. core.config["recognize_area"]           = 300;                                  // Recognize area
  19. core.config["change_name_price"]        = 1500;                                 // Price for changename - 0 for free or false for disable
  20.  
  21. /*---------------------------------------------------------------------------
  22. Stamina config
  23. ---------------------------------------------------------------------------*/
  24. core.config["stamina_min_run_speed"]    = 240;                                  // Speed when player ran with strenght attribute is 0
  25. core.config["stamina_max_run_speed"]    = 320;                                  // when strengt attribute is max
  26.  
  27. core.config["staming_jump_power"]       = 200;                                  // attribute is 0
  28. core.config["staming_max_jump_power"]   = 260;                                  // max attribute
  29.  
  30. /*---------------------------------------------------------------------------
  31. Advanced config
  32. ---------------------------------------------------------------------------*/
  33. core.config["bot_default"]              = {                                     // Default bot character name and description
  34.         ["name"]        = "Gabe Newell",
  35.         ["description"] = "Very fat and big man from valve"
  36. }
  37.  
  38. core.config["models"]           = {                                     // Models
  39.     ["male"] = {
  40.                 "models/player/group01/male_01.mdl",
  41.                 "models/player/Group01/Male_02.mdl",
  42.                 "models/player/Group01/male_03.mdl",
  43.                 "models/player/Group01/Male_04.mdl",
  44.                 "models/player/Group01/Male_05.mdl",
  45.                 "models/player/Group01/Male_06.mdl",
  46.                 "models/player/Group01/Male_07.mdl",
  47.                 "models/player/Group01/Male_08.mdl",
  48.                 "models/player/Group01/Male_09.mdl"
  49.     },
  50.     ["female"] = {
  51.                 "models/player/Group01/Female_01.mdl",
  52.                 "models/player/Group01/Female_02.mdl",
  53.                 "models/player/Group01/Female_03.mdl",
  54.                 "models/player/Group01/Female_04.mdl",
  55.                 "models/player/Group01/Female_06.mdl"
  56.     }
  57. }
  58.  
  59. core.config["default_appearance"] = {
  60.         "Ordinary",
  61.         "Tall",
  62.         "Shot",
  63.         "Fat",
  64.         "Thin",
  65.         "Pimply",
  66.         "Stupid",
  67.         "Angry",
  68.         "Darth Vader"
  69. };
  70.  
  71. core.config["default_eyes_color"] = {
  72.         "Blue",
  73.         "Black",
  74.         "Emerald",
  75.         "Brown"
  76. };
  77.  
  78. /*-don't touch-*/   core.config["steps"] = {};
  79. /*-don't touch-*/   local store = core.config["steps"];
  80. /*---------------------------------------------------------------------------
  81. Steps names
  82. ---------------------------------------------------------------------------*/
  83. store[#store + 1] = {
  84.     ["name"] = "Base information",
  85.     ["description"] = "Main information about your character"
  86. };
  87. store[#store + 1] = {
  88.     ["name"] = "Choose model",
  89.     ["description"] = "Model of your person"
  90. };
  91. store[#store + 1] = {
  92.     ["name"] = "Attributes",
  93.     ["description"] = "Choose attributes"
  94. };
  95. store[#store + 1] = {
  96.     ["name"] = "Rules",
  97.     ["description"] = "Rules of server",
  98.     ["subtext"] = "Yes, i read all rules and understand the full responsibility of my actions."
  99. };
  100.  
  101. /*-don't touch-*/       core.config["commands"] = {};
  102. /*-don't touch-*/       local store = core.config["commands"];
  103. /*---------------------------------------------------------------------------
  104. Char menu commands
  105. ---------------------------------------------------------------------------*/
  106. store[#store + 1] = {
  107.         ["name"] = "Change description",
  108.         ["callback"] = function(lply)
  109.                 Derma_StringRequest("Change description", "Enter new description", LocalPlayer():getChar():GetVar("description", ""), function(text)
  110.                         netstream.Start("_blackberry.character_base.change_description", text);
  111.                         core.derma:close();
  112.                 end);
  113.         end
  114. };
  115.  
  116. if (core.config["change_name_price"]) then
  117.         store[#store + 1] = {
  118.                 ["name"] = "Change name ("..core.config["change_name_price"].."$)",
  119.                 ["callback"] = function(lply)
  120.                         Derma_StringRequest("Change name", "Enter new name", LocalPlayer():getChar():GetVar("name", ""), function(text)
  121.                                 netstream.Start("_blackberry.character_base.change_name", text);
  122.                                 core.derma:close();
  123.                         end);
  124.                 end
  125.         };
  126. end;
  127. /*-don't touch-*/   core.config["rules"] = {};
  128. /*-don't touch-*/   local store = core.config["rules"];
  129. /*---------------------------------------------------------------------------
  130. Rules
  131. ---------------------------------------------------------------------------*/
  132. store[#store + 1] = "All default laws are always in effect, even without a Mayor";
  133. store[#store + 1] = "Do not commit acts of Random Death Match (RDM)";
  134. store[#store + 1] = "Do not break the New Life Rule (NLR)";
  135. store[#store + 1] = "Do not demote players randomly or for false reasons. You may not demote players while staff are online";
  136. store[#store + 1] = "Do not prop minge";
  137. store[#store + 1] = "Do not break the FearRP rules";
Advertisement
Add Comment
Please, Sign In to add comment