Project Zomboid

Project Zomboid

211 ratings
Speed Framework
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
20.180 KB
Mar 3, 2023 @ 2:35pm
Jun 10, 2023 @ 6:11am
4 Change Notes ( view )

Subscribe to download
Speed Framework

In 3 collections by Tchernobill
PZ Build 41
27 items
Taste of Vanilla B41
35 items
Modder Tools
5 items
Description
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
27 Comments
RedChili Mar 28 @ 5:46am 
Hell yeah dude, thank you so much!
Tchernobill  [author] Mar 28 @ 5:23am 
@RedChili this is part of TchernoLib B42
RedChili Mar 28 @ 5:19am 
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 Feb 15 @ 7:39pm 
Any chance this is scheduled to be updated to B42?
Josko Aug 23, 2024 @ 1:27pm 
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  [author] Aug 8, 2024 @ 3:00pm 
@Monkey hello fellow modder. shoes speed do not work without mod in b42. see Shoes speed mod
Monkey Aug 3, 2024 @ 8:43am 
Question. Does this override speed modifiers such as when wearing different shoes? Thanks!
Шесосоп Jun 28, 2024 @ 8:31am 
I can change speed only in tree? Or its change all speed settings to static one number?
Agitatio Nov 22, 2023 @ 10:52am 
Offset issue with True Actions is still present unfortunately, even after 1.2 update.
Alex Nov 15, 2023 @ 4:44am 
Hello! Can i make 0 speed for player?