Skip to content

Commit 6e90202

Browse files
committed
improved how quiver ifdefs are handled.
1 parent 47f5631 commit 6e90202

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+110
-110
lines changed

src/game/client/client_quiver.vpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $Configuration
2929
$PreprocessorDefinitions "$BASE;SIXENSE" [!$SOURCESDK]
3030
$PreprocessorDefinitions "$BASE;DISABLE_GC_CONNECTION;DISABLE_IN_SOURCESDK;INVENTORY_VIA_WEBAPI" [$SOURCESDK]
3131
//custom options
32-
$PreprocessorDefinitions "$BASE;QUIVER_CLIENT_DLL;BDSBASE_DISCORD;BDSBASE_USE_LOCAL_SCHEMA;BDSBASE_CUSTOM_SCHEMA;BDSBASE_LEGACY_MAINMENU;BDSBASE_CURATED_ITEMS;BDSBASE_LEGACY_VIEWMODELS;BDSBASE_CURATED_ITEMS_ALLOWCOSMETICS;BDSBASE_ACHIEVEMENT_NOTIFICATIONS"
32+
$PreprocessorDefinitions "$BASE;QUIVER_DLL;BDSBASE_DISCORD;BDSBASE_USE_LOCAL_SCHEMA;BDSBASE_CUSTOM_SCHEMA;BDSBASE_LEGACY_MAINMENU;BDSBASE_CURATED_ITEMS;BDSBASE_LEGACY_VIEWMODELS;BDSBASE_CURATED_ITEMS_ALLOWCOSMETICS;BDSBASE_ACHIEVEMENT_NOTIFICATIONS"
3333
}
3434
}
3535

src/game/client/econ/backpack_panel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ void CBackpackPanel::AssignItemToPanel( CItemModelPanel *pPanel, int iIndex )
11411141
pItemDef = mapItems[it];
11421142
}
11431143

1144-
#ifdef QUIVER_CLIENT_DLL
1144+
#ifdef QUIVER_DLL
11451145
if (mapItems[it]->IsSoloItem())
11461146
{
11471147
tempItem.Init(pItemDef->GetDefinitionIndex(), AE_CUSTOMIZED, AE_USE_SCRIPT_VALUE, true);

src/game/client/tf/c_obj_sentrygun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void C_ObjectSentrygun::OnDataChanged( DataUpdateType_t updateType )
196196

197197
if ( m_nShieldLevel != m_nOldShieldLevel || m_bRecreateShield )
198198
{
199-
#ifdef QUIVER_CLIENT_DLL
199+
#ifdef QUIVER_DLL
200200
if ( m_nShieldLevel > SHIELD_DISABLE )
201201
#else
202202
if ( m_nShieldLevel > 0 )

src/game/client/tf/c_obj_sentrygun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class C_MuzzleFlashModel;
2323
enum
2424
{
2525
SHIELD_NONE = 0,
26-
#ifdef QUIVER_CLIENT_DLL
26+
#ifdef QUIVER_DLL
2727
SHIELD_DISABLE,
2828
#endif
2929
SHIELD_NORMAL, // 33% damage taken

src/game/client/tf/c_tf_player.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3981,7 +3981,7 @@ IMPLEMENT_CLIENTCLASS_DT( C_TFPlayer, DT_TFPlayer, CTFPlayer )
39813981
RecvPropInt(RECVINFO(m_nRestrictAchievements)),
39823982
RecvPropInt(RECVINFO(m_nRestrictQuests)),
39833983
#endif
3984-
#ifdef QUIVER_CLIENT_DLL
3984+
#ifdef QUIVER_DLL
39853985
RecvPropInt(RECVINFO(m_ArmorValue)),
39863986
RecvPropInt(RECVINFO(m_iMaxArmor)),
39873987
#endif
@@ -4005,7 +4005,7 @@ BEGIN_PREDICTION_DATA( C_TFPlayer )
40054005
DEFINE_PRED_FIELD( m_flVehicleReverseTime, FIELD_FLOAT, FTYPEDESC_INSENDTABLE ),
40064006
DEFINE_PRED_FIELD( m_flInspectTime, FIELD_FLOAT, FTYPEDESC_INSENDTABLE ),
40074007
DEFINE_PRED_FIELD( m_flHelpmeButtonPressTime, FIELD_FLOAT, FTYPEDESC_INSENDTABLE ),
4008-
#ifdef QUIVER_CLIENT_DLL
4008+
#ifdef QUIVER_DLL
40094009
DEFINE_PRED_FIELD(m_ArmorValue, FIELD_INTEGER, FTYPEDESC_INSENDTABLE | FTYPEDESC_ONLY_ERROR_IF_ABOVE_ZERO_TO_ZERO_OR_BELOW_ETC),
40104010
#endif
40114011
END_PREDICTION_DATA()
@@ -4147,7 +4147,7 @@ C_TFPlayer::C_TFPlayer() :
41474147
m_flNeckScale = 1.f;
41484148
#endif
41494149

4150-
#ifdef QUIVER_CLIENT_DLL
4150+
#ifdef QUIVER_DLL
41514151
m_ArmorValue = 0.0f;
41524152
#endif
41534153

@@ -8127,7 +8127,7 @@ void C_TFPlayer::AddDecal( const Vector& rayStart, const Vector& rayEnd,
81278127
g_pEffects->Ricochet( rayEnd - (vecDir * 8), -vecDir );
81288128
return;
81298129
}
8130-
#ifdef QUIVER_CLIENT_DLL
8130+
#ifdef QUIVER_DLL
81318131
else if (ArmorValue() > 0)
81328132
{
81338133
// Armor also ricochets.

src/game/client/tf/c_tf_player.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ class C_TFPlayer : public C_BasePlayer, public IHasAttributes, public IInventory
545545

546546
bool IsPlayerOnSteamFriendsList( C_BasePlayer *pPlayer );
547547

548-
#ifdef QUIVER_CLIENT_DLL
548+
#ifdef QUIVER_DLL
549549
int ArmorValue(void) { return m_ArmorValue; }
550550
int GetMaxArmor(void) { return m_iMaxArmor; }
551551
#endif
@@ -738,7 +738,7 @@ class C_TFPlayer : public C_BasePlayer, public IHasAttributes, public IInventory
738738
float m_flTauntStartTime;
739739
float m_flTauntDuration;
740740

741-
#ifdef QUIVER_CLIENT_DLL
741+
#ifdef QUIVER_DLL
742742
int m_ArmorValue;
743743
int m_iMaxArmor;
744744
#endif

src/game/client/tf/tf_fx_blood.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void TFBloodSprayCallback( Vector vecOrigin, Vector vecNormal, ClientEntityHandl
3939
bUnderwater = true;
4040
}
4141

42-
#ifdef QUIVER_CLIENT_DLL
42+
#ifdef QUIVER_DLL
4343
if (pPlayer && pPlayer->ArmorValue() > 0)
4444
{
4545
//we don't bleed if we have armor, however, armor penetration will be represented by blood on the walls

src/game/client/tf/tf_hud_account.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static const hitsound_params_t g_HitSounds[] =
160160
hitsound_params_t( "Player.HitSoundBeepo", 1, 255 ),
161161
hitsound_params_t( "Player.HitSoundVortex", 1, 255 ),
162162
hitsound_params_t( "Player.HitSoundSquasher", 1, 255 ),
163-
#if defined(QUIVER_DLL) || defined(QUIVER_CLIENT_DLL)
163+
#if defined(QUIVER_DLL)
164164
hitsound_params_t("Player.HitSoundQuake", 1, 255),
165165
#endif
166166
};
@@ -176,7 +176,7 @@ static const hitsound_params_t g_LastHitSounds[] =
176176
hitsound_params_t( "Player.KillSoundBeepo", 1, 255 ),
177177
hitsound_params_t( "Player.KillSoundVortex", 1, 255 ),
178178
hitsound_params_t( "Player.KillSoundSquasher", 1, 255 ),
179-
#if defined(QUIVER_DLL) || defined(QUIVER_CLIENT_DLL)
179+
#if defined(QUIVER_DLL)
180180
//quake has no defined kill sound.
181181
hitsound_params_t( "Player.HitSoundQuake", 1, 255),
182182
#endif

src/game/client/tf/tf_hud_itemeffectmeter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#ifdef BDSBASE
2525
#include "tf_weapon_dragons_fury.h"
2626
#endif
27-
#if defined(QUIVER_DLL) || defined(QUIVER_CLIENT_DLL)
27+
#if defined(QUIVER_DLL)
2828
#include "tf_weapon_bottle.h"
2929
#endif
3030
#include "tf_weapon_knife.h"
@@ -304,7 +304,7 @@ void CHudItemEffectMeter::CreateHudElementsForClass( C_TFPlayer* pPlayer, CUtlVe
304304
}
305305
case TF_CLASS_DEMOMAN:
306306
DECLARE_ITEM_EFFECT_METER( CTFSword, TF_WEAPON_SWORD, false, "resource/UI/HudItemEffectMeter_Demoman.res" );
307-
#if defined(QUIVER_DLL) || defined(QUIVER_CLIENT_DLL)
307+
#if defined(QUIVER_DLL)
308308
DECLARE_ITEM_EFFECT_METER(CTFStickBomb, TF_WEAPON_STICKBOMB, true, "resource/UI/HudItemEffectMeter_Stickbomb.res" );
309309
#endif
310310
break;

src/game/client/tf/tf_hud_match_status.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
extern ConVar mp_winlimit;
3131
extern ConVar mp_tournament_stopwatch;
3232

33-
#if defined(QUIVER_DLL) || defined(QUIVER_CLIENT_DLL)
33+
#if defined(QUIVER_DLL)
3434
ConVar tf_use_match_hud( "tf_use_match_hud", "0", FCVAR_DEVELOPMENTONLY );
3535
#else
3636
ConVar tf_use_match_hud( "tf_use_match_hud", "1", FCVAR_ARCHIVE );

0 commit comments

Comments
 (0)