add source-sdk-2013

This commit is contained in:
nillerusr
2022-03-01 23:00:42 +03:00
parent 88b8830e8b
commit edc8d6c584
3288 changed files with 3731 additions and 1062455 deletions
+12 -22
View File
@@ -40,7 +40,7 @@ void CRagdollLowViolenceManager::SetLowViolence( const char *pMapName )
#if !defined( CLIENT_DLL )
// the server doesn't worry about low violence during multiplayer games
if ( g_pGameRules && g_pGameRules->IsMultiplayer() )
if ( g_pGameRules->IsMultiplayer() )
{
m_bLowViolence = false;
}
@@ -333,8 +333,8 @@ void RagdollSetupCollisions( ragdoll_t &ragdoll, vcollide_t *pCollide, int model
const char *pBlock = pParse->GetCurrentBlockName();
if ( !strcmpi( pBlock, "collisionrules" ) )
{
IPhysicsCollisionSet *pSetRules = physics->FindOrCreateCollisionSet( modelIndex, ragdoll.listCount );
CRagdollCollisionRules rules( pSetRules );
IPhysicsCollisionSet *pSet = physics->FindOrCreateCollisionSet( modelIndex, ragdoll.listCount );
CRagdollCollisionRules rules(pSet);
pParse->ParseCustom( (void *)&rules, &rules );
bFoundRules = true;
}
@@ -742,12 +742,8 @@ bool ShouldRemoveThisRagdoll( CBaseAnimating *pRagdoll )
return false;
*/
// Bail if we have a null ragdoll pointer.
if ( !pRagdoll->m_pRagdoll )
return true;
Vector vMins, vMaxs;
Vector origin = pRagdoll->m_pRagdoll->GetRagdollOrigin();
pRagdoll->m_pRagdoll->GetRagdollBounds( vMins, vMaxs );
@@ -755,11 +751,8 @@ bool ShouldRemoveThisRagdoll( CBaseAnimating *pRagdoll )
{
if ( g_debug_ragdoll_removal.GetBool() )
{
if ( debugoverlay )
{
debugoverlay->AddBoxOverlay( origin, vMins, vMaxs, QAngle( 0, 0, 0 ), 0, 255, 0, 16, 5 );
debugoverlay->AddLineOverlay( origin, origin + Vector( 0, 0, 64 ), 0, 255, 0, true, 5 );
}
debugoverlay->AddBoxOverlay( origin, vMins, vMaxs, QAngle( 0, 0, 0 ), 0, 255, 0, 16, 5 );
debugoverlay->AddLineOverlay( origin, origin + Vector( 0, 0, 64 ), 0, 255, 0, true, 5 );
}
return true;
@@ -768,11 +761,8 @@ bool ShouldRemoveThisRagdoll( CBaseAnimating *pRagdoll )
{
if ( g_debug_ragdoll_removal.GetBool() )
{
if ( debugoverlay )
{
debugoverlay->AddBoxOverlay( origin, vMins, vMaxs, QAngle( 0, 0, 0 ), 0, 0, 255, 16, 5 );
debugoverlay->AddLineOverlay( origin, origin + Vector( 0, 0, 64 ), 0, 0, 255, true, 5 );
}
debugoverlay->AddBoxOverlay( origin, vMins, vMaxs, QAngle( 0, 0, 0 ), 0, 0, 255, 16, 5 );
debugoverlay->AddLineOverlay( origin, origin + Vector( 0, 0, 64 ), 0, 0, 255, true, 5 );
}
return true;
@@ -1053,14 +1043,14 @@ void CRagdollLRURetirement::MoveToTopOfLRU( CBaseAnimating *pRagdoll, bool bImpo
{
int iIndex = m_LRUImportantRagdolls.Head();
CBaseAnimating *pRagdollLRU = m_LRUImportantRagdolls[iIndex].Get();
CBaseAnimating *pRagdoll = m_LRUImportantRagdolls[iIndex].Get();
if ( pRagdollLRU )
if ( pRagdoll )
{
#ifdef CLIENT_DLL
pRagdollLRU->SUB_Remove();
pRagdoll->SUB_Remove();
#else
pRagdollLRU->SUB_StartFadeOut( 0 );
pRagdoll->SUB_StartFadeOut( 0 );
#endif
m_LRUImportantRagdolls.Remove(iIndex);
}