Advertisement
GlorifiedPig

Untitled

Jun 20th, 2020 (edited)
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1.  
  2. --[[ Leveling Configuration ]]--
  3. GlorifiedLeveling.Config.MAX_XP_MULTIPLIER = 1 -- Multiply the maximum XP to next level here. This is *not* an XP amount multiplier!
  4. GlorifiedLeveling.Config.MAX_LEVEL = 100 -- The maximum level a player can reach.
  5. GlorifiedLeveling.Config.CARRY_OVER_XP = true -- Should XP be carried over or set to zero?
  6. --[[ Leveling Configuration ]]--
  7.  
  8. --[[ Leaderboard Settings ]]--
  9. GlorifiedLeveling.Config.LEADERBOARD_CACHE_TIME = 120 -- How often should we call the network message to cache the leaderboard on every client?
  10. GlorifiedLeveling.Config.LEADERBOARD_OPEN_COMMANDS = {
  11. ["leaderboard"] = true,
  12. ["levels"] = true
  13. } -- Which commands should open the leaderboard?
  14. GlorifiedLeveling.Config.LEADERBOARD_KEY_ENABLED = true -- Should we enable the key to open the leaderboard?
  15. GlorifiedLeveling.Config.LEADERBOARD_OPEN_KEY = KEY_F9 -- Which key should open the leaderboard?
  16. --[[ Leaderboard Settings End ]]--
  17.  
  18. --[[ Perk Settings ]]--
  19. GlorifiedLeveling.Config.LEVELS_UNTIL_GAIN = 2 -- How many levels until the next gain of perks?
  20. GlorifiedLeveling.Config.POINTS_PER_GAIN = 1 -- How many points should we gain when we obtain new points?
  21. GlorifiedLeveling.Config.PERK_CONFIG = {
  22. [GlorifiedLeveling.Perks.Enum.SPEED] = 6, -- What percentage speed should we gain per point in it?
  23. [GlorifiedLeveling.Perks.Enum.LEAPING] = 3, -- What percentage gravity reduction should we gain per point in it?
  24. [GlorifiedLeveling.Perks.Enum.ARMOR] = 10, -- How much extra armour should we get on spawn per point in it?
  25. [GlorifiedLeveling.Perks.Enum.HEALTH] = 10, -- How much extra health should we get on spawn per point in it?
  26. [GlorifiedLeveling.Perks.Enum.LESS_DAMAGE_TAKEN] = 2, -- What percentage less damage should we take per level in it?
  27. [GlorifiedLeveling.Perks.Enum.MORE_DAMAGE_GIVEN] = 2, -- What percentage more damage should we give per level in it?
  28. }
  29.  
  30. GlorifiedLeveling.Config.PERK_MENU_OPEN_COMMANDS = {
  31. ["perks"] = true,
  32. ["perk"] = true,
  33. ["perkmenu"] = true
  34. } -- Which commands should open the perk menu?
  35. GlorifiedLeveling.Config.PERK_MENU_KEY_ENABLED = true -- Should we enable the key to open the perk menu?
  36. GlorifiedLeveling.Config.PERK_MENU_OPEN_KEY = KEY_T -- Which key should open the perk menu?
  37. --[[ Perk Settings End ]]--
  38.  
  39. --[[ Integrations Config ]]--
  40. GlorifiedLeveling.Config.SUPPORT_DARKRP = true -- Should we enable support for DarkRP?
  41. GlorifiedLeveling.Config.DARKRP_LEVEL_NAME_AT_END = true -- Should we add "- Level x" to the end of job and entity names?
  42. GlorifiedLeveling.Config.SUPPORT_VENATUSS_HUD_MAKER = false -- Should we enable support for Venatuss' HUD maker?
  43. --[[ Integrations Config End ]]--
  44.  
  45. --[[ UI Config ]]--
  46. GlorifiedLeveling.Config.XP_BAR_ENABLED = true -- Set to false to disable the HUD XP bar.
  47. GlorifiedLeveling.Config.LEVEL_UP_ON_TOP = false -- Should the "Level up!" text be displayed above the bar?
  48.  
  49. GlorifiedLeveling.Config.LEVEL_UP_SOUND = "glorifiedleveling/level_up.wav" -- What is the sound for when the player levels up?
  50. GlorifiedLeveling.Config.CONFETTI_SHOOT_TIMER = 2.13 -- How many seconds after the sound plays must the confetti shoot?
  51.  
  52. GlorifiedLeveling.Config.MAX_LEVEL_RAINBOW_XP_BAR = true -- Set to true to make the XP bar a rainbow when the player hits the max level.
  53. GlorifiedLeveling.Config.MAX_LEVEL_RAINBOW_LEVEL_TEXT = true -- Set to true to make the XP bar a rainbow when the player hits the max level.
  54. GlorifiedLeveling.Config.MAX_LEVEL_RAINBOW_PHYSGUN = true -- Set to true if you want to enable the rainbow physgun for a player that is max level.
  55.  
  56. GlorifiedLeveling.Config.XP_BAR_WIDTH = function()
  57. return ScrH() * 0.7
  58. end
  59. GlorifiedLeveling.Config.XP_BAR_WIDTH_OFFSET = function( BarWidth )
  60. return ScrW() / 2
  61. end
  62. GlorifiedLeveling.Config.XP_BAR_HEIGHT_OFFSET = function( BarHeight )
  63. return 0
  64.  
  65. --[[
  66. If you want the bar at the bottom:
  67. return ScrH() - BarHeight - 30
  68. Be sure to set LEVEL_UP_ON_TOP to true.
  69. ]]--
  70. end
  71. --[[ UI Config End ]]--
  72.  
  73. --[[ Multipliers Config ]]--
  74. GlorifiedLeveling.Config.MULTIPLIER_AMOUNT_CUSTOMFUNC = function( ply ) -- Custom function for setting a player's XP multiplier.
  75. local highestMultiplier = 1
  76. local specialGroups = {
  77. ["donator"] = 1.5,
  78. ["superadmin"] = 2
  79. }
  80. if specialGroups[ply:GetUserGroup()] then highestMultiplier = specialGroups[ply:GetUserGroup()] end -- Give certain multipliers to certain usergroups.
  81. if os.date( "%A" ) == "Friday" and highestMultiplier < 2 then highestMultiplier = 2 end -- Give x2 on Fridays.
  82.  
  83. return highestMultiplier
  84. end
  85. --[[ Multipliers Config End ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement