From c9cfe0ffa5ad2cc64665fa35313d25391dd3e6ef Mon Sep 17 00:00:00 2001 From: Lin Chengbiao <1072907338@qq.com> Date: Sun, 25 Aug 2019 00:45:03 +0800 Subject: [PATCH] =?UTF-8?q?updata=201.=20=E5=8F=96=E6=B6=88=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=8F=96=E6=95=B4=202.=20startControl=20=3D=20"G=5Fbi?= =?UTF-8?q?nd"=20=E6=97=B6=EF=BC=8C=E4=BD=BF=E7=94=A8=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E8=89=B2=E5=88=A4=E6=96=AD=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E7=8A=B6=E6=80=81(=E6=B5=8B=E8=AF=95=E4=B8=AD)=203.=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20pubg.changeIsStart=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=A4=84=E7=90=86=20isStart=20=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++++--- Soldier76.lua | 24 ++++++++++++++++++------ 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 58d327a..c021ab9 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,11 @@ 1. `ctrl+s` 保存脚本后,可以在编辑器里尝试切换配置,切换配置时会有对应的文本信息输出,你可以在这里确认是否和心里预期的配置信息相同。 1. 最后一步,寻找队友,然后尽情装逼吧~ -> 注意代码中的注释,已经明确标出了玩家自定义区域,和脚本核心区域,请不要修改脚本核心区域中的代码。 +
* 注意代码中的注释,已经明确标出了玩家自定义区域,和脚本核心区域,请不要修改脚本核心区域中的代码。
+ +### 其他设置(非必要) +* 所有枪械单独设置系数 `ratio` +* [扩展开发教程:增加一把新的枪械/修改一把枪械的数据](https://github.com/kiccer/Soldier76/issues/24) ### 什么是切换配置? > 很多人没搞清楚切换是什么意思,这是我们脚本与众不同的地方。 @@ -210,12 +214,12 @@ G键 | 功能 * **不可将此脚本二次创作后用于商业目的!** ### 交流群 -* 欢迎加入技术交流QQ群:[768483124](https://kiccer.github.io/Soldier76/static/join_group.html) [![logitech 鼠标宏技术交流](./static/img/group.png)](https://kiccer.github.io/Soldier76/static/join_group.html) +* 欢迎加入技术交流QQ群:[![logitech 鼠标宏技术交流](./static/img/group.png)](https://kiccer.github.io/Soldier76/static/join_group.html) ([768483124](https://kiccer.github.io/Soldier76/static/join_group.html)) * 十分欢迎愿意给本项目精调弹道的小伙伴 * 我们也同样欢迎其他项目的小伙伴入驻,一起交流技术话题 ### 问题反馈 -* 使用脚本时有任何疑问,或脚本存在不足之处可以在 [`issues`](https://github.com/kiccer/Soldier76/issues) 反馈给我 +* 使用脚本时有任何疑问,或脚本存在不足之处可以在 [`Issues`](https://github.com/kiccer/Soldier76/issues) 反馈给我 ### 关于宏 * 宏就像是一个心灵手巧的瞎子 diff --git a/Soldier76.lua b/Soldier76.lua index 06b42fb..63b7833 100644 --- a/Soldier76.lua +++ b/Soldier76.lua @@ -541,9 +541,9 @@ function pubg.execOptions (options) end -- 取整 - for i = 1, #ballisticConfig2 do - ballisticConfig2[i] = math.ceil(ballisticConfig2[i]) - end + -- for i = 1, #ballisticConfig2 do + -- ballisticConfig2[i] = math.ceil(ballisticConfig2[i]) + -- end return { duration = options.interval * #ballisticConfig2, -- Time of duration @@ -673,6 +673,18 @@ function pubg.getRealY (y) return realY end +--[[ change pubg isStart status ]] +function pubg.changeIsStart (isTrue) + pubg.isStart = isTrue + if isTrue then + SetBacklightColor(0, 255, 150, "kb") + SetBacklightColor(0, 255, 150, "mouse") + else + SetBacklightColor(255, 0, 90, "kb") + SetBacklightColor(255, 0, 90, "mouse") + end +end + --[[ set bullet type ]] function pubg.setBulletType (bulletType) pubg.bulletType = bulletType @@ -691,7 +703,7 @@ function pubg.setBulletType (bulletType) end end - pubg.isStart = true + pubg.changeIsStart(true) end --[[ set current scope ]] @@ -729,7 +741,7 @@ function pubg.setGun (gunName) end - pubg.isStart = true + pubg.changeIsStart(true) end --[[ Consider all available firearms as an entire list ]] @@ -834,7 +846,7 @@ function pubg.runCmd (cmd) ["last_in_canUse"] = pubg.findInCanUse, ["fast_pickup"] = pubg.fastPickup, ["off"] = function () - pubg.isStart = false + pubg.changeIsStart(false) end, }