JiaqinKang / apexNoRecoilMarco

全自动武器检测apex压枪宏/Fully Weapon detection apex marco no recoil
322 stars 42 forks source link

How change Sensitivity? #91

Closed sorcerb closed 1 month ago

sorcerb commented 1 month ago

Hello, how to change the default sensitivity 1.6? The best option for no recoil is 1.2, but for normal play it is too small, I need about 4-5? Changing the mouse DPI helps a little, but the mouse will be too fast on the loot box.

JiaqinKang commented 1 month ago

Unfortunately, scripts are recorded with fixed in-game sensitivity. You can increase it by about 2.40, but you will lose some stability as changing the mouse dpi does not seem to work for you.
I suggest you try to find your best in-game sensitivity and mouse dpi. There is some tolerance.

sorcerb commented 1 month ago

I'm not strong in Lua, I work more with C#. But maybe somewhere it is possible to use some kind of multiplier? For example, for the current mouse movements = 1, and who want increases it by 2 or 3 times, increase this multiplier in the script. I'll try to look. Maybe you can answer in advance - is it possible to enter such a multiplier, even if it will be necessary to change many lines? Or it will not work here? Thank you!

I don't know this is the right place in lua, but somethink like:

m = 1;
_Lstar_offset_list = {
    {1 ,7*m,7*m,4*m}, {2 ,6*m,7*m,4*m}, {3 ,6*m,7*m,4*m},
...
JiaqinKang commented 1 month ago

There is no such multiplier variable. Just increase your mouse dpi or game dpi, as I said. Otherwise, you have to adjust all the recoil patterns manually.

sorcerb commented 1 month ago

I create this function and add it to each "if" in ToGun function. It work well for sensetivity = 2, but when I use 0.5 it work but sometimes not quite accurately. But it help to me, I use 3,6 in game. And set variable to sensitivity = 0.5 May be it help somebody...

function setSens(tbl2)

    for i = 1, #tbl2 do
        tbl2[i][2] = tbl2[i][2] * sensitivity
        tbl2[i][3] = tbl2[i][3] * sensitivity
    end

    return tbl2;
end

if qx1 == "R301" then
        R301_offset_list = setSens(R301_offset_list)
        R301_offset_trim_list = setTbl(R301_offset_trim_list, R301_offset_list, text_R301)  // <<< add it here >>>
        return R301_offset_list, R301_offset_time, "R301", text_R301,
               R301_offset_trim_list, R301_offset_trim_ratio,
               R301_offset_trim_amend;
JiaqinKang commented 1 month ago

I create this function and add it to each "if" in ToGun function. It work well for sensetivity = 2, but when I use 0.5 it work but sometimes not quite accurately. But it help to me, I use 3,6 in game. And set variable to sensitivity = 0.5 May be it help somebody...

function setSens(tbl2)

    for i = 1, #tbl2 do
        tbl2[i][2] = tbl2[i][2] * sensitivity
        tbl2[i][3] = tbl2[i][3] * sensitivity
    end

    return tbl2;
end

if qx1 == "R301" then
        R301_offset_list = setSens(R301_offset_list)
        R301_offset_trim_list = setTbl(R301_offset_trim_list, R301_offset_list, text_R301)  // <<< add it here >>>
        return R301_offset_list, R301_offset_time, "R301", text_R301,
               R301_offset_trim_list, R301_offset_trim_ratio,
               R301_offset_trim_amend;

have you worked out the ratio maybe that will help determining the right number for your adjusting value

sorcerb commented 1 month ago

Ya, it work not fine. Last question, where stored recoil patterns? May be I try create my own, if it possible. Is it dll or java? Thank you!