mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-07-15 22:09:58 +00:00
Merge f834704bc2 into ed8209cc35
This commit is contained in:
commit
342c31af94
@ -4981,9 +4981,10 @@ bool C_BaseAnimating::TestHitboxes( const Ray_t &ray, unsigned int fContentsMask
|
||||
VPhysicsSetObject( pReplace );
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2693,8 +2693,9 @@ bool CBaseAnimating::TestHitboxes( const Ray_t &ray, unsigned int fContentsMask,
|
||||
tr.surface.name = "**studio**";
|
||||
tr.surface.flags = SURF_HITBOX;
|
||||
tr.surface.surfaceProps = physprops->GetSurfaceIndex( pBone->pszSurfaceProp() );
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void CBaseAnimating::InitBoneControllers ( void ) // FIXME: rename
|
||||
|
||||
@ -6071,18 +6071,18 @@ bool UTIL_CreateScaledPhysObject( CBaseAnimating *pInstance, float flScale )
|
||||
pInstance->VPhysicsDestroyObject();
|
||||
pInstance->VPhysicsSetObject( pNewObject );
|
||||
|
||||
// Scale the base model as well
|
||||
pInstance->SetModelScale( flScale );
|
||||
|
||||
// Increase our model bounds
|
||||
const model_t *pModel = modelinfo->GetModel( pInstance->GetModelIndex() );
|
||||
if ( pModel )
|
||||
{
|
||||
Vector mins, maxs;
|
||||
modelinfo->GetModelBounds( pModel, mins, maxs );
|
||||
pInstance->SetCollisionBounds( mins*flScale, maxs*flScale );
|
||||
pInstance->SetCollisionBounds( mins, maxs );
|
||||
}
|
||||
|
||||
// Scale the base model as well
|
||||
pInstance->SetModelScale( flScale );
|
||||
|
||||
if ( pInstance->GetParent() )
|
||||
{
|
||||
pNewObject->SetShadow( 1e4, 1e4, false, false );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user