This commit is contained in:
speedvoltage 2025-03-29 21:43:37 +01:00 committed by GitHub
commit 60f484b0fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -769,6 +769,12 @@ void CPropCombineBall::SetBallAsLaunched( void )
WhizSoundThink();
}
bool CPropCombineBall::OnAttemptPhysGunPickup( CBasePlayer *pPhysGunUser, PhysGunPickup_t reason )
{
return ( !m_bHeld || pPhysGunUser == GetOwnerEntity() ?
CDefaultPlayerPickupVPhysics::OnAttemptPhysGunPickup( pPhysGunUser, reason ) : false );
}
//-----------------------------------------------------------------------------
// Lighten the mass so it's zippy toget to the gun
//-----------------------------------------------------------------------------

View file

@ -117,6 +117,7 @@ public:
private:
bool OnAttemptPhysGunPickup( CBasePlayer *, PhysGunPickup_t ) OVERRIDE;
void SetPlayerLaunched( CBasePlayer *pOwner );
float GetBallHoldDissolveTime();