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

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

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

二四四.神奇跳跃(按键盘R键主角可向前跳跃)

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

  TheInput:AddKeyUpHandler(KEY_R, function()

  inst.Physics:SetCollides(false)

  inst:DoTaskInTime(0, function()

  inst.AnimState:PlayAnimation("give")

  inst.components.playercontroller:Enable(false)

  inst.components.locomotor:Stop()

  inst.Physics:SetMotorVelOverride(50,45,0) end )

  inst:DoTaskInTime(0.2, function()

  inst.Physics:ClearMotorVelOverride()

  inst.Physics:SetMotorVelOverride(50,0,0) end )

  inst:DoTaskInTime(0.3, function()

  inst.Physics:ClearMotorVelOverride()

  inst.Physics:SetMotorVelOverride(50,-25,0) end )

  inst:DoTaskInTime(0.5, function()

  inst.Physics:ClearMotorVelOverride()

  inst.components.locomotor:Stop()

  local pt = inst:GetPosition()

  inst.Transform:SetPosition(pt.x, 0, pt.z)

  inst.components.playercontroller:Enable(true)

  inst.Physics:SetCollides(true)

  inst.AnimState:PlayAnimation("idle")

  inst.SoundEmitter:PlaySound("dontstarve/movement/bodyfall_dirt", "bodyfall") end )

  end )

  即可按键盘R键,让主角向前跳跃,用以方便地越过沟壑、墙等障碍,也可以跳到海面上,渡海而行。当身边有障碍物时,会影响跳跃高度。将其中KEY_R替换为其他键,比如KEY_C,就可以按键盘C键跳跃

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

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

本文是否解决了您的问题

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

  • 阿曼达塞弗里德自曝 她在新片裸戏中戴了
    阿曼达塞弗里德自曝 她在新片裸戏中戴了"假体肛门"

  • 网上擦边不用露脸 缺乏性资源遂成为性资源的囧图
    网上擦边不用露脸 缺乏性资源遂成为性资源的囧图

  • 将微胖还给真正胖的人 聚焦练腿姿势的动态图
    将微胖还给真正胖的人 聚焦练腿姿势的动态图

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

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

下载APP