Advertisement
ReActif

config.reds

Nov 18th, 2022 (edited)
988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 6.17 KB | None | 0 0
  1. module ImprovedMinimapMain
  2.  
  3. // -- Here you can configure minimap zooom values and enable or disable the mod features
  4.  
  5. public class ZoomConfig {
  6.  
  7.     // -- BASE MINIMAP CONFIG --
  8.  
  9.     // -- Default in-game zoom values for reference:
  10.     //    Combat = 40
  11.     //    QuestArea = 25
  12.     //    SecurityArea = 40
  13.     //    Interior = 25
  14.     //    Exterior = 35
  15.     //    Vehicle = 100
  16.  
  17.     // Zoom value for active combat mode
  18.     @runtimeProperty("ModSettings.mod", "IZoom")
  19.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Static")
  20.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Combat")
  21.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Combat-Desc")
  22.     @runtimeProperty("ModSettings.step", "5")
  23.     @runtimeProperty("ModSettings.min", "20")
  24.     @runtimeProperty("ModSettings.max", "200")
  25.     let combat: Float = 60;
  26.  
  27.     // Zoom value for quest areas
  28.     @runtimeProperty("ModSettings.mod", "IZoom")
  29.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Static")
  30.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Quest")
  31.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Quest-Desc")
  32.     @runtimeProperty("ModSettings.step", "5")
  33.     @runtimeProperty("ModSettings.min", "20")
  34.     @runtimeProperty("ModSettings.max", "200")
  35.     let questArea: Float = 40;
  36.  
  37.     // Zoom value for restricted and dangerous areas
  38.     @runtimeProperty("ModSettings.mod", "IZoom")
  39.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Static")
  40.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Security")
  41.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Security-Desc")
  42.     @runtimeProperty("ModSettings.step", "5")
  43.     @runtimeProperty("ModSettings.min", "20")
  44.     @runtimeProperty("ModSettings.max", "200")
  45.     let securityArea: Float = 60;
  46.  
  47.     // Zoom value for interiors
  48.     @runtimeProperty("ModSettings.mod", "IZoom")
  49.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Static")
  50.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Interior")
  51.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Interior-Desc")
  52.     @runtimeProperty("ModSettings.step", "5")
  53.     @runtimeProperty("ModSettings.min", "20")
  54.     @runtimeProperty("ModSettings.max", "200")
  55.     let interior: Float = 40;
  56.  
  57.     // Zoom value for remained cases:
  58.     // not in interior, not in vehicle, not in security area, no active combat
  59.     @runtimeProperty("ModSettings.mod", "IZoom")
  60.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Static")
  61.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Exterior")
  62.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Exterior-Desc")
  63.     @runtimeProperty("ModSettings.step", "5")
  64.     @runtimeProperty("ModSettings.min", "20")
  65.     @runtimeProperty("ModSettings.max", "200")
  66.     let exterior: Float = 60;
  67.  
  68.     // -- MINIMAP PEEK HOTKEY CONFIG
  69.  
  70.     // Non-vehicle zoom increment value for peek mode
  71.     @runtimeProperty("ModSettings.mod", "IZoom")
  72.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Peek-Hotkey")
  73.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Peek-Increment")
  74.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Peek-Increment-Desc")
  75.     @runtimeProperty("ModSettings.step", "5")
  76.     @runtimeProperty("ModSettings.min", "20")
  77.     //@runtimeProperty("ModSettings.max", "200")
  78.     @runtimeProperty("ModSettings.max", "300")
  79.     let peek: Float = 40;
  80.  
  81.     // By default hotkey zooms minimap while you hold it and
  82.     // resets zoom when you release it, replace false with true here
  83.     // if you want to replace hold to zoom behavior with toggle by keypress
  84.     @runtimeProperty("ModSettings.mod", "IZoom")
  85.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Peek-Hotkey")
  86.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Peek-Toggleable")
  87.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Peek-Toggleable-Desc")
  88.     let replaceHoldWithToggle: Bool = false;
  89.  
  90.     // -- VEHICLE MINIMAP CONFIG --
  91.  
  92.     // This option enables vehicle minimap dynamic zoom based on speed
  93.     // If set to false then minimap will always use value from MinZoom option
  94.     @runtimeProperty("ModSettings.mod", "IZoom")
  95.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Max-Dynamic")
  96.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Max-Dynamic-Enable")
  97.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Max-Dynamic-Enable-Desc")
  98.     let isDynamicZoomEnabled: Bool = true;
  99.  
  100.     // MinSpeed and MaxSpeed values determine at which speeds dynamic zoom
  101.     // starts and stops, and MinZoom and MaxZoom values define zoom range itself
  102.  
  103.     // Minimal zoom value
  104.     @runtimeProperty("ModSettings.mod", "IZoom")
  105.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Max-Dynamic")
  106.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Min-Zoom")
  107.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Min-Zoom-Desc")
  108.     @runtimeProperty("ModSettings.step", "5")
  109.     @runtimeProperty("ModSettings.min", "20")
  110.     //@runtimeProperty("ModSettings.max", "200")
  111.     @runtimeProperty("ModSettings.max", "300")
  112.     let minZoom: Float = 80;
  113.  
  114.     // Speed threshold when zoom will start increasing from MinZoom
  115.     @runtimeProperty("ModSettings.mod", "IZoom")
  116.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Max-Dynamic")
  117.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Min-Speed")
  118.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Min-Speed-Desc")
  119.     @runtimeProperty("ModSettings.step", "5")
  120.     @runtimeProperty("ModSettings.min", "20")
  121.     @runtimeProperty("ModSettings.max", "200")
  122.     let minSpeed: Float = 20;
  123.  
  124.     // Maximal zoom value
  125.     @runtimeProperty("ModSettings.mod", "IZoom")
  126.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Max-Dynamic")
  127.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Max-Zoom")
  128.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Max-Zoom-Desc")
  129.     @runtimeProperty("ModSettings.step", "5")
  130.     @runtimeProperty("ModSettings.min", "20")
  131.     //@runtimeProperty("ModSettings.max", "200")
  132.     @runtimeProperty("ModSettings.max", "300")
  133.     let maxZoom: Float = 140;
  134.  
  135.     // Speed threshold when zoom will reach the value from MaxZoom
  136.     @runtimeProperty("ModSettings.mod", "IZoom")
  137.     @runtimeProperty("ModSettings.category", "Mod-IMZ-Max-Dynamic")
  138.     @runtimeProperty("ModSettings.displayName", "Mod-IMZ-Max-Speed")
  139.     @runtimeProperty("ModSettings.description", "Mod-IMZ-Max-Speed-Desc")
  140.     @runtimeProperty("ModSettings.step", "5")
  141.     @runtimeProperty("ModSettings.min", "20")
  142.     @runtimeProperty("ModSettings.max", "200")
  143.     let maxSpeed: Float = 120;
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement