Skip to content

Commit 81a645e

Browse files
committed
finish implementation
1 parent 757a1cd commit 81a645e

36 files changed

+2396
-70
lines changed

src/game/client/fx_blood.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
// memdbgon must be the last include file in a .cpp file!!!
2626
#include "tier0/memdbgon.h"
2727

28-
#ifdef BDSBASE
29-
#ifdef TF_CLIENT_DLL
30-
ConVar r_classic_blood("r_classic_blood", "0", FCVAR_DEVELOPMENTONLY);
31-
#else
32-
ConVar r_classic_blood("r_classic_blood", "0", FCVAR_ARCHIVE);
33-
#endif
34-
#endif
35-
3628
CLIENTEFFECT_REGISTER_BEGIN( PrecacheEffectBloodSpray )
3729
CLIENTEFFECT_MATERIAL( "effects/blood_core" )
3830
CLIENTEFFECT_MATERIAL( "effects/blood_gore" )
@@ -510,24 +502,6 @@ DECLARE_CLIENT_EFFECT( "bloodspray", BloodSprayCallback );
510502
void BloodImpactCallback( const CEffectData & data )
511503
{
512504
bool bFoundBlood = false;
513-
514-
#ifdef BDSBASE
515-
if (!r_classic_blood.GetBool())
516-
{
517-
// Find which sort of blood we are
518-
for (int i = 0; i < ARRAYSIZE(bloodCallbacks); i++)
519-
{
520-
if (bloodCallbacks[i].nColor == data.m_nColor)
521-
{
522-
QAngle vecAngles;
523-
VectorAngles(-data.m_vNormal, vecAngles);
524-
DispatchParticleEffect(bloodCallbacks[i].lpszParticleSystemName, data.m_vOrigin, vecAngles);
525-
bFoundBlood = true;
526-
break;
527-
}
528-
}
529-
}
530-
#else
531505
// Find which sort of blood we are
532506
for (int i = 0; i < ARRAYSIZE(bloodCallbacks); i++)
533507
{
@@ -540,7 +514,6 @@ void BloodImpactCallback( const CEffectData & data )
540514
break;
541515
}
542516
}
543-
#endif
544517

545518
if ( bFoundBlood == false )
546519
{

src/game/client/hl2/hud_locator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ bool CHudLocator::ShouldDraw( void )
128128
if( pPlayer->GetVehicle() )
129129
return false;
130130

131+
#ifdef HL2_EPISODIC
131132
if( pPlayer->m_HL2Local.m_vecLocatorOrigin == vec3_invalid )
132133
return false;
134+
#endif //HL2_EPISODIC
133135

134136
return true;
135137
}

src/game/server/ai_behavior_follow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
#include "ndebugoverlay.h"
1919
#include "ai_senses.h"
2020

21+
//TDT - Episodic Issues: Here we include the hl2mp gamerules so that calls to darkness mode work.
22+
#ifdef HL2MP
23+
#include "hl2mp_gamerules.h"
24+
#endif
25+
2126
#ifdef HL2_EPISODIC
2227
#include "info_darknessmode_lightsource.h"
2328
#endif

src/game/server/ai_behavior_passenger.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,10 @@ void CAI_PassengerBehavior::DetachFromVehicle( void )
863863
GetOuter()->AddFlag( FL_FLY );
864864
GetOuter()->SetGroundEntity( NULL );
865865
GetOuter()->SetCollisionGroup( COLLISION_GROUP_NPC );
866+
//TDT - Episodic Issues: We add in this if def solely for people who DO NOT want episode 2 content.
867+
#ifdef HL2_EPISODIC
866868
m_hVehicle->RemovePhysicsChild( GetOuter() );
869+
#endif
867870
}
868871

869872
//-----------------------------------------------------------------------------
@@ -888,8 +891,11 @@ void CAI_PassengerBehavior::AttachToVehicle( void )
888891
// Set our destination target
889892
GetEntryTarget( &m_vecTargetPosition, &m_vecTargetAngles );
890893

894+
//TDT - Episodic Issues: We add in this if def solely for people who DO NOT want episode 2 content.
895+
#ifdef HL2_EPISODIC
891896
// Get physics messages from our attached physics object
892897
m_hVehicle->AddPhysicsChild( GetOuter() );
898+
#endif
893899
}
894900

895901
//-----------------------------------------------------------------------------

src/game/server/basecombatcharacter.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
#include "saverestoretypes.h"
4040
#include "nav_mesh.h"
4141

42+
//TDT - Episodic Issues: Here we include the hl2mp gamerules so that calls to darkness mode work.
43+
#ifdef HL2MP
44+
#include "hl2mp_gamerules.h"
45+
#endif
46+
4247
#ifndef BDSBASE
4348
#ifdef TF_DLL
4449
#include "nav_mesh/tf_nav_area.h"

src/game/server/episodic/weapon_striderbuster.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ ConVar striderbuster_dive_force( "striderbuster_dive_force", "-200" ); // How mu
5050

5151
ConVar striderbuster_use_particle_flare( "striderbuster_use_particle_flare", "1" );
5252

53+
#ifdef HL2_EPISODIC //TDT - Episodic Issues: Code can't compile without using an ifdef here.
5354
#define STRIDERBUSTER_FLAG_KNOCKED_OFF_STRIDER 0x00000001 // We were knocked off of a strider after the player attached me.
5455

5556
#define SF_DONT_WEAPON_MANAGE 0x800000
@@ -1173,3 +1174,4 @@ bool StriderBuster_WasKnockedOffStrider( CBaseEntity *pEntity )
11731174

11741175
return false;
11751176
}
1177+
#endif //HL2_EPISODIC

src/game/server/hl2/npc_BaseZombie.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
#include "weapon_physcannon.h"
4848
#include "ammodef.h"
4949
#include "vehicle_base.h"
50+
51+
//TDT - Episodic Issues: Here we include the hl2mp gamerules so that calls to darkness mode work.
52+
#ifdef HL2MP
53+
#include "hl2mp_gamerules.h"
54+
#endif
5055

5156
// memdbgon must be the last include file in a .cpp file!!!
5257
#include "tier0/memdbgon.h"

src/game/server/hl2/npc_alyx_episodic.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
#include "weapon_flaregun.h"
3838
#include "env_debughistory.h"
3939

40+
//TDT - Episodic Issues: Here we include the hl2mp gamerules so that calls to darkness mode work.
41+
#ifdef HL2MP
42+
#include "hl2mp_gamerules.h"
43+
#endif
44+
4045
extern Vector PointOnLineNearestPoint(const Vector& vStartPos, const Vector& vEndPos, const Vector& vPoint);
4146

4247
// memdbgon must be the last include file in a .cpp file!!!

src/game/server/hl2/npc_headcrab.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
#include "hl2_gamerules.h"
3434
#include "decals.h"
3535

36+
//TDT - Episodic Issues: Here we include the hl2mp gamerules so that calls to darkness mode work.
37+
#ifdef HL2MP
38+
#include "hl2mp_gamerules.h"
39+
#endif
40+
3641
// memdbgon must be the last include file in a .cpp file!!!
3742
#include "tier0/memdbgon.h"
3843

src/game/server/hl2/npc_zombine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535

3636
#include "ai_interactions.h"
3737

38+
//TDT - Episodic Issues: Here we include the hl2mp gamerules so that calls to darkness mode work.
39+
#ifdef HL2MP
40+
#include "hl2mp_gamerules.h"
41+
#endif
42+
3843
// memdbgon must be the last include file in a .cpp file!!!
3944
#include "tier0/memdbgon.h"
4045

0 commit comments

Comments
 (0)