DiablosCorp

citybus_config.lua

Apr 28th, 2018 (edited)
1,300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 12.16 KB | None | 0 0
  1. -- [[ Addon by Diablos | Version 3 ]] --
  2. -- [[ SteamID64 of the buyer: {{ user_id }}. Hoping you like the addon. ]] --
  3. -- [[ This is the configuration file. ]] --
  4.  
  5. -- [[ /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\      DON'T TOUCH ALL OF THIS      /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ ]] --
  6. Diablos = Diablos or {}
  7. Diablos.CS = {}
  8. Diablos.CS.Colors = {}
  9. Diablos.CS.Download = {}
  10. Diablos.CS.Strings = {}
  11. -- [[ /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ NOW YOU CAN EDIT THE THINGS BELOW /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\ ]] --
  12.  
  13. -- [[ General Configuration ]] --
  14.  
  15.     Diablos.CS.Language = "english" -- Language of the script. Available languages are written at http://diabloscoder.com/languages.
  16.  
  17.     Diablos.CS.AdminGroups = {"superadmin", "admin"} -- Groups which can open the admin frames.
  18.  
  19.     Diablos.CS.BusDriverTeam = "Bus driver" -- Name of the bus driver job. You must create it in your jobs file then put his name.
  20.  
  21.     Diablos.CS.VehicleClass = "sligwolf_bus" -- Classname of the bus vehicle (right click on the vehicle and copy to clipboard in the Q menu to have the class of a vehicle).
  22.  
  23.     Diablos.CS.VehicleSkin = 0 -- Skin of the vehicle. If you don't want to change the skin, put this value to 0.
  24.  
  25.     Diablos.CS.BusDriverSalary = 500 -- Bus driver salary received.
  26.  
  27.     /* The salary can be received by two ways: by time or by amount of bus stops reached. Read comments below */
  28.  
  29.         Diablos.CS.TimeMoney = 0 -- Time (in minutes) between each salary the bus driver will receive. If you set this to 0, then the bus driver will receive the money after a certain amount of bus stop you configure the line below.
  30.  
  31.         Diablos.CS.AmountBusStop = 3 -- If Diablos.CS.TimeMoney is set to 0: this is the amount of bus stops to pass to receive your salary.
  32.  
  33.     /* By default, you receive money each time you reach 3 bus stops */
  34.  
  35.     Diablos.CS.BusPrice = 200 -- Price the bus driver must pay if he wants to spawn his bus vehicle. 0 to disable.
  36.  
  37.     Diablos.CS.AutoEnterVehicle = true -- true = the bus driver enters automatically in the bus when he took it on the frame.
  38.  
  39.     Diablos.CS.TicketSystem = true -- true = enable the ticket system (people enter in the bus driver then they click on a key to request a "virtual" ticket at the bus driver).
  40.  
  41.     -- [[ If Diablos.CS.TicketSystem is set to true ]] --
  42.  
  43.         Diablos.CS.TicketPrice = 10 -- Price of the ticket when a bus driver will sell one.
  44.  
  45.         Diablos.CS.TicketKey = IN_RELOAD -- Key the man must press to request a ticket (default: reload key (R)). You must put a IN enumeration, more informations at "http://wiki.garrysmod.com/page/Enums/IN".
  46.  
  47.     -- [[ End of this If ]] --
  48.  
  49.     Diablos.CS.EjectFromVehSystem = true -- true = enable an "eject from vehicle" system (the bus driver can eject people he wants from his own vehicle (this is for AFK people or those who disturbe people inside the vehicle)).
  50.  
  51.     Diablos.CS.CitybusPanelPosX = 0.7 -- CENTERED (which means 0.5 makes the citybus panel in a PERFECT center) X pos of the citybus panel. The value must be at least between 0 and 1, 0 at the left and 1 at the right.
  52.  
  53.     Diablos.CS.CitybusPanelPosY = 0.05 -- Y pos of the citybus panel. The value must be between 0 and 1, 0 at the top and 1 at the bottom.
  54.  
  55.     Diablos.CS.BusStopPanelText = "Managed by Diablos" -- If you have enough space in the bus schedule panel, this is a text written in the bottom-right. Leave empty if you don't want to write something.
  56.    
  57.     Diablos.CS.BusStopBehindPanelText = "       THE EASIEST               SOLUTION FOR A                  PROPER                     ENVIRONMENT"
  58.     -- This is a text written in the bottom behind the bus stop (on the default bus stop atleast!). Unfortunately you need to add spaces if you want your text to be perfectly centered due to Markup gmod limitation!
  59.  
  60.     Diablos.CS.ShowWireframeBoxes = false -- true means wireframe boxes near the bus stop will be shown (when you are a bus driver), as a way to help you. Since it doesn't work on every model, default value is set to false.
  61.  
  62.     Diablos.CS.HidePanelKey = IN_ATTACK -- Key to show/hide the citybus panel. You must put a IN enumeration, more informations at "http://wiki.garrysmod.com/page/Enums/IN".
  63.  
  64.     -- [[ If Diablos.CS.HidePanelKey isn't set to nil ]] --
  65.  
  66.         Diablos.CS.CitybusPanelText = "Show/hide the panel: Left Click (in your bus)" -- The text at the bottom right of the citybus panel where the key to show/hide the panel is written. "" to leave empty.
  67.  
  68.     -- [[ End of this If ]] --
  69.  
  70.     Diablos.CS.PlayersNeeded = 0 -- Number of players that the server needs to begin a bus driver mission (to avoid that the player will earn money if there is nobody in the server). 0 to disable.
  71.  
  72.     Diablos.CS.ChangeLineWhenLastStop = true -- true means when a bus driver reaches the last bus stop of his line, he will pass on the next line | false means it will loop rebeginning with the first bus stop of his initial line.
  73.  
  74.     Diablos.CS.ChangeLineOnPanel = true -- true means he is able to change his line using the menu at any moment thanks to his bus driver panel. false = he can't change it (line will change if end of a specific line if it's at true above OR it only depends on the first choice)
  75.  
  76.     -- [[ If Diablos.CS.ChangeLineOnPanel is set to true ]] --
  77.  
  78.         -- When changing your line, it restarts to the first bus stop of the specific line. A bus driver could change from a line to another and being on the first bus stop to generate money. This value is here to avoid that!
  79.         Diablos.CS.ChangeLineFloodTime = 300 -- Numbers of seconds to prevent flood
  80.  
  81.     -- [[ End of this If ]] --
  82.  
  83.     Diablos.CS.Optimization = 200 -- Value for optimization. The lower the value will be, near a bus stop the player will have to be to see the bus schedule.
  84.  
  85.     Diablos.CS.BusStopModel = "models/alien_nl/busstop/busstop.mdl" -- Model of the bus stop. Default is "models/alien_nl/busstop/busstop.mdl" -> in TPCSA content! For Sligwolf it would have been "models/sligwolf/bus_bendi/bus_stop.mdl"
  86.     /* For the Sligwolf bus stop model, remove e next comment line */
  87.     // Diablos.CS.BusStopModel = "models/sligwolf/bus_bendi/bus_stop.mdl" -- Model of the bus stop. Default is "models/alien_nl/busstop/busstop.mdl" -> in TPCSA content! For Sligwolf it would have been "models\sligwolf\bus_bendi\bus_stop.mdl"
  88.  
  89.     /* For having a bus stop display as a bus stop (USEFUL if you already have bus stops on the map), remove the next comment line */
  90.     // Diablos.CS.BusStopModel = "models/tpcsa/bus_stop_display/bus_stop_display.mdl"
  91.  
  92.     Diablos.CS.BusStopParameters = {
  93.         // This table manages the design depending on the bus stop you're using. There's currently two bus stopes, to add them use the syntax and deal with values (refresh the design automatically)
  94.  
  95.         ["models/alien_nl/busstop/busstop.mdl"] = {
  96.             rightVal = 73.7,
  97.             upVal = 74.9,
  98.             forVal = 22,
  99.             forDiff = 1,
  100.             gap = 6.1,
  101.             size = 0.05,
  102.             attachPos = Vector(31.7, -3, 92),
  103.             attachForVal = 31.5,
  104.             attachRightVal = 79.5,
  105.             attachUpVal = 95,
  106.             containsBusAdv = true,
  107.         },
  108.  
  109.         ["models/sligwolf/bus_bendi/bus_stop.mdl"] = {
  110.             // I suggest not using it for transparent issues there could have
  111.             rightVal = 122,
  112.             upVal = 89,
  113.             forVal = 51,
  114.             forDiff = 42,
  115.             gap = 5,
  116.             size = 0.07,
  117.             attachPos = Vector(62, -3, 100),
  118.             attachForVal = 62,
  119.             attachRightVal = 79.5,
  120.             attachUpVal = 104,
  121.             containsBusAdv = false,
  122.         },
  123.  
  124.         ["models/tpcsa/bus_stop_display/bus_stop_display.mdl"] = {
  125.             rightVal = -2.2,
  126.             upVal = 112.2,
  127.             forVal = 32.1,
  128.             forDiff = 0,
  129.             gap = 4.4,
  130.             size = 0.075,
  131.             attachPos = Vector(31.7, -3, 92),
  132.             attachForVal = 31.5,
  133.             attachRightVal = 79.5,
  134.             attachUpVal = 95,
  135.             containsBusAdv = true,
  136.         },
  137.     }
  138.  
  139.     /*
  140.     The addon includes a bus display panel, which is a large sign available in Entities as a "Bus Preview Panel". It can be placed around maps, and show the same thing
  141.     as what you see in a bus stop, meaning the panel with bus stops. However, the bus preview panel changes from line 1 to line x.
  142.     */
  143.  
  144.     /* Bus display parameters */
  145.  
  146.     Diablos.CS.BusDisplaySwitchTime = 8 -- Amount of seconds for switching from one line to another, as explained on the comment above
  147.  
  148.     /* NPC parameters */
  149.  
  150.     Diablos.CS.NPCModel = "models/gman.mdl" -- Model of the NPC.
  151.  
  152.     Diablos.CS.NPCHeadMessage = "BUS DRIVER BOARD" -- Message ('title') above the NPC. "" to disable.
  153.  
  154.     /* If you don't want to use the NPC Toolgun to have custom zone by NPC, then these two values are useful otherwise let them! */
  155.  
  156.     Diablos.CS.CustomNPCVehVec = Vector(0, 0, 0) -- Position for the vehicle spawn. Type "getpos" in your client console and retrieve the three first values, then separate them with commas in the Vector() function.
  157.  
  158.     Diablos.CS.CustomNPCVehAng = Angle(0, 0, 0) -- Angle for the vehicle spawn. Type "getpos" in your client console and retrieve the three last values, then separate them with commas in the Angle() function.
  159.  
  160.  
  161. -- [[ Color Theme Configuration ]] --
  162.  
  163.     -- [[ Colors of frames related things ]] --
  164.  
  165.         Diablos.CS.Colors.Blurs = true -- true = enable blur effects (around the frames NOT in them).
  166.  
  167.         Diablos.CS.Colors.Frame = Color(50, 50, 50, 200) -- Color of the frame.
  168.  
  169.         Diablos.CS.Colors.Panel = Color(100, 100, 100, 40) -- Color of the panels in the frame.
  170.  
  171.         Diablos.CS.Colors.Header = Color(80, 140, 80, 200) -- Color of the headers.
  172.  
  173.         Diablos.CS.Colors.Buttons = Color(60, 120, 60, 150) -- Color of the buttons (including accept button of the ticket request frame).
  174.  
  175.         Diablos.CS.Colors.VBarGrip = Color(40, 120, 40, 120) -- Color of the vertical bar grip.
  176.  
  177.         Diablos.CS.Colors.VBarBG = Color(75, 75, 75, 255) -- Color of the vertical bar background.
  178.  
  179.         Diablos.CS.Colors.Label = Color(220, 220, 220, 220) -- Color of the labels (text in frames).
  180.  
  181.         Diablos.CS.Colors.LabelHovered = Color(50, 50, 50, 220) -- If it's a button, color of the labels when they are in the "hovered" mode (there is the mouse on the label).
  182.  
  183.         Diablos.CS.Colors.LabelDown = Color(0, 0, 0, 220) -- If it's a button, color of the labels when they are in the "down" mode (you press left click on the label).
  184.  
  185.     -- [[ Colors of HUD / vehicle / NPC ]] --
  186.  
  187.         Diablos.CS.Colors.HUDInfos = Color(200, 200, 200, 250) -- Color of the HUD informations when you begin a bus driver mission and you have the indication of where you must go.
  188.  
  189.         Diablos.CS.Colors.Vehicle = Color(255, 255, 255, 255) -- Color of the bus driver vehicle.
  190.  
  191.         Diablos.CS.Colors.NPCHeadText = Color(230, 230, 230, 250) -- Color of the 'title' above the NPC.
  192.  
  193.         Diablos.CS.Colors.NPCHeadBorder = Color(50, 50, 50, 200) -- Color of the borders around the 'title' of the NPC.
  194.  
  195.     -- [[ Colors of the bus schedule on the bus stop ]] --
  196.  
  197.         Diablos.CS.Colors.LinesDestination = Color(100, 50, 20, 240) -- Color of lines (a bit red by default) who frame the destinations.
  198.  
  199.         Diablos.CS.Colors.BoxesIsGoing = Color(150, 100, 50, 255) -- Color of the box around a destination when a bus driver is going to this destination.
  200.  
  201.         Diablos.CS.Colors.BackgroundDestination = Color(160, 160, 160, 255) -- Color of the background of every destination (by default almost white).
  202.  
  203.         Diablos.CS.Colors.BoxesCurrent = Color(100, 200, 100, 255) -- Color of the box around the current bus stop. It's also the outline color around the bus schedule.
  204.  
  205.     -- [[ Colors of the citybus panel at the top of the screen of the bus drivers ]] --
  206.  
  207.         Diablos.CS.Colors.BackgroundAroundP = Color(70, 150, 70, 150) -- Color of the background around the citybus panel (green by default).
  208.  
  209.         Diablos.CS.Colors.BackgroundBaseP = Color(150, 150, 150, 150) -- Color of the background and the panels.
  210.  
  211.         Diablos.CS.Colors.LinesP = Color(255, 255, 255, 150) -- Color of the lines.
  212.  
  213.         Diablos.CS.Colors.LabelP = Color(0, 0, 0, 255) -- Color of the texts.
  214.  
  215.         Diablos.CS.Colors.ButtonsPause = Color(250, 50, 50, 100) -- Color of the bus pause button when the bus driver is in the "stop work state" (almost red by default). Also the color of "decline" button in the ticket request frame.
  216.  
  217. -- [[ Content Download Configuration ]] --
  218.  
  219.     Diablos.CS.Download.FastDL = false -- true = clients install the contents via FastDL.
  220.  
  221.     Diablos.CS.Download.Workshop = true -- true = clients install the contents via Workshop.
  222.  
  223. -- [[ End of the configuration file ]] --
  224.  
  225. TPCSAExtensions() -- DO NOT DELETE THIS LINE. This line updates the language strings and some informations of the addon.
Add Comment
Please, Sign In to add comment