MCPcopy Create free account
hub / github.com/Vaei/PredictedMovement / Sprint

Method Sprint

Source/PredictedMovement/Private/Sprint/SprintMovement.cpp:142–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void USprintMovement::Sprint(bool bClientSimulation)
143{
144 if (!HasValidData())
145 {
146 return;
147 }
148
149 if (!bClientSimulation && !CanSprintInCurrentState())
150 {
151 return;
152 }
153
154 if (!bClientSimulation)
155 {
156 SprintCharacterOwner->SetIsSprinting(true);
157 }
158 SprintCharacterOwner->OnStartSprint();
159}
160
161void USprintMovement::UnSprint(bool bClientSimulation)
162{

Callers

nothing calls this directly

Calls 2

SetIsSprintingMethod · 0.80
OnStartSprintMethod · 0.80

Tested by

no test coverage detected