...">
瀏覽量:171次
你是一名吃雞高手,但總是被壓槍難題所困擾?那么,使用羅技鼠標(biāo)宏就是你的不二選擇!首先,你需要在羅技官網(wǎng)下載羅技鼠標(biāo)宏軟件,并安裝它。然后,你可以在軟件中創(chuàng)建一個(gè)宏,將壓槍操作錄制下來。最后,將宏綁定到你的鼠標(biāo)按鍵上,就可以輕松實(shí)現(xiàn)壓槍操作了!當(dāng)然,使用宏并不是萬能的,還需要配合你的游戲技巧來發(fā)揮最大的作用。
解決方法:
1.羅技官網(wǎng)下載安裝羅技游戲軟件。
2.打開羅技游戲軟件找到羅技游戲軟件里對(duì)應(yīng)的G502游戲鼠標(biāo),將配置文件設(shè)置為自動(dòng)游戲檢測。
3.進(jìn)入按鍵配置,選擇配置文件,彈出菜單,選擇編寫腳本,進(jìn)行腳本編寫設(shè)置。
4.然后就可以編寫腳本以配置按鍵和游戲設(shè)置以及宏了,腳本可以參考下面的自行編寫,或者去下載一個(gè)配置文件修改,下面附上網(wǎng)絡(luò)上流行的一套絕地求生游戲的配置設(shè)置腳本。
5.local pubg = {}
-------------------------------------------------------------------------------
-- 快捷鍵定義區(qū)域
-------------------------------------------------------------------------------
pubg.keyPickupWeapon = 8
pubg.keyAlwayRun = 4 -- 直接按鍵
pubg.keyLookAround = 1 -- alt + G + 定義
pubg.keyWeaponUmp9 = 8 -- G + 定義
pubg.keyWeaponAkm = 7 -- G + 定義
pubg.keyWeaponM16a4 = 7 -- 定義
pubg.keyWeaponM416 = 5 -- 定義
pubg.keyDrop = 1 -- G + 定義
-------------------------------------------------------------------------------
-- 變量定義區(qū)域
-------------------------------------------------------------------------------
-- 鼠標(biāo)G鍵是否被按下
pubg.isGKeyPressed = false
-- 當(dāng)鼠標(biāo)G鍵被按下去之后,其他按鈕是否被按下
pubg.isOKeyPressed = false
-- 當(dāng)前選擇的武器
pubg.currentWeapon = "NIL"
-------------------------------------------------------------------------------
-- 隨機(jī)函數(shù),支出負(fù)數(shù)
-------------------------------------------------------------------------------
pubg.random = function (min, max)
local nMin = 1
local nMax = max - min
local randomNumber = math.random(nMin, nMax)
return randomNumber + min - 1
end
-------------------------------------------------------------------------------
-- 一件拾取裝備 = 游戲中:從左邊拉物品到武器欄中
-------------------------------------------------------------------------------
pubg.onPickupWeapon = function ()
local currentMouseX, currentMouseY = GetMousePosition()
PressMouseButton(1)
for i = 1, 5 do
MoveMouseRelative(pubg.random(100, 120), pubg.random(-10, 10))
Sleep(20)
end
ReleaseMouseButton(1)
Sleep(100)
MoveMouseTo(currentMouseX, currentMouseY)
end
-------------------------------------------------------------------------------
-- 一鍵丟東西 = 游戲中:ctrl+拖放
-------------------------------------------------------------------------------
pubg.onDrop = function ()
local currentMouseX, currentMouseY = GetMousePosition()
PressMouseButton(1);Sleep(20)
for i = 1, 3 do
MoveMouseRelative(pubg.random(-126, -100), pubg.random(-10, 10))
Sleep(20)
end
ReleaseMouseButton(1)
Sleep(100)
MoveMouseTo(currentMouseX, currentMouseY)
end
-------------------------------------------------------------------------------
-- 一鍵奔跑 = 游戲中:按=好
-------------------------------------------------------------------------------
pubg.onAlwayRun = function ()
PressKey(0x0d)
Sleep(400)
ReleaseKey(0x0d)
end
-------------------------------------------------------------------------------
-- 自動(dòng)環(huán)視周圍
-------------------------------------------------------------------------------
pubg.onLookAround = function ()
PressMouseButton(1)
repeat
MoveMouseRelative(pubg.random(30, 70), pubg.random(-1, 2))
Sleep(20)
until not IsMouseButtonPressed(1)
ReleaseMouseButton(1)
end
-------------------------------------------------------------------------------
-- 當(dāng)單獨(dú)的G鍵被按下
-------------------------------------------------------------------------------
pubg.onGKeyPressed = function ()
pubg.currentWeapon = "NIL"
end
-------------------------------------------------------------------------------
-- 選擇UMP9槍
-------------------------------------------------------------------------------
pubg.onWeaponUmp9 = function ()
local weaponRocilData = {5. 5. 5. 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
end
until not IsMouseButtonPressed(1)
end
-------------------------------------------------------------------------------
-- 選擇AKM槍
-------------------------------------------------------------------------------
pubg.onWeaponAkm = function ()
local weaponRocilData = {5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(0, weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
end
until not IsMouseButtonPressed(1)
end
-------------------------------------------------------------------------------
-- 選擇M16A4槍
-------------------------------------------------------------------------------
pubg.onWeaponM16a4 = function ()
local weaponRocilData = {5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
elseif currentRecoilPos % 5 == 0 then
ReleaseMouseButton(1)
Sleep(10)
PressMouseButton(1)
Sleep(100)
end
until not IsMouseButtonPressed(1)
OutputLogMessage("IsMouseButtonPressed == false\n")
end
-------------------------------------------------------------------------------
-- 選擇M416槍
-------------------------------------------------------------------------------
pubg.onWeaponM416 = function ()
ClearLog()
local weaponRocilData = {5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}
local weaponDuration = 20
local currentRecoilPos = 1
repeat
MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])
currentRecoilPos = currentRecoilPos + 1
Sleep(weaponDuration)
OutputLogMessage(tostring(currentRecoilPos) .. " ")
if currentRecoilPos == #weaponRocilData then
currentRecoilPos = 1
elseif currentRecoilPos % 5 == 0 then
ReleaseMouseButton(1)
Sleep(20)
PressMouseButton(1)
end
until not IsMouseButtonPressed(1)
end
-------------------------------------------------------------------------------
-- pubg邏輯處理
-------------------------------------------------------------------------------
pubg.onEvent = function (event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
if event == "PROFILE_ACTIVATED" then
EnablePrimaryMouseButtonEvents(true)
elseif event == "PROFILE_DEACTIVATED" then
EnablePrimaryMouseButtonEvents(false)
pubg.currentWeapon = "NIL"
ReleaseKey(0x1d)
ReleaseMouseButton(1)
ReleaseMouseButton(2)
return
end
-- G鍵按下邏輯
if event == "MOUSE_BUTTON_PRESSED" and arg == 6 then
pubg.isGKeyPressed = true
pubg.isOKeyPressed = false
elseif event == "MOUSE_BUTTON_RELEASED" and arg == 6 then
pubg.isGKeyPressed = false
end
-- 在G鍵按下的時(shí)候,其他鍵是否被按下
if event == "MOUSE_BUTTON_PRESSED" and arg ~= 6 and pubg.isGKeyPressed then
pubg.isOKeyPressed = true
end
-- 單獨(dú)G鍵被按下
if event == "MOUSE_BUTTON_RELEASED" and arg == 6 and pubg.isOKeyPressed == false then
pubg.onGKeyPressed()
-- 一鍵拾取物品
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyPickupWeapon and pubg.isGKeyPressed == false then
pubg.onPickupWeapon()
-- 一鍵丟棄物品
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyDrop and pubg.isGKeyPressed == true then
pubg.onDrop()
-- 一鍵奔跑
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyAlwayRun and pubg.isGKeyPressed == false then
pubg.onAlwayRun()
-- 自動(dòng)環(huán)視周圍
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyLookAround and IsModifierPressed("alt") then
pubg.onLookAround()
-- 選擇UMP9
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyWeaponUmp9 and pubg.isGKeyPressed == true then
pubg.currentWeapon = "UMP9"
-- 選擇AKM
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyWeaponAkm and pubg.isGKeyPressed == true then
pubg.currentWeapon = "AKM"
-- 選擇M16A4
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyWeaponM16a4 and pubg.isGKeyPressed == false then
pubg.currentWeapon = "M16A4"
-- 選擇M416
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyWeaponM416 and pubg.isGKeyPressed == false then
pubg.currentWeapon = "M416"
-- 鼠標(biāo)左鍵被按下
elseif event == "MOUSE_BUTTON_PRESSED" and arg == 1 then
if pubg.currentWeapon ~= "NIL" then
if pubg.currentWeapon == "UMP9" then
pubg.onWeaponUmp9()
elseif pubg.currentWeapon == "AKM" then
pubg.onWeaponAkm()
elseif pubg.currentWeapon == "M16A4" then
pubg.onWeaponM16a4()
elseif pubg.currentWeapon == "M416" then
pubg.onWeaponM416()
end
end
end
end
-------------------------------------------------------------------------------
-- 驅(qū)動(dòng)入口函數(shù)
-------------------------------------------------------------------------------
function OnEvent(event, arg)
pubg.onEvent(event, arg)
end
以上就是關(guān)于吃雞羅技鼠標(biāo)宏壓槍設(shè)置教程的全部內(nèi)容,有出現(xiàn)這種現(xiàn)象的小伙伴不妨根據(jù)陽泰網(wǎng)絡(luò)的方法來解決吧,希望能夠?qū)Υ蠹矣兴鶐椭?/p>
[聲明]本網(wǎng)轉(zhuǎn)載網(wǎng)絡(luò)媒體稿件是為了傳播更多的信息,此類稿件不代表本網(wǎng)觀點(diǎn),本網(wǎng)不承擔(dān)此類稿件侵權(quán)行為的連帶責(zé)任。故此,如果您發(fā)現(xiàn)本網(wǎng)站的內(nèi)容侵犯了您的版權(quán),請您的相關(guān)內(nèi)容發(fā)至此郵箱【779898168@qq.com】,我們在確認(rèn)后,會(huì)立即刪除,保證您的版權(quán)。
官網(wǎng)優(yōu)化
整站優(yōu)化
渠道代理
400-655-5776