Project Zomboid

Project Zomboid

229 个评价
Speed Framework
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
20.180 KB
2023 年 3 月 3 日 下午 2:35
2023 年 6 月 10 日 上午 6:11
4 项改动说明 ( 查看 )

订阅以下载
Speed Framework

在 Tchernobill 的 3 个合集中
PZ Build 41
27 件物品
Taste of Vanilla B41
35 件物品
Modder Tools
5 件物品
描述
Allows other mods to change player speed.

How to change a player speed
You need to call the following code when you want to change the speed:
SpeedFramework.SetPlayerSpeed(player, speedModifier)
player must be a valid IsoPlayer object.
speedModifier is a gain: 0.5 will half your speed. 2.0 will double your speed. nil will deactivate.

Mods based on this
Note that only one of them can be active at a time.

Ask for permission[theindiestone.com]
This mod can only be added to and extended with the express permission from the original creator. Having received permission, credit must be given to the original creator, both within the files of the mod and wherever the mod roams online.

If no permission is received you may not alter the mod.

You wanna support? A nice word is always welcome. Constructive feedback too. Else you can
[ko-fi.com]

Workshop ID: 2941768575
Mod ID: SpeedFramework
28 条留言
Eidzoku Makura 8 月 1 日 上午 2:06 
@Tchernobill how can I contact you? I want to use this framework in my mod
RedChili 3 月 28 日 上午 5:46 
Hell yeah dude, thank you so much!
Tchernobill  [作者] 3 月 28 日 上午 5:23 
@RedChili this is part of TchernoLib B42
RedChili 3 月 28 日 上午 5:19 
Hey, I would love to use this framework in a mod for b42, and all it takes for your mod to work is to put it in the b42 folder. If you could make this small change it would save me so much headache and I would be extremely grateful! Or if you allow me to copy the MovePlayer.lua and SpeedFramework.lua directly to my mod with credit given to you in several places.
Lucasif 2 月 15 日 下午 7:39 
Any chance this is scheduled to be updated to B42?
Josko 2024 年 8 月 23 日 下午 1:27 
Hello! I have been using this framework to create a trait that increased player speed by 2.0 if running or sprinting and then set it to 1.0, the only problem I have is that when I set it to 1.0 it will force everything to use that speed right? Even Shoes speed mod? If that is the case, is there another way to do it?
Tchernobill  [作者] 2024 年 8 月 8 日 下午 3:00 
@Monkey hello fellow modder. shoes speed do not work without mod in b42. see Shoes speed mod
Monkey 2024 年 8 月 3 日 上午 8:43 
Question. Does this override speed modifiers such as when wearing different shoes? Thanks!
Exavi 2024 年 6 月 28 日 上午 8:31 
I can change speed only in tree? Or its change all speed settings to static one number?
Agitatio 2023 年 11 月 22 日 上午 10:52 
Offset issue with True Actions is still present unfortunately, even after 1.2 update.