Project Zomboid

Project Zomboid

评价数不足
移动速度修改生效
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
85.308 KB
2023 年 3 月 4 日 下午 10:38
2023 年 3 月 5 日 上午 12:50
2 项改动说明 ( 查看 )

订阅以下载
移动速度修改生效

描述
移动速度修改在游戏里没有效果, 这个mod就是让移动速度修改真的生效, 对大多数部位的服装有效.

移动速度修改非线性叠加:
如果你的鞋子让移动速度1.1倍, 同时你的裤子让移动速度1.1倍, 那么你的实际速度将是1.21倍.

和其他mod兼容, 可以在旧存档中加入.

你可以在沙盒设置中设置:
移动速度修改是否在以下情况生效: 瞄准, 走路, 奔跑, 冲刺.

这个mod修改自Shoes Speed mod: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2899775865

Workshop ID: 2942498091
Mod ID: AffectSpeed
13 条留言
Azure 2024 年 1 月 16 日 上午 6:48 
No that's the leap card, the correct one to use would be turbo, as the defect runs in the card photo, that card is jumping.
Sco 2023 年 12 月 30 日 上午 3:06 
work?
Call of Fleet  [作者] 2023 年 6 月 23 日 下午 8:24 
@xapti
This mod also works on shoes, you only need use one mod
xapti 2023 年 6 月 23 日 上午 8:15 
Does this really work for all equipment? Do you know if it conflicts with ShoesSpeed
by Tchernobill? I guess if THIS mod works, one wouldn't need the ShoesSpeed mod.
Call of Fleet  [作者] 2023 年 5 月 31 日 上午 7:08 
@Toy
BodyLocation
Toy 2023 年 5 月 31 日 上午 5:20 
另外我想问一下,原代码里面的getWornItems():getItem("Skirt");player:getWornItems():getItem("UnderwearExtra1");这些“Skirt”和“UnderwearExtra1”是游戏本体Steam\steamapps\common\ProjectZomboid\media\scripts\clothing目录下的item name开头的词还是物品信息里面的BodyLocation所对应的词?
Call of Fleet  [作者] 2023 年 5 月 31 日 上午 4:30 
@Toy
可以修改, 无伤大雅
附魔的移速加成可能要看具体的mod, 我没有研究过
Toy 2023 年 5 月 31 日 上午 3:15 
另外我还想请问一下,因为现在有个附魔MOD的存在。首饰项链戒指等也会存在加移速的属性。目前这个MOD能把首饰的移速加成也算上吗。
Toy 2023 年 5 月 31 日 上午 3:13 
local runSpeedModifier = shoesInventoryItem and shoesInventoryItem:getRunSpeedModifier() or 1.
local skirtInventoryItem = player:getWornItems():getItem("Skirt");
runSpeedModifier = runSpeedModifier * (skirtInventoryItem and skirtInventoryItem:getRunSpeedModifier() or 1.)
local underwearExtra1InventoryItem = player:getWornItems():getItem("UnderwearExtra1");
runSpeedModifier = runSpeedModifier * (underwearExtra1InventoryItem and underwearExtra1InventoryItem:getRunSpeedModifier() or 1.)
......
改为:
runSpeedModifier = runSpeedModifier * (((skirtInventoryItem and skirtInventoryItem:getRunSpeedModifier() or 1.) - 1 )+ ((underwearExtra1InventoryItem and underwearExtra1InventoryItem:getRunSpeedModifier() or 1.) - 1) + ...)
不知这样能否生效。
修改的话只作为服务器自用并且表明原作者,谢谢。
Toy 2023 年 5 月 31 日 上午 3:13 
作者你好,研究了一下你的代码再结合服务器和MOD实际效果发现如果没有一个上限或直接相乘的话可能会出现服务器很多超人的情况。所以我打算结合英雄联盟的移速计算公式:移速=【英雄移速+固定移速加成(如鞋子,水上行走符文等)】*【1+百分比移速加成(如缚法宝珠,扇子妈E等)】 改成:移速=玩家初始移速*【1+(鞋子移速-1)+(衣服移速-1)+(帽子移速-1)+(裤子移速-1)+。。。】的形式。但目前有一个问题就是我无法知道玩家初始移速是多少。或者我能否把您的代码: