Project Zomboid

Project Zomboid

34 ratings
MoodleCombatSpeed
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
23.518 KB
Sep 18, 2022 @ 8:08am
Feb 7, 2024 @ 1:19pm
4 Change Notes ( view )

Subscribe to download
MoodleCombatSpeed

Description
Adds a moodle that shows your current combat speed.


Combat speed depends on many (many many) parameters
  • The base speed of the weapon you use.
  • Whether the weapon is heavy or not.
  • Your associated weapon skill level. (the skill depends on your current weapon)
  • Your fitness level.
  • Your worn clothes.
  • Your overload status.
  • Your endurance status.
  • Your hand injuries & bandages.
  • Your body temperature.
  • Your handling of the weapon (one or two handed).
  • Some specific traits (Axeman for axes).
  • A random value recomputed each swing.(*)
  • An "animation time" related to the weapon or weapon type I still have to analyse.(*)
The final result is accessible and used as input of the moodle in this mod.

Why is it only an estimation?
Some of the parameters(*) need specific handling.
For the random swing value, the mean possible value is taken. (not that for some minmaxxed characters the randomness can be nullified by internal saturations: typically the optimised axeman in good shape has no randomness)
For the "animation time" I use an approximation that needs to be verified.
More specifically I used the timings given by the debug / dev / Animation viewer accessible in debug.


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: 2864671032
Mod ID: MoodleCombatSpeed
7 Comments
Nyamnyam Feb 14, 2024 @ 12:21pm 
hi, i have a question regarding weapon speed. I realized that BaseSpeed is one of the deciding factor for weapon speed as when i changed WoodAxe BaseSpeed to 0.00001, the weapon swing becomes reeeeeeally slow even with Axe lvl 10 etc. But when i changed it to 9999 the Axe swing speed is faster but negligible. Im guessing the game puts some min max limit. So i dig around and found that the game has this thing called CombatSpeed (can be seen in media/AnimSets/player/melee/2handed/2HDefault.xml -> <m_SpeedScale>CombatSpeed</m_SpeedScale> ) which probably limits the weapon swing speed. Do you know where i can adjust the CombatSpeed behaviour? Basically i just want to remove the min max limits.

i thing there's a modder who changed the <m_SpeedScale>CombatSpeed</m_SpeedScale> into <m_SpeedScale>1.30</m_SpeedScale> and that kind of remove the attack speed limits i guess
kezza596 Nov 30, 2022 @ 11:22am 
Is there any way to stop the moodle shaking? I'm slightly overencumbered 99% of the time as I have a mod for strength training, this moodle is doing the most aggressive shake constantly, very distracting
Tchernobill  [author] Sep 20, 2022 @ 2:53pm 
Version 1.2 is out
It now includes an estimation of the animation time.
It can therefore be used to compare weapons between themselves.
Tchernobill  [author] Sep 20, 2022 @ 9:15am 
Version 1.1 is out
The combat speed is now constantly updated without the randomness.
Note that the animation is is not yet taken into account, that's why 2handed have such high speeds and one handed such a low speed.
Wrench In The Plan Sep 19, 2022 @ 1:59pm 
@decimeMati: Since there are so many things can influence combat speed, I think it might be helpful to be able to quickly see one's swing speed at a glance, as opposed to a general idea of whether one can swing something quickly or not.
Ullatec Sep 18, 2022 @ 12:41pm 
Interesting.I didnt know a few of those values you listed effected swing speed.
Will be interesting to test a few outfits to see how much they make.
MyNameis_Mati Sep 18, 2022 @ 10:11am 
Last question, WHY should I install it? for what purpose or what benefit will it bring?