Advertisement
GlorifiedPig

GlorifiedMap Default Config

May 5th, 2017
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.43 KB | None | 0 0
  1.  
  2. glorifiedMap.config.DEBUG_ENABLED = false -- Whether or not debug mode should be enabled
  3.  
  4. glorifiedMap.config.USE_WORKSHOP_CONTENT_PACK = true -- Whether the default workshop content pack should be downloaded by the clients; this includes map icons
  5.  
  6. glorifiedMap.config.DEFAULT_LOCATION_TEXTURE = "glorifiedmap/mapicon/blank.png" -- The default point of interest texture (if not defined)
  7. glorifiedMap.config.DEFAULT_LOCATION_COLOUR = Color( 255, 255, 255 ) -- The default location colour texture (if not defined)
  8.  
  9. glorifiedMap.config.COMPASS_WIDTH = 200 -- The width of the compass (used in the navigation system)
  10. glorifiedMap.config.COMPASS_HEIGHT = 200 -- The height of the compass
  11. glorifiedMap.config.COMPASS_MARGIN_BOTTOM = 20 -- The bottom margin of the compass
  12. glorifiedMap.config.COMPASS_VISUAL_UNIT_OF_LENGTH = "m" -- The unit of length in the compass, example if you set it to ft it will be '100ft' instead of '100m'
  13. glorifiedMap.config.COMPASS_DISTANCE_DESTINATION_REACHED = 100 -- How far should you be for the compass to disappear/reach your destination
  14. glorifiedMap.config.COMPASS_MODEL = "models/maxofs2d/lamp_flashlight.mdl" -- What the navigation compass should look like on the hud
  15.  
  16. glorifiedMap.config.DEFAULT_NAVIGATION_MARKER_TEXTURE = "glorifiedmap/mapicon/marker.png" -- The navigation marker texture for when you right click to make a marker
  17. glorifiedMap.config.DEFAULT_NAVIGATION_MARKER_COLOUR = Color( 255, 255, 255 ) -- The navigation marker colour for when you right click to make a colour
  18.  
  19. glorifiedMap.config.KEY_BIND = KEY_M -- Pick any key from this list to toggle the panel: http://wiki.garrysmod.com/page/Enums/BUTTON_CODE
  20. glorifiedMap.config.KEY_BIND_NICENAME = "M" -- The nice name that appears in the notifications.
  21. glorifiedMap.config.KEY_BIND_NOTIFICATION = true -- Whether or not to show a hint on how to open the map (the key)
  22. glorifiedMap.config.NOTIFICATION_LENGTH_TIME = 5 -- What time the notification should be visible in seconds
  23. glorifiedMap.config.NOTIFICATION_DELAY_TIME = 60 -- The time between showing notifications in seconds
  24.  
  25. glorifiedMap.config.MAP_DRAG_DELTA_MANUAL_DIFF = 5 -- This simulates the same behaviour as when you drag to change the render origin of the map
  26.  
  27. glorifiedMap.config.PANEL_MARGIN = 100 -- Margin aroun the GlorifiedMap panel
  28. glorifiedMap.config.PANEL_LEGEND_PADDING = 10 -- Padding between the Legend and the items within
  29.  
  30. glorifiedMap.config.POI_CREATION_TITLE_HELP_TEXT = "Think of a catchy title for your Point of Interest:" -- Text used in the POI creation panel
  31. glorifiedMap.config.POI_CREATION_IS_PUBLIC_HELP_TEXT = "Should your Point of Interest be visible to anyone?"
  32.  
  33. glorifiedMap.config.POI_TITLE_MIN_LENGTH = 3 -- Minimum length of a POI title
  34. glorifiedMap.config.POI_TITLE_MAX_LENGTH = 15 -- Maximum length of a POI title
  35.  
  36. --[[ By default, GlorifiedMap hides all entities to prevent abuse.
  37. Add entities below (such as 'prop_physics') to whitelist them to make them appear again. ]]--
  38. glorifiedMap.config.ENTITY_WHITELIST = {
  39.     [ "prop_physics" ] = true,
  40.  
  41.     -- doors
  42.     [ "func_door" ] = true,
  43.     [ "func_door_rotating" ] = true,
  44.     [ "prop_door_rotating" ] = true,
  45.     [ "func_movelinear" ] = true,
  46.     [ "prop_dynamic" ] = true,
  47.  
  48.     [ "prop_static" ] = true,
  49.  
  50.     -- vehicles
  51.     [ "prop_vehicle_jeep" ] = true,
  52. }
  53. glorifiedMap.config.ENTITY_WHITELIST_IS_BLACKLIST = false -- Whether the whitelist above is a blacklist instead
  54.  
  55. glorifiedMap.config.SHOULD_DRAW_LOCATIONS = true
  56. glorifiedMap.config.SHOULD_DRAW_LEGEND = true
  57.  
  58. glorifiedMap.config.TEAM_WHITELIST_ENABLED = false -- Whether the usergroup whitelist is enabled
  59. glorifiedMap.config.TEAM_WHITELIST = { -- What teams are in the whitelist
  60.     [ "Mayor" ] = true,
  61.     --[ "Hobo" ] = true,
  62. }
  63. glorifiedMap.config.TEAM_WHITELIST_IS_BLACKLIST = false -- Whether the team whitelist is a blacklist
  64.  
  65. glorifiedMap.config.USERGROUP_WHITELIST_ENABLED = false -- Whether the usergroup whitelist is enabled
  66. glorifiedMap.config.USERGROUP_WHITELIST = { -- What usergroups are in the whitelist
  67.     [ "vip" ] = true,
  68.     --[ "supervip" ] = true,
  69. }
  70. glorifiedMap.config.USERGROUP_WHITELIST_IS_BLACKLIST = false -- Whether the usergroup whitelist is a blacklist
  71.  
  72. glorifiedMap.config.MAP_MIN_RENDER_SCALE = { -- The maximum zoom level per map
  73.     [ "rp_downtown_v4c_v2" ] = 2,
  74.     [ "rp_downtown_v4c_v4" ] = 2,
  75.     [ "rp_downtown_v4c_v4_sewers" ] = 2,
  76.     [ "gm_flatgrass" ] = 2,
  77. }
  78.  
  79. glorifiedMap.config.MAP_MAX_RENDER_SCALE = 10 -- The minimum zoom level
  80.  
  81. --[[ The hook below is for you to add custom Point of Interests.
  82. If you wish to view a tutorial on how to create custom Point of Interests, please view this YouTube video:
  83. https://www.youtube.com/watch?v=M6PB_l4Z5vo ]]--
  84. hook.Add( "glorifiedMap.registerLocations", glorifiedMap.IDENTIFIER, function()
  85.  
  86.     glorifiedMap.registerLocation( {
  87.         name = "Police Department",
  88.         texture = "glorifiedmap/mapicon/policebadge.png",
  89.         color = Color( 30, 144, 255 ),
  90.         position = Vector( -1370, 112, -131 ),
  91.         maps = {
  92.             "rp_downtown_v2",
  93.             "rp_downtown_v4c_v2",
  94.             "rp_downtown_v4c_v4"
  95.         }
  96.     } )
  97.  
  98.     glorifiedMap.registerLocation( {
  99.         name = "Local Player",
  100.         texture = "glorifiedmap/mapicon/user.png",
  101.         color = function()
  102.             return team.GetColor( LocalPlayer():Team() )
  103.         end,
  104.         position = function()
  105.             return LocalPlayer():GetPos()
  106.         end
  107.     } )
  108.  
  109. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement