饥荒mod吧 关注:57,871贴子:235,544
  • 5回复贴,共1

『01-28』【问题求助】伸手求变巨鹿MOD=。=

只看楼主收藏回复

不许砍手


1楼2014-01-28 15:09回复
    易宁。。


    IP属地:福建2楼2014-01-28 15:24
    收起回复
      回复 V小灰狼V :我是巨鹿(按键盘HOME键主角变身巨鹿,按END键还原)
      用记事本打开游戏目录\data\scripts\prefabs\player_common.lua文件,在inst:AddComponent("playercontroller")的下一行插入以下内容:
      TheInput:AddKeyUpHandler(KEY_HOME, function() if inst.components.inventory:Has("goldnugget", 30) then inst.components.inventory:ConsumeByName("goldnugget", 30) 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) inst:DoTaskInTime(1, function() inst.AnimState:SetBank("deerclops") inst.AnimState:SetBuild("deerclops_build") inst:SetStateGraph("SGdeerclops") inst.AnimState:PlayAnimation("idle_loop", true) inst.Transform:SetScale(1.5,1.5,1.5) shadow:SetSize( 6, 3.5 ) local pos = GetPlayer():GetPosition() GetSeasonManager():DoLightningStrike(pos) inst.components.health:SetInvincible(true) inst.components.hunger:Pause() inst.components.combat:SetDefaultDamage(500) inst.components.combat.hiteffectsymbol = "deerclops_body" inst.components.combat.onhitotherfn = function() inst.SoundEmitter:PlaySound("dontstarve/creatures/deerclops/attack") inst.components.playercontroller:ShakeCamera(inst, "FULL", 0.5, 0.05, 2, 40) end inst.components.combat.playerdamagepercent = 0 inst.components.combat:SetAreaDamage(10, 1) inst:AddComponent("heater") inst.components.heater.heat = 180 inst.components.playercontroller:Enable(true) end ) endend )TheInput:AddKeyUpHandler(KEY_END, function() inst.components.locomotor:Stop() inst.components.playercontroller:Enable(false) inst.AnimState:PlayAnimation("taunt") inst:DoTaskInTime(1, function() inst.AnimState:SetBank("wilson") inst.AnimState:SetBuild(name) inst:SetStateGraph("SGwilson") inst.AnimState:PlayAnimation("idle") inst.Transform:SetScale(1,1,1) shadow:SetSize( 1.3, .6 ) local pos = GetPlayer():GetPosition() GetSeasonManager():DoLightningStrike(pos) inst.components.health:SetInvincible(false) inst.components.hunger:Resume() inst.components.combat:SetDefaultDamage(TUNING.UNARMED_DAMAGE) inst.components.combat.hiteffectsymbol = "torso" inst.components.combat.onhitotherfn = nil inst.components.combat:SetAreaDamage(0, 0) inst:RemoveComponent("heater") inst.components.playercontroller:Enable(true) end )end )
      即可在你深陷绝境之时,对电脑屏幕大喊“我是巨鹿”,并同时按下键盘HOME键,主角将变身无敌巨鹿(锁血、锁饥饿、不怕冷),对敌人展开恐怖的报复吧(按Ctrl + 鼠标左键攻击)。每次变身将消耗30个黄金,身上黄金数不足时不会变身。想要变化回主角时,按键盘END键即可。注意,由于巨鹿变身时会招来闪电,并且本身具备大面积杀伤的能力,所以请远离基地变身,且尽量不要带同伴。


      IP属地:福建3楼2014-01-28 15:40
      收起回复