Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 電腦軟體介紹

饑荒地圖全開作弊教程:修改 player_common.lua 添加 Ctrl+1 熱鍵

編輯:電腦軟體介紹

《饑荒》單機/聯機版可通過修改遊戲腳本實現**按 `Ctrl+1` 瞬間全圖顯示**,適合新手探索、找基地點、測試地圖。操作步驟:

  1. 用記事本打開:`遊戲目錄\data\DLC0001\scripts\prefabs\player_common.lua`
  2. 找到 `inst:AddComponent("resurrectable")` 這一行,**在其下一行插入以下代碼**:
TheInput:AddKeyUpHandler(KEY_1, function()
    if TheInput:IsKeyDown(KEY_CTRL) then
        local map = TheSim:FindFirstEntityWithTag("minimap")
        local x,y,z = GetPlayer().Transform:GetWorldPosition()
        map.MiniMap:ShowArea(x, y, z, 10000)
    end
end)
  1. 存檔,進遊戲按 `Ctrl + 1` 即可全圖顯示(半徑 10000 單位,實質全圖)。

注意事項

  • 屬於**修改遊戲文件作弊**,僅建議單機/私人聯機測試使用,**公共伺服器嚴禁**,可能導致封禁。
  • 修改前**務必備份原文件**,以防語法錯誤導致遊戲無法啟動。
  • 聯機版若為專用伺服器,需在**伺服器端同樣修改**才生效。

新手期善用全圖視野快速熟悉地形、找資源點、定基地,**正式遊玩建議關閉作弊,享受探索樂趣**。

Copyright © Windows教程網 All Rights Reserved