Skip to content

Commit 6b5006e

Browse files
committed
Merge pull request BSVino#53 from TomyLobo/fix-missing-particle-attachment
Remove particles involving view model when deploying a new weapon
2 parents c9ee327 + 3abab4f commit 6b5006e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mp/src/game/shared/sdk/weapon_sdkbase.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1965,6 +1965,11 @@ bool CWeaponSDKBase::Deploy( )
19651965

19661966
if (GetPlayerOwner()->GetCurrentTime() < GetPlayerOwner()->m_flDisarmRedraw)
19671967
return false;
1968+
1969+
#ifdef CLIENT_DLL
1970+
CBaseViewModel* vm = GetPlayerOwner()->GetViewModel( m_nViewModelIndex );
1971+
vm->ParticleProp()->StopParticlesInvolving(vm);
1972+
#endif
19681973
}
19691974

19701975
bool bDeploy = DefaultDeploy( (char*)GetViewModel(), (char*)GetWorldModel(), GetDeployActivity(), (char*)GetAnimPrefix() );

0 commit comments

Comments
 (0)