Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Core
- -- The command used to open the settings menu
- bens_communications_system.core.config["settingscommand"] = "bcomms"
- -- Whether or not people need to be wearing a headset or holding a radio swep to use the radio.
- bens_communications_system.core.config["radiorequirestech"] = true
- -- Whether or not people need to be wearing a headset or holding a radio swep to use the chat comms
- bens_communications_system.core.config["commsrequirestech"] = false
- -- Voice Amplifier
- -- 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.
- -- For reference with range, this is what a range of 250 looks like https://imgur.com/Y8jhxQP
- bens_communications_system.voiceamp.config["amprange"] = 250
- -- 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.
- bens_communications_system.voiceamp.config["ampvoicerange"] = 15000
- -- This is the list of players, ranks or jobs that are allowed to turn the voice amplifier on or off.
- hook.Add("loadCustomDarkRPItems","bens_communications_system_loadVoiceAmp",function()
- bens_communications_system.voiceamp.config["Allowed"] = {
- ["Ranks"] = {
- ["Super Admin"] = true,
- ["Admin"] = true
- ["Moderator"] = true
- ["Owner"] = true
- },
- ["Jobs"] = {
- [TEAM_OMEGANINER] = true
- },
- ["Players"] = {
- --["76561198170078598"] = false
- }
- }
- end)
- -- Quick Chat
- -- Quick Chat Binds Command (no need for the ! or / prefix)
- bens_communications_system.quickchat.config["chatcommand"] = "quickchat"
- -- Radio Addon
- -- These are your radio groups, players/jobs/ranks can be part of more than group at a time.
- -- 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.
- -- Storing them this way is more efficient for the server to compute.
- -- You have to have all four types of method checking even if you don't put anything in or it will error.
- -- 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.
- hook.Add("loadCustomDarkRPItems","bens_communications_system_loadRadioConfig",function()
- bens_communications_system.radio.config["RadioGroups"] = {
- ["Government"] = {
- ["Jobs"] = {
- [TEAM_OMEGANINER] = true,
- [TEAM_CLONETROOPER] = true
- },
- ["Ranks"] = {
- ["Owner"] = true
- ["Super Admin"] = true
- ["Admin"] = true
- ["Moderator"] = true
- },
- ["Players"] = {
- ["76561198170078598"] = true
- },
- ["CustomCheck"] = function(ply) return false end,
- ["Hackable"] = true
- },
- }
- -- don't question this bit xx
- for k,v in pairs(bens_communications_system.radio.config["RadioGroups"]) do
- if bens_communications_system.radio.config["RadioGroups"][k]["Jobs"] == nil then
- bens_communications_system.radio.config["RadioGroups"][k]["Jobs"] = {}
- end
- if bens_communications_system.radio.config["RadioGroups"][k]["Ranks"] == nil then
- bens_communications_system.radio.config["RadioGroups"][k]["Ranks"] = {}
- end
- if bens_communications_system.radio.config["RadioGroups"][k]["Players"] == nil then
- bens_communications_system.radio.config["RadioGroups"][k]["Players"] = {}
- end
- if bens_communications_system.radio.config["RadioGroups"][k]["CustomCheck"] == nil then
- bens_communications_system.radio.config["RadioGroups"][k]["CustomCheck"] = function (ply) return false end
- end
- end
- end)
- -- question whatevers next xx
- -- 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.
- bens_communications_system.radio.config["uioffsetx"] = 0.5
- -- 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.
- -- This is mainly for servers with over the top huds. It looks weird overwise.
- bens_communications_system.radio.config["uioffsety"] = 0
- -- Radio Jammer Upgrades
- -- For reference with range, this is what a range of 500 looks like https://imgur.com/tR2MpD6
- -- 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.
- bens_communications_system.radio.config["jammerfreqsplitterprice"] = 10000
- -- 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.
- bens_communications_system.radio.config["jammeradvcircuitboardprice"] = 10000
- -- How long should the radio jammer last without any upgrades, in seconds
- bens_communications_system.radio.config["jammerinitialbattery"] = 60
- -- How much should the user pay to improve the battery
- bens_communications_system.radio.config["jammerbatteryincprice"] = 500
- -- How much longer, in seconds, should the duration of the jammer be for each battery upgrade purchased
- bens_communications_system.radio.config["jammerbatteryincamount"] = 50
- -- How many times should the user be able to upgrade the battery, to calculate the total possible duration do: jammerinitialbattery + (jammerbatteryincamount * jammerbatteryinclimit)
- bens_communications_system.radio.config["jammerbatteryinclimit"] = 5
- -- How far should the jammer reach without additional upgrades
- bens_communications_system.radio.config["jammerdefaultrange"] = 500
- -- How much should the user pay to improve the range by adding antenna
- bens_communications_system.radio.config["jammerantennaincprice"] = 500
- -- How much further should the jammer reach per antenna added
- bens_communications_system.radio.config["jammerantennaincamount"] = 500
- -- How many times should the user be able to upgrade the range, to calculate the total possible range do: jammerdefaultrange + (jammerantennaincamount*jammerantennainclimit)
- bens_communications_system.radio.config["jammerantennainclimit"] = 4
- -- How much health should the jammer have without additional upgrades
- bens_communications_system.radio.config["jammerdefaulthealth"] = 500
- -- How much should the user pay to improve the health of the jammer
- bens_communications_system.radio.config["jammerhealthincprice"] = 500
- -- How much more health should the jammer gain per upgrade
- bens_communications_system.radio.config["jammerhealthincamount"] = 250
- -- How many times should the user be able to upgrade the health, to calculate the total possible range do: jammerdefaultrhealth + (jammerhealthincamount*jammerhealthinclimit)
- bens_communications_system.radio.config["jammerhealthinclimit"] = 4
- -- Panic Button (Both ent and command) and overall respondents
- -- Panic button responding radio groups
- bens_communications_system.radio.config["panicbuttonresponders"] = {
- ["Government"] = true
- }
- -- Contact Respondents Command, no need for the ! or /
- bens_communications_system.radio.config["panicbuttonrespondentscommand"] = "help"
- -- Respondents Personal Panic Command, no need for the ! or /
- bens_communications_system.radio.config["panicbuttonrespondentspaniccommand"] = "panic"
- -- The amount of time the panic button stays on for when pressed
- bens_communications_system.radio.config["panicbuttonduration"] = 30
- -- Should the panic button decativate when the user who pressed it dies, true = yes, false = no
- bens_communications_system.radio.config["panicbuttondeath"] = true
- -- Does the panic button make a sound?
- bens_communications_system.radio.config["panicbuttonsound"] = true
- -- If the panic button makes a sound, what is it's radius
- -- For reference this is what a distance of 250 looks like https://imgur.com/Y8jhxQP
- bens_communications_system.radio.config["panicbuttonsoundradius"] = 250
- -- If the panic button makes a sound, what sound should it make?
- -- Here are the default sounds https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8f77.html
- bens_communications_system.radio.config["panicbuttonsoundpath"] = "ambient/alarms/city_firebell_loop1.wav"
- -- Should the panic button only be resetable by the respondants? true = yes, false = no
- -- I'd reccomend only use this when the server has actual serious roleplay.
- bens_communications_system.radio.config["panicbuttonresetable"] = false
- -- If players can reset the panic button on their own, how long should the cooldown be?
- bens_communications_system.radio.config["panicbuttoncooldown"] = 60
- -- Should respondants themselves be able to do a command to start a 'panic'? true = yes, false = no
- bens_communications_system.radio.config["panicbuttonrespondantsbind"] = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement