Skip to content

Commit

Permalink
Drip input
Browse files Browse the repository at this point in the history
  • Loading branch information
Shtrecker committed Nov 17, 2024
1 parent add60e5 commit 16bfe9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/xrGame/HudItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1092,11 +1092,16 @@ bool CHudItem::Weapon_SetKeyRepeatFlagIfNeeded(u32 kfACTTYPE) const
bool result = CanStartAction();
if (!result)
{
if (Actor()->GetMovementState(eReal) & ACTOR_DEFS::EMoveCommand::mcSprint || GetState() != eIdle)
if (Actor()->GetMovementState(eReal) & ACTOR_DEFS::EMoveCommand::mcSprint)
{
Actor()->SetMovementState(eWishful, mcSprint, false);
Actor()->SetActorKeyRepeatFlag((ACTOR_DEFS::EActorKeyflags)kfACTTYPE, true);
}
else if (CWeapon* wpn = smart_cast<CWeapon*>(this))
{
if (wpn->IsMisfire() && (kfACTTYPE == ACTOR_DEFS::EActorKeyflags::kfRELOAD || kfACTTYPE == ACTOR_DEFS::EActorKeyflags::kfNEXTAMMO))
Actor()->SetActorKeyRepeatFlag((ACTOR_DEFS::EActorKeyflags)kfACTTYPE, true);
}
}

return result;
Expand Down

0 comments on commit 16bfe9b

Please sign in to comment.