Project Zomboid

Project Zomboid

Not enough ratings
Speed Modify Do Affect
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
85.308 KB
4 Mar, 2023 @ 10:38pm
5 Mar, 2023 @ 12:50am
2 Change Notes ( view )

Subscribe to download
Speed Modify Do Affect

Description
Takes into account RunSpeedModifier for equipments.

Workshop ID: 2942498091
Mod ID: AffectSpeed
13 Comments
Azure 16 Jan, 2024 @ 6:48am 
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 30 Dec, 2023 @ 3:06am 
work?
Call of Fleet  [author] 23 Jun, 2023 @ 8:24pm 
@xapti
This mod also works on shoes, you only need use one mod
xapti 23 Jun, 2023 @ 8:15am 
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  [author] 31 May, 2023 @ 7:08am 
@Toy
BodyLocation
Toy 31 May, 2023 @ 5:20am 
另外我想问一下,原代码里面的getWornItems():getItem("Skirt");player:getWornItems():getItem("UnderwearExtra1");这些“Skirt”和“UnderwearExtra1”是游戏本体Steam\steamapps\common\ProjectZomboid\media\scripts\clothing目录下的item name开头的词还是物品信息里面的BodyLocation所对应的词?
Call of Fleet  [author] 31 May, 2023 @ 4:30am 
@Toy
可以修改, 无伤大雅
附魔的移速加成可能要看具体的mod, 我没有研究过
Toy 31 May, 2023 @ 3:15am 
另外我还想请问一下,因为现在有个附魔MOD的存在。首饰项链戒指等也会存在加移速的属性。目前这个MOD能把首饰的移速加成也算上吗。
Toy 31 May, 2023 @ 3:13am 
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 31 May, 2023 @ 3:13am 
作者你好,研究了一下你的代码再结合服务器和MOD实际效果发现如果没有一个上限或直接相乘的话可能会出现服务器很多超人的情况。所以我打算结合英雄联盟的移速计算公式:移速=【英雄移速+固定移速加成(如鞋子,水上行走符文等)】*【1+百分比移速加成(如缚法宝珠,扇子妈E等)】 改成:移速=玩家初始移速*【1+(鞋子移速-1)+(衣服移速-1)+(帽子移速-1)+(裤子移速-1)+。。。】的形式。但目前有一个问题就是我无法知道玩家初始移速是多少。或者我能否把您的代码: