饥荒 全人物解锁及主角自动回血等实用修改教程

《饥荒》这款生存游戏,很多玩家都想觉得游戏有些难,就想修改一些内容,比如解锁全人物,主角自动回血,主角不会饿之类的,下面小编为大家奉上最全的修改教程,内容简单易懂,希望各位玩家喜欢。目录

饥荒 全人物解锁及主角自动回血等实用修改教程

一八五.音浪太强(戴兔耳罩周围形成音浪,敌人被弹开)

  用记事本打开游戏目录\data\DLC0001\scripts\prefabs\hats.lua文件,将下列内容:

  local function earmuffs()

  local inst = simple()

  inst:AddComponent("insulator")

  inst.components.insulator.insulation = TUNING.INSULATION_SMALL

  inst.components.equippable:SetOnEquip( opentop_onequip )

  inst:AddComponent("fueled")

  inst.components.fueled.fueltype = "USAGE"

  inst.components.fueled:InitializeFuelLevel(TUNING.EARMUFF_PERISHTIME)

  inst.components.fueled:SetDepletedFn(generic_perish)

  inst.AnimState:SetRayTestOnBB(true)

  return inst

  end

  替换为:

  local colours=

  {

  {198/255,43/255,43/255},

  {79/255,153/255,68/255},

  {35/255,105/255,235/255},

  {233/255,208/255,69/255},

  {109/255,50/255,163/255},

  {222/255,126/255,39/255},

  }

  local function pickup(inst, owner)

  inst.colour_idx = math.random(#colours)

  local light = inst.entity:AddLight()

  light:SetIntensity(.8)

  light:SetRadius(3)

  light:SetFalloff(1)

  light:Enable(true)

  light:SetColour(colours[inst.colour_idx][1],colours[inst.colour_idx][2],colours[inst.colour_idx][3])

  local pt = Vector3(owner.Transform:GetWorldPosition())

  local result_offset = FindValidPositionByFan(math.random()*2*PI, 10, 75, function(offset)

  local x,y,z = (pt + offset):Get()

  local ents = TheSim:FindEntities(x,y,z , 1)

  return not next(ents)

  end)

  local ents2 = TheSim:FindEntities(pt.x,pt.y,pt.z, 8)

  for k,v in pairs(ents2) do

  if v.components.health and not v.components.health:IsDead() and not v:HasTag("player") and not v:HasTag("smallbird") and not v:HasTag("chester") and not v:HasTag("wall") and not v:HasTag("structure") then

  v.Transform:SetPosition((pt + result_offset):Get())

  end

  end

  end

  local function earmuffs_onequip(inst, owner)

  inst.task = inst:DoPeriodicTask(.033, function() pickup(inst, owner) end)

  GetPlayer().SoundEmitter:PlaySound("dontstarve/music/music_hoedown", "beavermusic")

  opentop_onequip(inst, owner)

  end

  local function earmuffs_onunequip(inst, owner)

  if inst.task then inst.task:Cancel() inst.task = nil end

  GetPlayer().SoundEmitter:KillSound("beavermusic")

  onunequip(inst, owner)

  inst.Light:Enable(false)

  end

  local function earmuffs()

  local inst = simple()

  inst:AddComponent("insulator")

  inst.components.insulator.insulation = TUNING.INSULATION_SMALL

  inst.components.equippable:SetOnEquip( earmuffs_onequip )

  inst.components.equippable:SetOnUnequip( earmuffs_onunequip )

  inst.AnimState:SetRayTestOnBB(true)

  return inst

  end

  即可在戴兔耳罩时,周围形成音浪,敌人靠近会被弹开,拆杀人蜂窝、偷高鸟蛋毫发无伤。兔耳罩在穿戴选项(画着礼帽)下,用2个兔子、1个树枝制造

相关内容请关注:饥荒专区

作者:易宁     责任编辑:Shy夏夏

本文是否解决了您的问题

APP精彩推荐打开游民APP查看更多

  • 三上悠亚老师再发新图:超短牛仔裙大白腿看流口水
    三上悠亚老师再发新图:超短牛仔裙大白腿看流口水

  • 捞女游戏遭豆瓣下架!开分8.5现在搜不到了
    捞女游戏遭豆瓣下架!开分8.5现在搜不到了

  • 网传霍金和比基尼女子合影 家人回应:护理人员
    网传霍金和比基尼女子合影 家人回应:护理人员

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

打开App阅读体验更佳,攻略、资讯实时更新

下载APP