Fallout New Vegas
0 of 0

File information

Last updated

Original upload

Created by

justen99

Uploaded by

justen99

Virus scan

Safe to use

Tags for this mod

About this mod

This patch is all about preventing unwanted mouse wheel behavior when using vivanto's FPS Weapon Wheel mod.

Requirements
Permissions and credits
Changelogs
Mouse wheel behavior improvements for FPS Weapon Wheel:

This patch is all about preventing unwanted mouse wheel behavior when using FPS Weapon Wheel. Currently, it does the following:

  • Prevents the mouse wheel from altering 3rd person zoom without holding the vanity camera key ("F" by default), while still allowing you to adjust zoom with the mouse wheel as normal if desired, by holding the vanity key.
  • Prevents the mouse wheel from switching weapons while looting containers with Just Loot Menu and FPS Weapon Wheel active.

Hey! Isn't there already another mod that does this?

Sort of. The excellent FPS Weapon Wheel PLUS Looting Compatibility patch (by samaelaunweor) provides compatibility between FPS Weapon Wheel and Loot Menus, but the implementation is different in a few key ways:

  • My mod handles preventing unwanted camera zoom.
  • My mod merely checks for the visibility of certain HUD elements to handle loot menu compatibility (and currently only checks for Just Loot Menu, although I'll probably add more loot menu checks when I have time to test them individually). This might be an overly simplistic and heavy-handed approach on my part, but in practice it works well, and I'd rather keep my code additions simple.
  • My mod is a child esp for FPS Weapon Wheel's esp, rather than a replacer.
  • My mod doesn't suppress the loot menu on empty containers, and in fact doesn't alter any loot menu scripts or assets at all.

My mod is not intended to supersede FPS Weapon Wheel PLUS Looting Compatibility patch, but instead to provide an alternative for different use cases and user preferences.

Technical details:

Specifically, "Mouse wheel behavior improvements for FPS Weapon Wheel" changes three scripts from the FPS Weapon Wheel mod to prevent them from running while the Just Loot Menu HUD element is visible. The following code was added to V86wwWheelSCT, V86wwWheelHotbarSCT, and V86wwWheelListSCT at the top of their respective Game Mode blocks:

if getuifloat "HUDMainMenu/JLM/visible"
 return
endif

It also uses a JIP function to restrict using the mouse wheel to control the vanity camera so that it only works while the vanity camera key ("F" by default) is held, via the following code added to V86wwWheelSCT:

    if isControlPressed 13
        togglevanitywheel 1
    elseif togglevanitywheel
        togglevanitywheel 0
    endif

Otherwise, nothing is changed. This should work for both the standalone version of Just Loot Menu and the Just Mods Assorted version, and I plan on adding support for the older Loot Menus on the Nexus as well, for folks who prefer using those. This should also work regardless of whether you have any loot menus installed at all.