mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
add source-sdk-2013
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user