更多
网页游戏
当前位置:攻略首页 > 单机游戏攻略 > 饥荒 > 正文

《饥荒》地图全开MOD方法

2013-05-02 11:26:53 冒险游戏AVG 人气值:加载中...

  看到不少人求地图全开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
)

更多相关资讯请关注:饥荒专题

查看饥荒攻略大全

分享至
扫描关注游侠网
饥荒Don’t Starve
上市时间:2013年04月23日
游戏平台:PC PS4
游戏类型:冒险游戏AVG
制作公司:Klei Entertainment Inc.
游戏语言:英文,日文,中文
发行公司:Klei Entertainment
单人单机2D画面支持手柄中级水平不支持VR
关于游侠 | 广告合作 | 人才招聘 | 联系我们 | 网站地图 | 投诉建议 | 版权保护投诉指引
CopyRight © 1999-2023 ALi213.Net All Right Reserved 游侠网 版权所有 | 苏ICP备2023007791号