mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-10 11:40:04 +03:00
Fix function call being in the wrong place
This commit is contained in:
parent
7c5c90ebeb
commit
4e7814eeea
@ -2544,9 +2544,6 @@ void CNPC_BaseZombie::ReleaseHeadcrab( const Vector &vecOrigin, const Vector &ve
|
|||||||
#ifdef MAPBASE
|
#ifdef MAPBASE
|
||||||
// Inherit some misc. properties
|
// Inherit some misc. properties
|
||||||
pGib->m_iViewHideFlags = m_iViewHideFlags;
|
pGib->m_iViewHideFlags = m_iViewHideFlags;
|
||||||
|
|
||||||
// Add response context for companion response (more reliable than checking for post-death zombie entity)
|
|
||||||
pCrab->AddContext( "from_zombie", "1", 2.0f );
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pGib->SetOwnerEntity( this );
|
pGib->SetOwnerEntity( this );
|
||||||
@ -2593,6 +2590,9 @@ void CNPC_BaseZombie::ReleaseHeadcrab( const Vector &vecOrigin, const Vector &ve
|
|||||||
// Inherit some misc. properties
|
// Inherit some misc. properties
|
||||||
pCrab->m_bForceServerRagdoll = m_bForceServerRagdoll;
|
pCrab->m_bForceServerRagdoll = m_bForceServerRagdoll;
|
||||||
pCrab->m_iViewHideFlags = m_iViewHideFlags;
|
pCrab->m_iViewHideFlags = m_iViewHideFlags;
|
||||||
|
|
||||||
|
// Add response context for companion response (more reliable than checking for post-death zombie entity)
|
||||||
|
pCrab->AddContext( "from_zombie", "1", 2.0f );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// make me the crab's owner to avoid collision issues
|
// make me the crab's owner to avoid collision issues
|
||||||
|
Loading…
x
Reference in New Issue
Block a user