非凡首頁|軟件專題|軟件資訊|軟件發(fā)布 投訴報錯
您當前位置: 首頁軟件資訊饑荒地圖全開MOD方法

饑荒地圖全開MOD方法

2015-08-04 14:22:33

饑荒六項修改器 v1.8

分類:游戲輔助星級:軟件大小:11.04MB

平臺:WinXp,Win2003,WinVista,Win 7

看到不少人求地圖全開MOD,分享個方法,理論全版本通用,至少從4.10開始之后的中英文版本適用

找到游戲中main.lua,文件,地址在dont_starve⁄data⁄scripts,用記事本打開,拖到最后,在最后一行(即ModManager:LoadMods()——這一行前面)添加以下代碼,保存,進游戲后ctrl+1地圖全開,ctrl+2瞬移到鼠標所在位置。建議修改前保存原文件?。?!

--地圖全開
TheInput:AddKeyUpHandler(KEY_1, function()
  if TheInput:IsKeyDown(KEY_CTRL) then
    local MainCharacter = TheSim:FindFirstEntityWithTag("player")
    local map = TheSim:FindFirstEntityWithTag("minimap")
    if MainCharacter and map then
      local x, y, z = MainCharacter.Transform:GetWorldPosition()
      map.MiniMap:ShowArea(x, y, z, 10000)
    end
  end
end
);

--傳送
TheInput:AddKeyUpHandler(KEY_2, function()
   if TheInput:IsKeyDown(KEY_CTRL) then
     local player = TheSim:FindFirstEntityWithTag("player");
     player.Transform:SetPosition(TheInput:GetMouseWorldPos():Get())
   end
end
標簽:
国产精品秘 久久久囯产,亚洲无码在线网站,亚洲欧美日韩综合专区,亚洲A∨无码精品午夜在线观看