Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions Client/mods/deathmatch/logic/CClientPed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3135,14 +3135,10 @@ void CClientPed::ApplyControllerStateFixes(CControllerState& Current)
// Disable the fire keys whilst crouching as well
Current.ButtonCircle = 0;
Current.LeftShoulder1 = 0;
if (m_ulLastTimeBeganCrouch >= ulNow - 400.0f * fSpeedRatio)
{
// Disable double crouching (another anim cut)
if (g_pClientGame->IsUsingAlternatePulseOrder())
Current.ShockButtonL = 255; // Do this differently if we have changed the pulse order
else
Current.ShockButtonL = 0;
}

// Disable double crouching (another anim cut)
if (ulNow - m_ulLastTimeBeganCrouch < 500 * fSpeedRatio)
Current.ShockButtonL = IsDucked() ? 255 : 0;
}
}
// If we just started aiming, make sure they dont try and crouch
Expand Down Expand Up @@ -7279,4 +7275,3 @@ void CClientPed::RunSwimTask() const

inWaterTask->SetAsPedTask(m_pPlayerPed, TASK_PRIORITY_EVENT_RESPONSE_NONTEMP, true);
}

Loading