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

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

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

二六七.蜘蛛座骑(按键盘PageUP键召唤蜘蛛座骑,按PageDown键取消)

  用记事本打开游戏目录\data\DLC0001\scripts\prefabs\player_common.lua文件,在inst:AddComponent("inventory")的下一行插入以下内容:

  TheInput:AddKeyUpHandler(KEY_PAGEUP, function()

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

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

  if inst.doll then inst.doll:Remove() inst.doll = nil end

  inst.components.locomotor:Stop()

  inst.components.playercontroller:Enable(false)

  SpawnPrefab("collapse_big").Transform:SetPosition(inst.Transform:GetWorldPosition())

  inst.SoundEmitter:PlaySound("dontstarve/creatures/spiderqueen/scream_short")

  inst:DoTaskInTime(0.1, function()

  inst.AnimState:SetBank("spider_queen")

  inst.AnimState:SetBuild("spider_queen_build")

  inst.AnimState:PlayAnimation("idle", true)

  inst.AnimState:SetBloomEffectHandle("shaders/anim.ksh")

  inst:SetStateGraph("SGspiderqueen")

  shadow:SetSize( 7, 3 )

  inst.components.locomotor.walkspeed = 15

  inst.components.locomotor.runspeed = 20

  inst.components.health:SetInvincible(true)

  inst.components.hunger:Pause()

  inst.components.combat:SetDefaultDamage(300)

  inst.components.temperature:SetTemp(20)

  inst.components.playercontroller:Enable(true)

  local pt = GetPlayer():GetPosition()

  inst.doll = SpawnPrefab( "beardhair" )

  inst.doll.Transform:SetPosition(pt.x, 3.5, pt.z)

  inst.doll.Physics:SetActive(false)

  inst.doll.AnimState:SetBank("wilson")

  inst.doll.AnimState:SetBuild(name)

  inst.doll.AnimState:OverrideSymbol("swap_object", "swap_spear", "swap_spear")

  inst.doll.AnimState:Hide("ARM_normal")

  inst.doll.AnimState:Show("ARM_carry")

  inst.doll.Transform:SetFourFaced()

  inst.doll.AnimState:PlayAnimation("idle")

  inst.doll:RemoveComponent("burnable")

  inst.doll:RemoveComponent("propagator")

  inst.doll:RemoveComponent("inspectable")

  inst.doll:RemoveComponent("inventoryitem")

  inst.doll:RemoveComponent("stackable")

  inst.doll:RemoveComponent("fuel")

  inst.task = inst:DoPeriodicTask(.05, function()

  local pt1 = GetPlayer():GetPosition()

  inst.doll.Transform:SetPosition(pt1.x, 3.5, pt1.z)

  inst.doll.Transform:SetRotation(GetPlayer().Transform:GetRotation())

  end )

  inst.task2 = inst:DoPeriodicTask(10, function()

  inst.doll.AnimState:PlayAnimation("give",true)

  inst:DoTaskInTime(2.2, function() inst.doll.AnimState:PlayAnimation("idle") end )

  end )

  end )

  end )

  TheInput:AddKeyUpHandler(KEY_PAGEDOWN, function()

  inst.components.locomotor:Stop()

  inst.components.playercontroller:Enable(false)

  SpawnPrefab("collapse_big").Transform:SetPosition(inst.Transform:GetWorldPosition())

  inst.SoundEmitter:PlaySound("dontstarve/creatures/spiderqueen/scream_short")

  inst:DoTaskInTime(0.1, function()

  inst.AnimState:SetBank("wilson")

  inst.AnimState:SetBuild(name)

  inst.AnimState:PlayAnimation("idle")

  inst.AnimState:SetBloomEffectHandle("")

  inst:SetStateGraph("SGwilson")

  shadow:SetSize( 1.3, .6 )

  inst.components.locomotor.walkspeed = TUNING.WILSON_WALK_SPEED

  inst.components.locomotor.runspeed = TUNING.WILSON_RUN_SPEED

  inst.components.health:SetInvincible(false)

  inst.components.hunger:Resume()

  inst.components.combat:SetDefaultDamage(TUNING.UNARMED_DAMAGE)

  inst.components.temperature:SetTemp(nil)

  inst.components.playercontroller:Enable(true)

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

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

  if inst.doll then inst.doll:Remove() inst.doll = nil end

  end )

  end )

  即可按键盘PageUP键召唤蜘蛛座骑(自动骑在蜘蛛身上),按PageDown键取消座骑。攻击时对敌人按Ctrl + 鼠标左键(也可以按住F键连续还击)。骑在蜘蛛身上时,敌人无法打到主角,所以主角不会掉血

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

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

本文是否解决了您的问题

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

  • 游戏主播大司马被曝开始“戒槟榔”!改嚼牛肉干
    游戏主播大司马被曝开始“戒槟榔”!改嚼牛肉干

  • “人美声甜”!玩家热议《生化9》最佳丧尸
    “人美声甜”!玩家热议《生化9》最佳丧尸

  • 最少几千万!99年义乌老板娘谈营业额喜笑颜开
    最少几千万!99年义乌老板娘谈营业额喜笑颜开

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

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

下载APP