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

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

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

二二四.我是龙卷风(按键盘U键主角变身龙卷风,掠过之处尽毁,敌人靠近会被冻伤,再按U键变回人)

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

  TheInput:AddKeyUpHandler(KEY_U, function()

  if not inst:HasTag("windman") then

  inst.components.locomotor:Stop()

  inst.components.playercontroller:Enable(false)

  inst.AnimState:PlayAnimation("idle_shiver_pre")

  inst.AnimState:PushAnimation("idle_shiver_loop")

  inst.AnimState:PushAnimation("idle_shiver_pst", false)

  GetPlayer().SoundEmitter:PlaySound("dontstarve_DLC001/creatures/glommer/foot_ground")

  inst:DoTaskInTime(0.3, function()

  inst:AddTag("windman")

  inst.AnimState:SetBank("tornado")

  inst.AnimState:SetBuild("tornado")

  inst:SetStateGraph("SGtornado")

  inst.AnimState:PlayAnimation("tornado_pre")

  inst.AnimState:PushAnimation("tornado_loop")

  inst.Transform:SetScale(1.8,1.8,1.8)

  local light = inst.entity:AddLight()

  light:SetIntensity(.8)

  light:SetRadius(10)

  light:SetFalloff(.6)

  light:Enable(true)

  light:SetColour(255/255,255/255,255/255)

  inst.components.locomotor.walkspeed = 20

  inst.components.locomotor.runspeed = 30

  inst.components.health:SetInvincible(true)

  inst.components.hunger:Pause()

  inst.components.temperature:SetTemp(20)

  inst.Physics:SetCollisionCallback(function(inst, other)

  if other and other.components.health and other.components.combat then

  if other.components.combat.target == GetPlayer() or GetPlayer().components.combat.target == other or other:HasTag("monster") then

  other.components.health:DoDelta(-100)

  if other.components.freezable then

  other.components.freezable:AddColdness(10)

  other.components.freezable:SpawnShatterFX()

  end

  end

  end

  if other and other.components.workable and other.components.workable.workleft > 0 then

  GetPlayer().SoundEmitter:PlaySound("dontstarve_DLC001/creatures/glommer/foot_ground")

  other.components.workable:Destroy(inst)

  end

  end )

  inst.components.playercontroller:Enable(true)

  end )

  else

  inst.components.locomotor:Stop()

  inst.components.playercontroller:Enable(false)

  GetPlayer().SoundEmitter:PlaySound("dontstarve_DLC001/creatures/glommer/foot_ground")

  inst.AnimState:PlayAnimation("tornado_pst")

  inst:DoTaskInTime(0.3, function()

  inst:RemoveTag("windman")

  inst.AnimState:SetBank("wilson")

  inst.AnimState:SetBuild(name)

  inst:SetStateGraph("SGwilson")

  inst.AnimState:PlayAnimation("idle")

  inst.Transform:SetScale(1,1,1)

  inst.Light:Enable(false)

  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.temperature:SetTemp(nil)

  inst.Physics:SetCollisionCallback( nil )

  inst.components.playercontroller:Enable(true)

  end )

  end

  end )

  即可按键盘U键,主角变身龙卷风,掠过之处一切建筑、植物尽毁,敌人靠近将被冻伤。龙卷风可夜视,不会饥饿,且锁血,去席卷大陆吧。再次按键盘U键可变回人

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

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

本文是否解决了您的问题

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

  • 官方公布《生化9》解锁时间!PC已开放预载
    官方公布《生化9》解锁时间!PC已开放预载

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

  • 白人女婿吃砂糖橘吃成贵州本地人 医生:要均衡摄入
    白人女婿吃砂糖橘吃成贵州本地人 医生:要均衡摄入

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

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

下载APP