@@ -346,8 +346,12 @@ CTFWeaponBase::CTFWeaponBase()
346346 m_eStrangeType = STRANGE_UNKNOWN;
347347 m_eStatTrakModuleType = MODULE_UNKNOWN;
348348
349+ #ifdef BDSBASE
350+ StopInspect ();
351+ #else
349352 m_flInspectAnimEndTime = -1 .f ;
350353 m_nInspectStage = INSPECT_INVALID;
354+ #endif
351355}
352356
353357CTFWeaponBase::~CTFWeaponBase ()
@@ -800,8 +804,12 @@ bool CTFWeaponBase::SendWeaponAnim( int iActivity )
800804 // allow other activity to override the inspect
801805 if ( !IsInspectActivity ( iActivity ) )
802806 {
807+ #ifdef BDSBASE
808+ StopInspect ();
809+ #else
803810 m_flInspectAnimEndTime = -1 .f ;
804811 m_nInspectStage = INSPECT_INVALID;
812+ #endif
805813 return BaseClass::SendWeaponAnim ( iActivity );
806814 }
807815
@@ -2614,8 +2622,12 @@ void CTFWeaponBase::HandleInspect()
26142622 }
26152623#endif
26162624
2617- m_nInspectStage = INSPECT_INVALID;
2625+ #ifdef BDSBASE
2626+ StopInspect ();
2627+ #else
26182628 m_flInspectAnimEndTime = -1 .f ;
2629+ m_nInspectStage = INSPECT_INVALID;
2630+ #endif
26192631 if ( SendWeaponAnim ( GetInspectActivity ( INSPECT_START ) ) )
26202632 {
26212633 m_flInspectAnimEndTime = gpGlobals->curtime + SequenceDuration ();
@@ -2647,8 +2659,12 @@ void CTFWeaponBase::HandleInspect()
26472659 }
26482660 else if ( m_nInspectStage == INSPECT_END )
26492661 {
2662+ #ifdef BDSBASE
2663+ StopInspect ();
2664+ #else
26502665 m_flInspectAnimEndTime = -1 .f ;
26512666 m_nInspectStage = INSPECT_INVALID;
2667+ #endif
26522668 SendWeaponAnim ( ACT_VM_IDLE );
26532669 }
26542670 }
@@ -2657,6 +2673,17 @@ void CTFWeaponBase::HandleInspect()
26572673 m_bInspecting = pPlayer->IsInspecting ();
26582674}
26592675
2676+ #ifdef BDSBASE
2677+ // -----------------------------------------------------------------------------
2678+ // Purpose:
2679+ // -----------------------------------------------------------------------------
2680+ void CTFWeaponBase::StopInspect ()
2681+ {
2682+ m_flInspectAnimEndTime = -1 .f ;
2683+ m_nInspectStage = INSPECT_INVALID;
2684+ }
2685+ #endif
2686+
26602687// -----------------------------------------------------------------------------
26612688// Purpose:
26622689// -----------------------------------------------------------------------------
0 commit comments