Sprint, Jog and Walk Modes in Character Movement Component. (Networked)

So, most of the tutorials I saw of implementing sprint inside CMC is using CUSTOM FLAG 0, The reasoning behind that is unlike Dash or Slide this is “continuous” movement mode so it makes sense to reserve a custom flag for something like sprint.

What I can’t wrap my mind around is:

  • What if the game has like Skyrim a Walk, Jog and Sprint mode? with Jog being the default one. So now will we use another FLAG? since Jog is also a continuous mode.
  • What about controllers? some games implement dynamic speed with controller sticks, so you can walk real slow just by pushing very lightly. How will that get networked inside CMC?

TBF I was hoping that people would just use the existing “MaxWalkSpeed” to implement any kind of movement mode that is in “WALKING” category but none of the articles I read do this they always waste a CUSTOM FLAG on it.

Take a look at this: GitHub - Vaei/PredictedMovement: CMC extended for predicted abilities

1 Like

Thanks that is exactly what I was thinking, they handle the modifier movement mode extremely well.