查看: 4519|回复: 32

[辅助工具] 简单好用的绝地求生自动压抢/大跳/适合所有鼠标

[复制链接]
发表于 2017-10-17 07:16 | 显示全部楼层 |阅读模式
开门查水表 2017-10-17 07:16 4519 32 显示全部楼层
国外论坛拿回来的源码 我自己改成更易用的版本了 使用方法如下:

先开游戏或者后开无所谓 程序会自动识别绝地求生主程序才会生效 并且在开背包与拖动地图的时候会自动暂停
原版默认压抢数值是5 加减数值是5 大跳是蹲键 觉得不好用就自己修改了
小键盘0:大跳(按Shift加空格就会自动大跳了 不按就不大跳 原版是按蹲键大跳的 觉得不合理就改了)
小键盘1:ADS(打开这个之后 按住右键的腰射会变成开镜 类似H1Z1的瞄准方式)
小键盘2:开火(打开之后按住开火键就会一直最高射速开枪 无论是不是全自动)
小键盘3:压抢

使用说明:压抢的参数是自己手动设置的 默认调成了大多数枪都压的住的8 按小键盘的“+”“-”号 可以更改压抢的频率  个人配置是默认8 四倍就手动调成20
枪的话我推荐M4 上一个三角握把跟枪屁股 然后调成6 压的住 不太会左右飘 众所周知不论什么压抢都不能改变准心左右晃动

以下是AHK的配置 :
    ;     Configuration   

    #NoEnv ;Improves performance and compatibility with future AHK updates.
    #SingleInstance force ;It allows to run only one at the same time.
    SetTitleMatchMode, 2 ;Matching for window title.
    #ifwinactive, PLAYERUNKNOWN'S BATTLEGROUNDS ;Active only when in PUBG.


    ;    Variables     

    isMouseShown() ;To suspend script when mouse is visible.
    ADS = 0 ;Var for fast aiming.
    CrouchJump = 1 ;Var for crouch when jumping.
    AutoFire = 0 ;Var for autofiring.
    Compensation = 0 ;Var for compensation when autofiring.
    compVal = 10 ;Compensation value.


    ;    Suspends if mouse is visible     


    isMouseShown() ;It suspends the script when mouse is visible (map, inventory, menu).
    {
      StructSize := A_PtrSize + 16
      VarSetCapacity(InfoStruct, StructSize)
      NumPut(StructSize, InfoStruct)
      DllCall("GetCursorInfo", UInt, &InfoStruct)
      Result := NumGet(InfoStruct, 8)

      if Result > 1
        Return 1
      else
        Return 0
    }
    Loop
    {
      if isMouseShown() == 1
        Suspend On
      else
        Suspend Off
        Sleep 1
    }

    ;   Fast Aiming     


    *RButton:: ;Fast Aiming [default: Right Button]
    if ADS = 1
    { ;If active, clicks once and clicks again when button is released.
      SendInput {RButton Down}
      SendInput {RButton Up}
      KeyWait, RButton
      SendInput {RButton Down}
      SendInput {RButton Up}
    } else { ;If not, just keeps holding until button is released.
      SendInput {RButton Down}
      KeyWait, RButton
      SendInput {RButton Up}
    }
    Return


    ;   CrouchJump  


    *<+Space:: ;Crouch when jumping [default: Button 4]
    if CrouchJump = 1
    {
      SendInput {Space down}
      SendInput {c down}
      SendInput {Space up}
      Sleep 500 ;Keeps crouching 0.5 seconds to improve the jump.
      SendInput {c up}
    }
    Return





    ;     AutoFire     


    ~$*LButton:: ;AutoFire
    if AutoFire = 1
    {
            Loop
    {
            GetKeyState, LButton, LButton, P
            if LButton = U
                    Break
            MouseClick, Left,,, 1
            Gosub, RandomSleep ;Call to RandomSleep.
      if Compensation = 1
      {
        mouseXY(0, compVal) ;If active, call to Compensation.
      }
    }
    }
    Return
    RandomSleep: ;Random timing between clicks, just in case.
      Random, random, 14, 25
      Sleep %random%-5
    Return


    ;     Compensation     


    mouseXY(x,y) ;Moves the mouse down to compensate recoil (value in compVal var).
    {
      DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
    }


    ;     Tooltips     


    ToolTip(label) ;Function to show a tooltip when activating, deactivating or changing values.
    {
      ToolTip, %label%, 930, 650 ;Tooltips are shown under crosshair for FullHD monitors.
      SetTimer, RemoveToolTip, 1300 ;Removes tooltip after 1.3 seconds.
      return
      RemoveToolTip:
      SetTimer, RemoveToolTip, Off
      ToolTip
      Return
    }

    ;     Hotkeys for changing values   


    ;Toggles
    *NumPad1:ADS = 0 ? (ADS := 1,ToolTip("ADS ON")) : (ADS := 0,ToolTip("ADS OFF")))
    *NumPad2:AutoFire = 0 ? (AutoFire := 1,ToolTip("AutoFire ON")) : (AutoFire := 0,ToolTip("AutoFire OFF")))
    *NumPad3:Compensation = 0 ? (Compensation := 1,ToolTip("Compensation ON")) : (Compensation := 0,ToolTip("Compensation OFF")))
    *NumPad0::(CrouchJump = 0 ? (CrouchJump := 1,ToolTip("CrouchJump ON")) : (CrouchJump := 0,ToolTip("CrouchJump OFF")))

    *NumpadAdd:: ;Adds compensation.
      compVal := compVal + 1
      ToolTip("Compensation " . compVal)
    Return

    *NumpadSub:: ;Substracts compensation.
    if compVal > 0
    {
      compVal := compVal - 1
      ToolTip("Compensation " . compVal)
    }
    Return

考虑到有人没有AHK 我自己上传一个已经导出的EXE 打开就可以正常使用了
我建议自己手动配置吧 花点时间百度翻译一下什么的 也就知道怎么修改成自己最舒服的配置了

游戏愉快~

下载地址:
游客,如果您要查看本帖隐藏内容请回复


评分

参与人数 1牛币 +1 收起 理由
xiaoxuan123 + 1 写得很好,学习了。

查看全部评分

发表于 2017-10-17 08:24 | 显示全部楼层
1780286613 2017-10-17 08:24 显示全部楼层
感谢楼主分享!zn50有你更精彩!
回复

使用道具 举报

发表于 2017-10-17 08:27 | 显示全部楼层
Mr_Hao 2017-10-17 08:27 显示全部楼层
正需要,支持楼主,在真牛我只看好你!
回复

使用道具 举报

dh64211721 该用户已被删除
发表于 2017-10-17 08:35 | 显示全部楼层
dh64211721 2017-10-17 08:35 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

luohuofei 该用户已被删除
发表于 2017-10-17 09:27 | 显示全部楼层
luohuofei 2017-10-17 09:27 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2017-10-17 09:59 | 显示全部楼层
zeng954 2017-10-17 09:59 显示全部楼层
感谢楼主分享,顶贴支持~
回复

使用道具 举报

发表于 2017-10-17 10:24 | 显示全部楼层
1263732152 2017-10-17 10:24 显示全部楼层
顶一个!
回复

使用道具 举报

发表于 2017-10-17 10:38 | 显示全部楼层
A469418180 2017-10-17 10:38 显示全部楼层
小手一抖,牛币拿走。
回复

使用道具 举报

发表于 2017-10-17 10:42 | 显示全部楼层
lml3527 2017-10-17 10:42 显示全部楼层
6666666
回复

使用道具 举报

a1579737510 该用户已被删除
发表于 2017-10-17 10:55 | 显示全部楼层
a1579737510 2017-10-17 10:55 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则 返回列表 发新帖

快速回复 返回顶部 返回列表