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

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

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

一六九.速射步枪(黄色魔杖左键点射、右键连射蜂刺子弹)

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

  local function yellow()

  local inst = commonfn("yellow")

  inst.fxcolour = {223/255, 208/255, 69/255}

  inst.castsound = "dontstarve/common/staffteleport"

  inst:AddComponent("spellcaster")

  inst.components.spellcaster:SetSpellFn(createlight)

  inst.components.spellcaster:SetSpellTestFn(cancreatelight)

  inst.components.spellcaster.canuseonpoint = true

  inst.components.spellcaster.canusefrominventory = false

  inst:AddComponent("reticule")

  inst.components.reticule.targetfn = function()

  return Vector3(GetPlayer().entity:LocalToWorldSpace(5,0,0))

  end

  inst.components.reticule.ease = true

  inst.components.finiteuses:SetMaxUses(TUNING.YELLOWSTAFF_USES)

  inst.components.finiteuses:SetUses(TUNING.YELLOWSTAFF_USES)

  inst:AddTag("nopunch")

  return inst

  end

  替换为:

  local function yellow()

  local inst = commonfn("yellow")

  inst.fxcolour = {223/255, 208/255, 69/255}

  inst.castsound = "dontstarve/common/staffteleport"

  local function canattack(inst, target)

  if GetPlayer().components.inventory:Has("stinger", 1) and TheInput:IsMouseDown(MOUSEBUTTON_RIGHT) then

  inst.components.weapon:LaunchProjectile(inst, target)

  end

  if GetPlayer().components.inventory:Has("stinger", 1) then

  return true

  end

  end

  local function onattack_yellow(inst, owner, target)

  owner.SoundEmitter:PlaySound("dontstarve/creatures/eyeballturret/shotexplo")

  SpawnPrefab("die_fx").Transform:SetPosition(target.Transform:GetWorldPosition())

  TheCamera:Shake("FULL", 0.2, 0.02, .5, 40)

  owner.components.inventory:ConsumeByName("stinger", 1)

  end

  inst:AddComponent("weapon")

  inst.components.weapon:SetDamage(100)

  inst.components.weapon:SetRange(25, 30)

  inst.components.weapon:SetOnAttack(onattack_yellow)

  inst.components.weapon:SetCanAttack(canattack)

  inst.components.weapon:SetProjectile("fire_projectile")

  inst.components.finiteuses:SetMaxUses(TUNING.YELLOWSTAFF_USES*1000)

  inst.components.finiteuses:SetUses(TUNING.YELLOWSTAFF_USES*1000)

  return inst

  end

  即可在装备黄色魔杖时,对敌人按鼠标左键点射,按鼠标右键连射,身上没有蜂刺时无法射击(不要光顾着按住右键扫射,时不时关注一下还有多少子弹)。黄色魔杖在远古选项(画着远古祭坛)下,用4个噩梦燃料、2个活木头、2个黄色宝石制造,制造时需要靠近远古祭坛。黄色魔杖原有种小星星功能取消

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

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

本文是否解决了您的问题

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

  • 腾讯关闭天美蒙特利尔工作室!成立5年没有自己作品
    腾讯关闭天美蒙特利尔工作室!成立5年没有自己作品

  • 36斤活羊烤完只剩6.9斤引争议 商家称属正常损耗
    36斤活羊烤完只剩6.9斤引争议 商家称属正常损耗

  • 《夜王》女神黄洁琪试镜超低胸战衣:大雷浑圆饱满
    《夜王》女神黄洁琪试镜超低胸战衣:大雷浑圆饱满

攻略合集
近期更新
人物图鉴

相关内容

在线玩推荐更多

游民星空

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

下载APP