Skip to content

Commit

Permalink
Merge pull request #56 from kiccer/test
Browse files Browse the repository at this point in the history
update
  • Loading branch information
kiccer authored Sep 11, 2019
2 parents bef0144 + e16172b commit 82cc9a0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/test/
15 changes: 14 additions & 1 deletion Soldier76.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ pubg["M16A4"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 108,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 140},
Expand All @@ -298,6 +299,7 @@ pubg["SCAR-L"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 102,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 140},
Expand All @@ -319,6 +321,7 @@ pubg["Beryl M762"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 93,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 140},
Expand All @@ -341,6 +344,7 @@ pubg["Tommy Gun"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 94,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{5, 71},
Expand All @@ -357,6 +361,7 @@ pubg["G36C"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 91,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 135},
Expand All @@ -375,6 +380,7 @@ pubg["Vector"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 61,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{5, 52},
Expand All @@ -391,6 +397,7 @@ pubg["Micro UZI"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 56,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 80},
Expand All @@ -409,6 +416,7 @@ pubg["UMP45"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 100,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{5, 69},
Expand All @@ -425,6 +433,7 @@ pubg["AKM"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 107,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 157},
Expand All @@ -442,6 +451,7 @@ pubg["M416"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 93,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 132},
Expand All @@ -461,6 +471,7 @@ pubg["QBZ"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 99,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{2, 125},
Expand All @@ -480,6 +491,7 @@ pubg["DP-28"] = function ()
return pubg.execOptions({
ratio = 1,
interval = 116,
autoContinuousFiring = 1,
ballistic = {
{1, 0},
{7, 106},
Expand Down Expand Up @@ -550,6 +562,7 @@ function pubg.execOptions (options)
amount = #ballisticConfig2, -- Number of bullets
interval = options.interval, -- Time of each bullet
ballistic = ballisticConfig2, -- ballistic data
autoContinuousFiring = options.autoContinuousFiring
}

end
Expand Down Expand Up @@ -630,7 +643,7 @@ function pubg.auto (options)
local realY = pubg.getRealY(y)
MoveMouseRelative(x, realY)
-- Whether to issue automatically or not
if userInfo.autoContinuousFiring == 1 then
if userInfo.autoContinuousFiring == 1 and options.autoContinuousFiring == 1 then
PressAndReleaseMouseButton(1)
end

Expand Down

0 comments on commit 82cc9a0

Please sign in to comment.