Skip to content

Commit

Permalink
updata
Browse files Browse the repository at this point in the history
1. 取消结果取整
2. startControl = "G_bind" 时,使用设备背景色判断启动状态(测试中)
3. 使用 pubg.changeIsStart 方法统一处理 isStart 状态
  • Loading branch information
kiccer committed Aug 24, 2019
1 parent fc93930 commit c9cfe0f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@
1. `ctrl+s` 保存脚本后,可以在编辑器里尝试切换配置,切换配置时会有对应的文本信息输出,你可以在这里确认是否和心里预期的配置信息相同。
1. 最后一步,寻找队友,然后尽情装逼吧~

> 注意代码中的注释,已经明确标出了玩家自定义区域,和脚本核心区域,请不要修改脚本核心区域中的代码。
<p style="color: red; font-weight: bold;">* 注意代码中的注释,已经明确标出了玩家自定义区域,和脚本核心区域,请不要修改脚本核心区域中的代码。</p>

### 其他设置(非必要)
* 所有枪械单独设置系数 `ratio`
* [扩展开发教程:增加一把新的枪械/修改一把枪械的数据](https://github.com/kiccer/Soldier76/issues/24)

### 什么是切换配置?
> 很多人没搞清楚切换是什么意思,这是我们脚本与众不同的地方。
Expand Down Expand Up @@ -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) 反馈给我

### 关于宏
* 宏就像是一个心灵手巧的瞎子
Expand Down
24 changes: 18 additions & 6 deletions Soldier76.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -691,7 +703,7 @@ function pubg.setBulletType (bulletType)
end
end

pubg.isStart = true
pubg.changeIsStart(true)
end

--[[ set current scope ]]
Expand Down Expand Up @@ -729,7 +741,7 @@ function pubg.setGun (gunName)

end

pubg.isStart = true
pubg.changeIsStart(true)
end

--[[ Consider all available firearms as an entire list ]]
Expand Down Expand Up @@ -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,
}

Expand Down

9 comments on commit c9cfe0f

@Ertinhow
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the new updata changes?? it's really necessary?

@kiccer
Copy link
Owner Author

@kiccer kiccer commented on c9cfe0f Aug 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果你当前用的脚本表现不错,那么你可以继续使用正在使用的。

@godsano
Copy link

@godsano godsano commented on c9cfe0f Sep 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

謝謝

計劃的下一次更新是什麼時候?

我一直在等你

@kiccer
Copy link
Owner Author

@kiccer kiccer commented on c9cfe0f Sep 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

脚本目前暂时没有新的迭代计划,基本上就跟随游戏弹道变化调整一下数据。
如果你能提供一些不错的想法,欢迎在Issues中留言。我会酌情采纳,谢谢支持!
@godsano

@godsano
Copy link

@godsano godsano commented on c9cfe0f Sep 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我不能給你任何實際的幫助,但你為什麼不創造一個衝鋒槍(dmr:mini,sks,slr)單放大鏡?我可以在經濟上支持你。

@kiccer
Copy link
Owner Author

@kiccer kiccer commented on c9cfe0f Sep 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实想要写的话,还有很多枪可以写,连狙、手枪等,如果我一一提供弹道数据,那么会使代码量变得庞大,且我要花费更多的时间去维护数据。所以我提供了一个教程:扩展开发教程:增加一把新的枪械/修改一把枪械的数据,你可以按照这个教程自己添加一把枪械。

@kiccer
Copy link
Owner Author

@kiccer kiccer commented on c9cfe0f Sep 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

事实上,我的群组里已经有很多人通过这个教程,自己改变枪械数据,或者增加新的枪械了,你也可以试试。

@DaBingg
Copy link

@DaBingg DaBingg commented on c9cfe0f Sep 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可否把M16,MK47,连狙这一类枪械单独分成一组数据,并且只有在启用这组数据的时候才开启连点功能. 这样非常实用,然后根据不同倍镜可以单独调整连点的间隔.

@kiccer
Copy link
Owner Author

@kiccer kiccer commented on c9cfe0f Sep 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DaBingg 可以,提交一个Issues,我会找时间写,写在这里我容易忘了

Please sign in to comment.