[分享]饥荒联机版,支持局域网联机。

YN332-用木板种鱼人房

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三二.用木板种鱼人房 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/boards.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6local function OnDeploy (inst, pt) 7 SpawnPrefab("mermhouse").Transform:SetPosition(pt.x, pt.y, pt.z) 8 inst.components.stackable:Get():Remove() 9end 10 inst:AddComponent("deployable") 11 inst.components.deployable.ondeploy = OnDeploy 12 13 即可用木板种鱼人房。不要与“生鲜售卖机”一同修改

2025/04/23 · Bny

YN333-用犬牙种海象窝

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三三.用犬牙种海象窝 3 4 用MT管理器打开游戏目录/assets/scripts/prefabs/houndstooth.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6local function OnDeploy (inst, pt) 7 SpawnPrefab("walrus_camp").Transform:SetPosition(pt.x, pt.y, pt.z) 8 inst.components.stackable:Get():Remove() 9end 10 inst:AddComponent("deployable") 11 inst.components.deployable.ondeploy = OnDeploy 12 13 即可用犬牙种海象窝

2025/04/23 · Bny

YN334-海象窝可烧掉

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三四.海象窝可烧掉 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/walrus_camp.lua文件,在inst:AddComponent("inspectable")的下一行插入MakeLargeBurnable(inst) 5 6 即可烧掉海象窝

2025/04/23 · Bny

YN335-用铥矿碎片种猴子桶

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三五.用铥矿碎片种猴子桶 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/thulecite_pieces.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6local function OnDeploy (inst, pt) 7 SpawnPrefab("monkeybarrel").Transform:SetPosition(pt.x, pt.y, pt.z) 8 inst.components.stackable:Get():Remove() 9end 10 inst:AddComponent("deployable") 11 inst.components.deployable.ondeploy = OnDeploy 12 13 即可用铥矿碎片种猴子桶。不要与“小冰山”一同修改

2025/04/23 · Bny

YN336-吃触手皮周围生触手

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三六.吃触手皮周围生触手 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/tentaclespots.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6function tentaclesfn(inst, reader) 7 local pt = Vector3(reader.Transform:GetWorldPosition()) 8 local numtentacles = 9 9 reader:StartThread(function() 10 for k = 1, numtentacles do 11 local theta = math.random() * 2 * PI 12 local radius = math.random(9, 24) 13 local result_offset = FindValidPositionByFan(theta, radius, 12, function(offset) 14 local x,y,z = (pt + offset):Get() 15 local ents = TheSim:FindEntities(x,y,z , 1) 16 return not next(ents) 17 end) 18 if result_offset then 19 local tentacle = SpawnPrefab("tentacle") 20 tentacle.Transform:SetPosition((pt + result_offset):Get()) 21 GetPlayer().components.playercontroller:ShakeCamera(reader, "FULL", 0.2, 0.02, .25, 40) 22 local fx = SpawnPrefab("splash_ocean") 23 local pos = pt + result_offset 24 fx.Transform:SetPosition(pos.x, pos.y, pos.z) 25 tentacle.sg:GoToState("attack_pre") 26 end 27 Sleep(.33) 28 end 29 end) 30 return true 31end 32 inst:AddComponent("edible") 33 inst.components.edible:SetOnEatenFn(tentaclesfn) 34 35 即可吃触手皮周围生9个触手,这不是用来保护主角的,而是为了不让触手绝种,所以不要在基地周围吃触手皮

2025/04/23 · Bny

YN337-用蜂蜜种野生蜂窝

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三七.用蜂蜜种野生蜂窝 3 4 用MT管理器打开游戏目录/assets/scripts/prefabs/honey.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6local function OnDeploy (inst, pt) 7 SpawnPrefab("beehive").Transform:SetPosition(pt.x, pt.y, pt.z) 8 inst.components.stackable:Get():Remove() 9end 10 inst:AddComponent("deployable") 11 inst.components.deployable.ondeploy = OnDeploy 12 13 即可用蜂蜜种野生蜂窝

2025/04/23 · Bny

YN338-用蜂刺种杀人蜂窝

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三八.用蜂刺种杀人蜂窝 3 4 用MT管理器打开游戏目录/assets/scripts/prefabs/stinger.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6local function OnDeploy (inst, pt) 7 SpawnPrefab("wasphive").Transform:SetPosition(pt.x, pt.y, pt.z) 8 inst.components.stackable:Get():Remove() 9end 10 inst:AddComponent("deployable") 11 inst.components.deployable.ondeploy = OnDeploy 12 13 即可用蜂刺种杀人蜂窝,种下赶快跑啊。不要与“人工女友”一同修改

2025/04/23 · Bny

YN339-用猪皮种猪火炬

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三三九.用猪皮种猪火炬 3 4 用MT管理器打开游戏目录/assets/scripts/prefabs/pigskin.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6local function OnDeploy (inst, pt) 7 SpawnPrefab("pigtorch").Transform:SetPosition(pt.x, pt.y, pt.z) 8 inst.components.stackable:Get():Remove() 9end 10 inst:AddComponent("deployable") 11 inst.components.deployable.ondeploy = OnDeploy 12 13 即可用猪皮种猪火炬,当主角不与火炬在同一屏时,会生出猪守卫。不要与“霸王盔”一同修改

2025/04/23 · Bny

YN340-增大巨鹿出现概率

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三四0.增大巨鹿出现概率 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning_override.lua文件,将下列内容: 5 6 basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) 7 basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) 8 basehassler:OverrideAttackChance("DEERCLOPS", .33) 9 elseif difficulty == "often" then 10 basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) 11 basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) 12 basehassler:OverrideAttackChance("DEERCLOPS", 1.1) 13 elseif difficulty == "always" then 14 basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) 15 basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", true) 16 basehassler:OverrideAttackChance("DEERCLOPS", 1.1) 17 18 替换为: 19 20 basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) 21 basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) 22 basehassler:OverrideAttackChance("DEERCLOPS", 1.1) 23 elseif difficulty == "often" then 24 basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) 25 basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) 26 basehassler:OverrideAttackChance("DEERCLOPS", 2.1) 27 elseif difficulty == "always" then 28 basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) 29 basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", true) 30 basehassler:OverrideAttackChance("DEERCLOPS", 3.1) 31 32 即可增大巨鹿出现概率

2025/04/23 · Bny

YN341-让游戏中的一天更漫长(1天从真实世界的8分钟修改为16分钟)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2三四一.让游戏中的一天更漫长(1天从真实世界的8分钟修改为16分钟) 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件,将local seg_time = 30替换为local seg_time = 60 5 6 即可使游戏中的1天从真实世界的8分钟延长为16分钟

2025/04/23 · Bny