This is episode 140 of the third-person shooter series based on Unreal Advanced Locomotion System. Today, we are going to implement a way to limit the maximum movement speed of the character based on the weight of the inventory. Here, I will consider only the weight of weapons towards total weight. I will define weight threshold values for running and sprinting. For example, if the character is carrying 3 weapons including a heavy RPG, character will not be able to run or sprint, only walk. If the character is carrying 3 weapons without a heavy RPG, character can run, but can's sprint, if the character is carrying only 2 weapons, he can run or sprint without any limitation until stamin runs out.
project files
https://www.patreon.com/posts/63654325