diff options
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r-- | source/ClientHandle.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index f8bfa5b15..4afa2fdbc 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -1193,6 +1193,17 @@ void cClientHandle::HandleEntityAction(int a_EntityID, char a_ActionID) m_Player->GetWorld()->BroadcastPlayerAnimation(*m_Player, 3); break; } + case 4: // Start sprinting + { + m_Player->SetSprint(true); + break; + } + case 5: // Stop sprinting + { + m_Player->SetSprint(false); + SendPlayerMaxSpeed(); + break; + } } } |