Skip to content

Commit 4cb96c6

Browse files
committed
Update fx_blood.cpp
1 parent 077f599 commit 4cb96c6

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/game/client/fx_blood.cpp

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#include "tier0/memdbgon.h"
2727

2828
#ifdef BDSBASE
29-
#ifndef TF_CLIENT_DLL
29+
#ifdef TF_CLIENT_DLL
30+
ConVar r_classic_blood("r_classic_blood", "0", FCVAR_DEVELOPMENTONLY);
31+
#else
3032
ConVar r_classic_blood("r_classic_blood", "0", FCVAR_ARCHIVE);
3133
#endif
3234
#endif
@@ -510,7 +512,6 @@ void BloodImpactCallback( const CEffectData & data )
510512
bool bFoundBlood = false;
511513

512514
#ifdef BDSBASE
513-
#ifndef TF_CLIENT_DLL
514515
if (!r_classic_blood.GetBool())
515516
{
516517
// Find which sort of blood we are
@@ -526,20 +527,6 @@ void BloodImpactCallback( const CEffectData & data )
526527
}
527528
}
528529
}
529-
#else
530-
// Find which sort of blood we are
531-
for (int i = 0; i < ARRAYSIZE(bloodCallbacks); i++)
532-
{
533-
if (bloodCallbacks[i].nColor == data.m_nColor)
534-
{
535-
QAngle vecAngles;
536-
VectorAngles(-data.m_vNormal, vecAngles);
537-
DispatchParticleEffect(bloodCallbacks[i].lpszParticleSystemName, data.m_vOrigin, vecAngles);
538-
bFoundBlood = true;
539-
break;
540-
}
541-
}
542-
#endif
543530
#else
544531
// Find which sort of blood we are
545532
for (int i = 0; i < ARRAYSIZE(bloodCallbacks); i++)

0 commit comments

Comments
 (0)