Fantafaust Posted April 19, 2024 Posted April 19, 2024 I'm recreating my old Zoom Assist mod that lets you set separate mouse/controller sensitivities for scoped/iron sighted weapons when aiming down the sight. Back in the day, just getting and setting the sensitivity via ini functions was fine. But now with LStewieAl's tweaks, there's a new option for vertical sensitivity. tl;dr how can I check if that's enabled, and how can I access and set the value?
puddlepond Posted April 20, 2024 Posted April 20, 2024 Quote BEGIN GameMode float fValue If GetGameRestarted Set fValue to ReadINIFloatFromFile "Data\nvse\plugins\nvse_stewie_tweaks.ini" "Tweaks" "bSeperateHorizontalSensitivity" If fValue == 1 SetINIFloat "Tweaks:fVerticalSensitivity" [your value] "MyFolder\nvse_stewie_tweaks.ini" EndIf EndIf END Expand that should be fine? it's all hypothetical; i don't know if stewie's tweaks would let you set one of its values from a different (identically named) file in a different folder. the script above might not be 100% fit for your purpose but if it's possible at all it'd be down to some combination of ReadINIFloatFromFile and SetINIFloat functions.
Fantafaust Posted April 20, 2024 Author Posted April 20, 2024 Niiiice Thanks, these functions should be perfect
Recommended Posts