[饥荒地图全开代码]饥荒地图怎么全开 地图全开MOD方法分享

更新时间:2020-03-27    来源:英文短信    手机版     字体:

【www.bbyears.com--英文短信】

给各位饥荒的玩家们来详细的分享一下地图全开MOD的方法。

方法分享:

看到不少人求地图全开MOD,分享个方法,理论全版本通用,至少从4.10开始之后的中英文版本适用

找到游戏中main.lua,文件,地址在dont_starve\data\scripts,用记事本打开,拖到最后,在最后一行(即ModManager:LoadMods()——这一行前面)添加以下代码,保存,进游戏后ctrl+1地图全开,ctrl+2瞬移到鼠标所在位置。建议修改前保存原文件!!!

--地图全开

TheInput:AddKeyUpHandler(KEY_1, function()word-spacing: 0px; text-transform: none; color: rgb(0,0,0); font: 16px/28px SimSun; widows: 1; letter-spacing: normal; background-color: rgb(242,242,243); text-indent: 0px; -webkit-text-stroke-width: 0px" />   if TheInput:IsKeyDown(KEY_CTRL) thenword-spacing: 0px; text-transform: none; color: rgb(0,0,0); font: 16px/28px SimSun; widows: 1; letter-spacing: normal; background-color: rgb(242,242,243); text-indent: 0px; -webkit-text-stroke-width: 0px" />     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
)

附4.24典藏版main修改后文件:点击进入

好了,以上的信息就是小编给各位饥荒的这一款游戏里面的玩家们带来的地图全开MOD方法分享的全部内容了,各位看到这里的玩家们,现在你们非常的清楚了地图MOD全开的方法了吧,那么现在就快去游戏里面按照小编分享的方法自己去自己开的试试吧。

本文来源:http://www.bbyears.com/zhufuduanxin/90008.html