This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3485,6 +3485,7 @@ void AHuman::Update()
3485
3485
// //////////////////////////////////
3486
3486
// Fire/Activate held devices
3487
3487
3488
+ ThrownDevice *pThrown = nullptr ;
3488
3489
if (m_pFGArm && m_pFGArm->IsAttached ())
3489
3490
{
3490
3491
// DOn't reach toward anything
@@ -3502,7 +3503,7 @@ void AHuman::Update()
3502
3503
// Throw whatever is held if it's a thrown device
3503
3504
else if (m_pFGArm->GetHeldMO ())
3504
3505
{
3505
- ThrownDevice * pThrown = dynamic_cast <ThrownDevice *>(m_pFGArm->GetHeldMO ());
3506
+ pThrown = dynamic_cast <ThrownDevice *>(m_pFGArm->GetHeldMO ());
3506
3507
if (pThrown)
3507
3508
{
3508
3509
if (m_Controller.IsState (WEAPON_FIRE))
@@ -3569,6 +3570,10 @@ void AHuman::Update()
3569
3570
m_pFGArm->SetHandPos (m_Pos + (m_HolsterOffset + Vector (15 , -15 )).GetXFlipped (m_HFlipped));
3570
3571
}
3571
3572
3573
+ if (!pThrown && m_ArmsState == THROWING_PREP) {
3574
+ m_ArmsState = WEAPON_READY;
3575
+ }
3576
+
3572
3577
if (m_pBGArm && m_pBGArm->IsAttached () && m_pBGArm->HoldsHeldDevice ())
3573
3578
{
3574
3579
m_pBGArm->GetHeldDevice ()->SetSharpAim (m_SharpAimProgress);
You can’t perform that action at this time.
0 commit comments