Advertisement
Guest User

config

a guest
Dec 8th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.83 KB | None | 0 0
  1. -- Core
  2. -- The command used to open the settings menu
  3. bens_communications_system.core.config["settingscommand"] = "bcomms"
  4.  
  5. -- Whether or not people need to be wearing a headset or holding a radio swep to use the radio.
  6. bens_communications_system.core.config["radiorequirestech"] = true
  7.  
  8. -- Whether or not people need to be wearing a headset or holding a radio swep to use the chat comms
  9. bens_communications_system.core.config["commsrequirestech"] = false
  10.  
  11. -- Voice Amplifier
  12.  
  13.  
  14. -- Amplifier Range, how close you have to be to the amplifier for it to take effect on your voice? The higher the range, the bigger the radius will be.
  15. -- For reference with range, this is what a range of 250 looks like https://imgur.com/Y8jhxQP
  16. bens_communications_system.voiceamp.config["amprange"] = 250
  17.  
  18. -- Amplified Voice Range, how close you have to be to the amplifier for others to hear you? The higher the range, the bigger the radius will be.
  19. bens_communications_system.voiceamp.config["ampvoicerange"] = 15000
  20.  
  21. -- This is the list of players, ranks or jobs that are allowed to turn the voice amplifier on or off.
  22. hook.Add("loadCustomDarkRPItems","bens_communications_system_loadVoiceAmp",function()
  23. bens_communications_system.voiceamp.config["Allowed"] = {
  24.  
  25. ["Ranks"] = {
  26. ["Super Admin"] = true,
  27. ["Admin"] = true
  28. ["Moderator"] = true
  29. ["Owner"] = true
  30. },
  31.  
  32. ["Jobs"] = {
  33. [TEAM_OMEGANINER] = true
  34. },
  35.  
  36. ["Players"] = {
  37. --["76561198170078598"] = false
  38. }
  39.  
  40. }
  41. end)
  42.  
  43.  
  44.  
  45. -- Quick Chat
  46.  
  47. -- Quick Chat Binds Command (no need for the ! or / prefix)
  48. bens_communications_system.quickchat.config["chatcommand"] = "quickchat"
  49.  
  50.  
  51.  
  52.  
  53. -- Radio Addon
  54. -- These are your radio groups, players/jobs/ranks can be part of more than group at a time.
  55. -- If you have a large list of jobs in the form 'jobs = {TEAM_MAYOR,TEAM_CP,TEAM_GANGSTER}' ect, send me a ticket and I will transfer it from that to the format below if you don't want too.
  56. -- Storing them this way is more efficient for the server to compute.
  57. -- You have to have all four types of method checking even if you don't put anything in or it will error.
  58.  
  59. -- Radio's will only be given on initial spawn and team change. Sorry if that doesn't work out for what you want to do.
  60. hook.Add("loadCustomDarkRPItems","bens_communications_system_loadRadioConfig",function()
  61. bens_communications_system.radio.config["RadioGroups"] = {
  62.  
  63. ["Government"] = {
  64.  
  65. ["Jobs"] = {
  66. [TEAM_OMEGANINER] = true,
  67. [TEAM_CLONETROOPER] = true
  68. },
  69.  
  70. ["Ranks"] = {
  71. ["Owner"] = true
  72. ["Super Admin"] = true
  73. ["Admin"] = true
  74. ["Moderator"] = true
  75. },
  76.  
  77. ["Players"] = {
  78. ["76561198170078598"] = true
  79. },
  80.  
  81.  
  82. ["CustomCheck"] = function(ply) return false end,
  83. ["Hackable"] = true
  84.  
  85. },
  86. }
  87.  
  88.  
  89. -- don't question this bit xx
  90. for k,v in pairs(bens_communications_system.radio.config["RadioGroups"]) do
  91. if bens_communications_system.radio.config["RadioGroups"][k]["Jobs"] == nil then
  92. bens_communications_system.radio.config["RadioGroups"][k]["Jobs"] = {}
  93. end
  94. if bens_communications_system.radio.config["RadioGroups"][k]["Ranks"] == nil then
  95. bens_communications_system.radio.config["RadioGroups"][k]["Ranks"] = {}
  96. end
  97. if bens_communications_system.radio.config["RadioGroups"][k]["Players"] == nil then
  98. bens_communications_system.radio.config["RadioGroups"][k]["Players"] = {}
  99. end
  100. if bens_communications_system.radio.config["RadioGroups"][k]["CustomCheck"] == nil then
  101. bens_communications_system.radio.config["RadioGroups"][k]["CustomCheck"] = function (ply) return false end
  102. end
  103. end
  104. end)
  105. -- question whatevers next xx
  106.  
  107. -- This is where the radio UI is on the X axis. For example 0.5 is in the middle of the screen (50%) whereas 0.25 would be 25% pixels into the screen.
  108. bens_communications_system.radio.config["uioffsetx"] = 0.5
  109.  
  110. -- This is where the radio UI is on the Y axis. For example 0.5 is in the middle of the screen (50%) whereas 0.25 would be 25% pixels into the screen.
  111. -- This is mainly for servers with over the top huds. It looks weird overwise.
  112. bens_communications_system.radio.config["uioffsety"] = 0
  113.  
  114. -- Radio Jammer Upgrades
  115. -- For reference with range, this is what a range of 500 looks like https://imgur.com/tR2MpD6
  116.  
  117. -- How much should the user pay to get a frequency splitter which allows them to jam both voice AND chat comms instead of just voice.
  118. bens_communications_system.radio.config["jammerfreqsplitterprice"] = 10000
  119.  
  120. -- How much should the user pay to get an Adv. CircuitBoard that makes the jammer jam every radio frequency other than the frequency the user is currently using.
  121. bens_communications_system.radio.config["jammeradvcircuitboardprice"] = 10000
  122.  
  123. -- How long should the radio jammer last without any upgrades, in seconds
  124. bens_communications_system.radio.config["jammerinitialbattery"] = 60
  125.  
  126. -- How much should the user pay to improve the battery
  127. bens_communications_system.radio.config["jammerbatteryincprice"] = 500
  128.  
  129. -- How much longer, in seconds, should the duration of the jammer be for each battery upgrade purchased
  130. bens_communications_system.radio.config["jammerbatteryincamount"] = 50
  131.  
  132. -- How many times should the user be able to upgrade the battery, to calculate the total possible duration do: jammerinitialbattery + (jammerbatteryincamount * jammerbatteryinclimit)
  133. bens_communications_system.radio.config["jammerbatteryinclimit"] = 5
  134.  
  135. -- How far should the jammer reach without additional upgrades
  136. bens_communications_system.radio.config["jammerdefaultrange"] = 500
  137.  
  138. -- How much should the user pay to improve the range by adding antenna
  139. bens_communications_system.radio.config["jammerantennaincprice"] = 500
  140.  
  141. -- How much further should the jammer reach per antenna added
  142. bens_communications_system.radio.config["jammerantennaincamount"] = 500
  143.  
  144. -- How many times should the user be able to upgrade the range, to calculate the total possible range do: jammerdefaultrange + (jammerantennaincamount*jammerantennainclimit)
  145. bens_communications_system.radio.config["jammerantennainclimit"] = 4
  146.  
  147. -- How much health should the jammer have without additional upgrades
  148. bens_communications_system.radio.config["jammerdefaulthealth"] = 500
  149.  
  150. -- How much should the user pay to improve the health of the jammer
  151. bens_communications_system.radio.config["jammerhealthincprice"] = 500
  152.  
  153. -- How much more health should the jammer gain per upgrade
  154. bens_communications_system.radio.config["jammerhealthincamount"] = 250
  155.  
  156. -- How many times should the user be able to upgrade the health, to calculate the total possible range do: jammerdefaultrhealth + (jammerhealthincamount*jammerhealthinclimit)
  157. bens_communications_system.radio.config["jammerhealthinclimit"] = 4
  158.  
  159.  
  160.  
  161.  
  162.  
  163. -- Panic Button (Both ent and command) and overall respondents
  164.  
  165. -- Panic button responding radio groups
  166. bens_communications_system.radio.config["panicbuttonresponders"] = {
  167. ["Government"] = true
  168. }
  169.  
  170. -- Contact Respondents Command, no need for the ! or /
  171. bens_communications_system.radio.config["panicbuttonrespondentscommand"] = "help"
  172.  
  173. -- Respondents Personal Panic Command, no need for the ! or /
  174. bens_communications_system.radio.config["panicbuttonrespondentspaniccommand"] = "panic"
  175.  
  176.  
  177. -- The amount of time the panic button stays on for when pressed
  178. bens_communications_system.radio.config["panicbuttonduration"] = 30
  179.  
  180. -- Should the panic button decativate when the user who pressed it dies, true = yes, false = no
  181. bens_communications_system.radio.config["panicbuttondeath"] = true
  182.  
  183. -- Does the panic button make a sound?
  184. bens_communications_system.radio.config["panicbuttonsound"] = true
  185.  
  186. -- If the panic button makes a sound, what is it's radius
  187. -- For reference this is what a distance of 250 looks like https://imgur.com/Y8jhxQP
  188. bens_communications_system.radio.config["panicbuttonsoundradius"] = 250
  189.  
  190. -- If the panic button makes a sound, what sound should it make?
  191. -- Here are the default sounds https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8f77.html
  192. bens_communications_system.radio.config["panicbuttonsoundpath"] = "ambient/alarms/city_firebell_loop1.wav"
  193.  
  194. -- Should the panic button only be resetable by the respondants? true = yes, false = no
  195. -- I'd reccomend only use this when the server has actual serious roleplay.
  196. bens_communications_system.radio.config["panicbuttonresetable"] = false
  197.  
  198. -- If players can reset the panic button on their own, how long should the cooldown be?
  199. bens_communications_system.radio.config["panicbuttoncooldown"] = 60
  200.  
  201. -- Should respondants themselves be able to do a command to start a 'panic'? true = yes, false = no
  202. bens_communications_system.radio.config["panicbuttonrespondantsbind"] = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement