Jump to content

Accessing LStewieAl tweaks via script


Recommended Posts

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?

 

 

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...