Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 1.7
Use sliders instead of drag fields, update UI layout to match with my other mods
Version 1.6b
(1.6) Improved code that prevents game seeing LeftBumper + RStick inputs while moving camera, now only hides RStick up/down from game while all other inputs are still passed to it
(1.6) Improved gamepad handling, changed binding to LeftBumper + RStick, RStick analog value now also affects camera speed
(1.6) Added options to ignore/require/disallow CTRL key, disallow can be useful if using another mod that uses CTRL+Wheel, see REFramework overlay for more info.
(1.6) Added UI button to reset config back to defaults
(1.6a) Minor code optimizations, reorganized code to all get handled under single UpdateHID entrypoint
(1.6a) Added modinfo.ini to support installing via Fluffy Mod Manager
Fixed runtime error in 1.6a caused by function being moved, which only appeared when certain other scripts aren't active - thanks to Whosad, ssshuyu & Pyr0blad3 for reporting.
Version 1.6a
Minor code optimizations, reorganized code to all get handled under single UpdateHID entrypoint
Added modinfo.ini to support installing via Fluffy Mod Manager
Version 1.6
Added options to ignore/require/disallow CTRL key, disallow can be useful if using another mod that uses CTRL+Wheel, see REFramework overlay for more info.
Improved gamepad handling, changed binding to LeftBumper + RStick, RStick analog value now also affects camera speed
Improved code that prevents game seeing LeftBumper + RStick inputs while moving camera, now only hides RStick up/down from game while all other inputs are still passed to it
Added UI button to reset config back to defaults
Version 1.5
Hides gamepad inputs from the game while camera distance is being changed
Changed gamepad binding to RightTrigger + RightStickUp/RightStickDown
Added keyboard binds for changing distance, defaults to Up/Down arrow keys, can be changed inside LUA/JSON file.
Version 1.4a
Improved UI to be readable without needing to resize overlay
Updated gamepad code to use Wheel Step Distance setting properly
Version 1.4
Added support for changing distance with gamepad, by pressing LS + LT/RT (press both triggers to reset)
Changed from ALT+MouseWheel -> CTRL+MouseWheel, in hopes of other mousewheel mods adding similar code to allow using CTRL+MouseWheel or ignore CTRL+MouseWheel inputs...
Will now save current camera distance when "Save Config" is pressed in REFramework overlay
Minor improvements to UI detection & other code
Version 1.3
Slightly improved menu detection, now skips changing camera when in conversations fine.
Version 1.2
Now skips changing camera distance if any menu is open (can use scrollwheel on menus without it affecting camera)
Added RequireAltKey setting, if enabled then ALT must be held for scrollwheel to be applied.
Added script GUI to REFrameworks overlay, camera distances/speeds/etc can now be tweaked during gameplay via the "Script Generated UI" section, changes can also be saved/reloaded.
Version 1.1
Added interpolation to smooth out the distance changes a little, instead of them instantly snapping to each change
Now resets camera if middle-click is pressed (can be disabled by editing LUA)
Allows smoothly changing camera distance via mousewheel & gamepad analog stick.
Bindings
Mouse: Mousewheel to zoom in/out, middle-click to reset camera (can optionally require CTRL key, to allow usage with other mousewheel mods)
Keyboard: Up/Down arrow keys to zoom in/out (can be changed inside LUA/JSON file)
Gamepad: LeftBumper + RightStickUp/RightStickDown to zoom in/out, press RightStick to reset camera
Setup
Install REFramework onto your game
Extract the MouseWheelCamera ZIP into your game folder root (or add ZIP to Fluffy Mod Manager & enable it)
Run the game, and once loaded in try using the mousewheel or Up/Down arrow keys, should adjust the camera for you fine.
Gamepads can also adjust camera distance by using LeftBumper + RightStickUp/RightStickDown to zoom in/out.
Camera speed/max distance/etc can be tweaked during gameplay via the REFramework overlay "Script Generated UI" section (double-click a value to allow setting it directly)
Your current distance can be saved via the "Save Config" button in REFramework overlay, otherwise the distance will be reset when relaunching the game.
To uninstall just delete the dd2_mousewheel_cameradistance.lua file from the reframework\autorun\ folder.
Compatibility
Should be compatible with "Mouse Wheel Movement Speed Grand Cruise Control", you can set "use_ctrl_as_modifier = true" in that mod & then set "CTRL Key Behavior: Disallow" in this mod, and with that camera can be controlled with mousewheel & movement speed with ctrl+wheel.
The opposite should work with it too, you can set this mod to "CTRL Key Behavior: Require" and set "use_ctrl_as_modifier = false" in the movement speed mod, so that wheel will affect move speed & ctrl+wheel will affect camera.
Other Mods
Disable Mouse Acceleration - Disable the mouse deceleration when making slower mouse movements. ShutUpPawns! - Block repetitive annoying dialogues, block pawn high-fives, uBlock Origin for pawns. Dialogue Auto Advance - Allows dialogue to advance naturally, no need to keep pressing Next each time.