Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 KB | None | 0 0
  1. config.lua
  2. CH_BankVault = {}
  3. CH_BankVault.Config = {}
  4. CH_BankVault.Content = {}
  5. CH_BankVault.Design = {}
  6. CH_BankVault.TransportDLC = {}
  7. CH_BankVault.CurrentRobbers = { "NONE" }
  8.  
  9. -- General config options.
  10. CH_BankVault.Config.StartMoney = 1500 -- Amount of money the bank will have from server startup. [Default = 1500]
  11. CH_BankVault.Config.MoneyTimer = 60 -- This is the time that defines when money is added to the bank. In seconds! [Default = 60]
  12. CH_BankVault.Config.MoneyOnTime = 1000 -- This is the amount of money to be added to the bank every x minutes/seconds. Defined by the setting above. [Default = 1000]
  13. CH_BankVault.Config.Max = 30000 -- The maximum the bank can have. Set to 0 for no limit. [Default = 30000]
  14.  
  15. CH_BankVault.Config.AliveTime = 60 -- The amount of SECONDS the player must stay alive before he will receive what the bank has. [Default = 60 seconds]
  16. -- If you own the transport dlc this is also the time the robbers needs to complete the heist/transport of the money in. If not, the mission will fail.
  17.  
  18. CH_BankVault.Config.CooldownTime = 25 -- The amount of SECONDS the bank is on a cooldown after a robbery! [Default = 600 (10 min)]
  19. CH_BankVault.Config.RobberyDistance = 300000 -- The amount of space the player can move away from the armory entity, before the robbery fails. [Default = 300000]
  20. CH_BankVault.Config.PlayerLimit = 1 -- The amount of players there must be on the server before you can rob the bank. [Default = 5]
  21. CH_BankVault.Config.KillReward = 1000 -- The amount of money a person is rewarded for killing the bank robber. [Default = 1000]
  22. CH_BankVault.Config.PoliceRequired = 0 -- The amount of police officers there must be before a person can rob the bank. [Default = 3]
  23. CH_BankVault.Config.DropMoneyOnSucces = false -- Should money drop from the bank when a robbery is successful? true/false option. [Default = false]
  24. CH_BankVault.Config.RobbersCanJoin = 120 -- Amount of seconds before robbers are no longer able to join a robbery after it has first been started. [Default = 120 (2 minutes)]
  25.  
  26. CH_BankVault.Config.EmitSoundOnRob = true -- Should an alarm go off when the bank vault gets robbed. [Default = true]
  27. CH_BankVault.Config.TheSound = "ambient/alarms/alarm_citizen_loop1.wav" -- The sound to be played. [Default = ambient/alarms/alarm1.wav - default gmod sound]
  28. CH_BankVault.Config.SoundLevel = 75 -- The sound level. Ranges from 20 to 180. 180 is super loud. [Default = 75]
  29. CH_BankVault.Config.SoundDuration = 20 -- Amount of seconds the sound should play for. [Default = 20]
  30.  
  31. -- Vrondakis XP Support
  32. CH_BankVault.Config.VrondakisXPEnable = false -- Enable xp reward for https://github.com/vrondakis/Leveling-System
  33. CH_BankVault.Config.VrondakisXPAmount = 1500 -- Amount of XP given to each robber after a succesful robbery.
  34.  
  35. CH_BankVault.Config.UseRequiredModels = false -- Should the robber be a specific model to be able to rob the bank? Uses the models from the table below. [Default = false]
  36.  
  37. CH_BankVault.Config.RequiredModels = { -- These are the models required to rob the bank. These only come in use if the option above (CH_BankVault.Config.UseRequiredModels) is enabled.
  38. "models/player/Group01/Male_01.mdl",
  39. "models/player/Group01/Male_02.mdl",
  40. "models/player/Group01/Male_03.mdl",
  41. "models/player/Group01/Male_04.mdl",
  42. "models/player/Group01/Male_05.mdl",
  43. "models/player/Group01/Male_06.mdl",
  44. "models/player/Group01/Male_07.mdl",
  45. "models/player/Group01/Male_08.mdl",
  46. "models/player/Group01/Male_09.mdl" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
  47. }
  48.  
  49. CH_BankVault.Config.RequiredTeams = { -- These are the names of the jobs that counts with the police required config. The amount of players on these teams are calculated together in the count.
  50. "Civil Protection",
  51. "Civil Protection Chief" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
  52. }
  53.  
  54. CH_BankVault.Config.GovernmentTeams = { -- These are the teams that will receive a notify when a player is trying to rob a bank. Use the actual team name, as shown below.
  55. "Civil Protection",
  56. "Civil Protection Chief",
  57. "Mayor" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
  58. }
  59.  
  60. CH_BankVault.Config.AllowedTeams = { -- These are the teams that are allowed to rob the bank.
  61. "Citizen",
  62. "Gangster",
  63. "Mob boss",
  64. "Gun Dealer",
  65. "Medic",
  66. "Hobo" -- THE LAST LINE SHOULD NOT HAVE A COMMA AT THE END. BE AWARE OF THIS WHEN EDITING THIS!
  67. }
  68.  
  69.  
  70. Design.lua
  71.  
  72. -- Design options for the bank entity display.
  73. -- TOP
  74. CH_BankVault.Design.DesignText_VaultName = "GModStore Ltd."
  75. CH_BankVault.Design.DesignColor_VaultName = Color(48, 151, 255, 150)
  76. CH_BankVault.Design.DesignColor_VaultNameBoarder = Color(0, 0, 0, 255)
  77.  
  78. CH_BankVault.Design.DesignText_BankVault = "Bank Vault"
  79. CH_BankVault.Design.DesignColor_BankVault = Color(255, 255, 200, 150)
  80. CH_BankVault.Design.DesignColor_BankVaultBoarder = Color(0, 0, 0, 255)
  81.  
  82. CH_BankVault.Design.DesignColor_BackCircle = Color(0, 0, 0, 220)
  83. CH_BankVault.Design.DesignColor_MoneyCircle = Color(153, 0, 0, 200)
  84. CH_BankVault.Design.DesignColor_FrontCircle = Color(60, 60, 60, 255)
  85.  
  86. CH_BankVault.Design.DesignText_Money = "MONEY"
  87. CH_BankVault.Design.DesignColor_Money = Color( 200, 200, 200, 200 )
  88. CH_BankVault.Design.DesignColor_MoneyBoarder = Color( 0, 0, 0, 255 )
  89.  
  90. CH_BankVault.Design.DesignColor_VaultAmount = Color(0, 150, 0, 255)
  91. CH_BankVault.Design.DesignColor_VaultAmountBoarder = Color(0, 0, 0, 255)
  92.  
  93. -- LEFT SIDE BOTTOM
  94. CH_BankVault.Design.DesignColor_LeftBox = Color(0, 0, 0, 220)
  95.  
  96. CH_BankVault.Design.DesignText_Cooldown = "Robbery Cooldown"
  97. CH_BankVault.Design.DesignColor_Cooldown = Color( 200, 200, 200, 255 )
  98. CH_BankVault.Design.DesignColor_CooldownBoarder = Color( 0, 0, 0, 255 )
  99.  
  100. CH_BankVault.Design.DesignColor_CooldownValue = Color( 200, 200, 200, 255 )
  101. CH_BankVault.Design.DesignColor_CooldownValueBoarder = Color( 0, 0, 0, 255 )
  102.  
  103. CH_BankVault.Design.DesignText_Countdown = "Robbery Countdown"
  104. CH_BankVault.Design.DesignColor_Countdown = Color( 200, 200, 200, 200 )
  105. CH_BankVault.Design.DesignColor_CountdownBoarder = Color( 0, 0, 0, 255 )
  106.  
  107. CH_BankVault.Design.DesignColor_CountdownValue = Color( 150, 150, 150, 255 )
  108. CH_BankVault.Design.DesignColor_CountdownValueBoarder = Color( 0, 0, 0, 255 )
  109.  
  110. CH_BankVault.Design.DesignText_RobStatus = "Rob Status"
  111. CH_BankVault.Design.DesignColor_RobStatus = Color( 200, 200, 200, 200 )
  112. CH_BankVault.Design.DesignColor_RobStatusBoarder = Color( 0, 0, 0, 255 )
  113.  
  114. CH_BankVault.Design.DesignText_EnoughPoliceYes = "Enough Police: Yes"
  115. CH_BankVault.Design.DesignText_AllowedTeamYes = "Team Allowed: Yes"
  116. CH_BankVault.Design.DesignText_EnoughPlayersYes = "Enough Players: Yes"
  117. CH_BankVault.Design.DesignText_RequiredModelYes = "Required Model: Yes"
  118.  
  119. CH_BankVault.Design.DesignText_EnoughPoliceNo = "Enough Police: No"
  120. CH_BankVault.Design.DesignText_AllowedTeamNo = "Team Allowed: No"
  121. CH_BankVault.Design.DesignText_EnoughPlayersNo = "Enough Players: No"
  122. CH_BankVault.Design.DesignText_RequiredModelNo = "Required Model: No"
  123.  
  124. CH_BankVault.Design.DesignColor_TheYes = Color( 0, 150, 0, 255 )
  125. CH_BankVault.Design.DesignColor_TheNo = Color( 150, 0, 0, 255 )
  126. CH_BankVault.Design.DesignColor_TheBoarder = Color( 0, 0, 0, 255 )
  127.  
  128. -- RIGHT SIDE BOTTOM
  129. CH_BankVault.Design.DesignColor_RightBox = Color(0, 0, 0, 220)
  130.  
  131. CH_BankVault.Design.DesignText_CurrentRobbers = "Current Robbers"
  132. CH_BankVault.Design.DesignColor_CurrentRobbers = Color( 200, 200, 200, 200 )
  133. CH_BankVault.Design.DesignColor_CurrentRobbersBoarder = Color( 0, 0, 0, 255 )
  134.  
  135. CH_BankVault.Design.DesignColor_Robber1 = Color( 200, 200, 200, 200 )
  136. CH_BankVault.Design.DesignColor_Robber2 = Color( 200, 200, 200, 200 )
  137. CH_BankVault.Design.DesignColor_Robber3 = Color( 200, 200, 200, 200 )
  138.  
  139. CH_BankVault.Design.DesignColor_Robber1Boarder = Color( 0, 0, 0, 255 )
  140. CH_BankVault.Design.DesignColor_Robber2Boarder = Color( 0, 0, 0, 255 )
  141. CH_BankVault.Design.DesignColor_Robber3Boarder = Color( 0, 0, 0, 255 )
  142.  
  143.  
  144. NPC.lua
  145.  
  146. -- NPC POLICE CONFIG
  147. -- THIS FEATURE IS NOT FINISHED!
  148. -- I would advise NOT using this, but you can test it out if you wish on your development server :)
  149.  
  150. CH_BankVault.Config.UseNPCCopsDLC = false -- Enables the DLC. Police NPCs will spawn at your positions (the bank most likely) and attack current robbers.
  151.  
  152. -- Default Config
  153. -- Max NPCs
  154. -- Continue to spawn or just one-time
  155.  
  156. CH_BankVault.Config.NPCCOPS_RandomWeapons = { -- List of random weapons given to the NPC police officers when they spawn.
  157. "weapon_357",
  158. "weapon_ar2",
  159. "weapon_bugbait",
  160. "weapon_crossbow",
  161. "weapon_crowbar",
  162. "weapon_frag",
  163. "weapon_pistol",
  164. "weapon_rpg",
  165. "weapon_shotgun",
  166. "weapon_smg1",
  167. "weapon_stunstick" -- THE LAST TEAM SHOULD NOT HAVE A COMMA
  168. }
  169.  
  170. CH_BankVault.Config.NPCCOPS_TimerLoop = 4 -- How many rounds of police npcs should there be?
  171. CH_BankVault.Config.NPCCOPS_TimerInterval = 60 -- Seconds between each wave of police npcs.
  172.  
  173. CH_BankVault.Config.NPCCOPS_MinHealth = 100 -- Minimum amount of health a npc police will spawn with.
  174. CH_BankVault.Config.NPCCOPS_MaxHealth = 200 -- Maximum amount of health a npc police will spawn with.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement