fix: run speed modifiers stack as the client's do

LWOControllablePhysComponent::msgAddRunspeedModifier (0x00be0af0) and
msgRemoveRunSpeedModifier (0x00be0720): a modifier over 1000 or of exactly
500 counts for nothing, any slow (under 500) wins with the lowest one, and
otherwise the highest boost is the speed. Before, the last one applied won,
so a small boost cast after a big one, or a boost cast while slowed,
replaced it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 14:50:33 -06:00
parent 55a6d0babc
commit 9265ab0e10
3 changed files with 66 additions and 9 deletions

View File

@@ -395,6 +395,11 @@ private:
*/
bool m_IsTeleporting;
/**
* Works the speed out of the active speed boosts: the lowest slow if there is one, otherwise the highest boost
*/
void UpdateSpeedBoost();
/**
* The list of speed boosts for this entity
*/