Skip to content

Commit c647cf9

Browse files
committed
Fixed issue regarding Supportable and SupportOffsetWhileReloading
If a gun had SupportOffsetWhileReloading = true and you modified it's Supportable value to be only true while reloading (and false when not), the hand wouldn't support the gun on the reload. The one handed penalty is still applied to the reload tho, not sure how to account for this behaviour
1 parent 4f85571 commit c647cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Entities/AHuman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ void AHuman::PreControllerUpdate() {
22432243
} else if (heldDevice) {
22442244
if (HeldDevice* bgDevice = GetEquippedBGItem(); bgDevice && !heldDevice->IsOneHanded()) {
22452245
UnequipBGArm();
2246-
} else if (!bgDevice && !heldDevice->IsReloading() && heldDevice->IsSupportable()) {
2246+
} else if (!bgDevice && (!heldDevice->IsReloading() || (heldDevice->IsReloading() && heldDevice->GetUseSupportOffsetWhileReloading())) && heldDevice->IsSupportable()) {
22472247
m_pBGArm->SetHeldDeviceThisArmIsTryingToSupport(heldDevice);
22482248

22492249
if (!m_pBGArm->HasAnyHandTargets() && m_pBGArm->GetHandHasReachedCurrentTarget()) {

0 commit comments

Comments
 (0)