Skip to content

Commit ee328f2

Browse files
committed
add preprocessor definitions to BDS mods
1 parent 9e95bab commit ee328f2

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ This base is specific to multiplayer mod projects.
1717
- NOTE: You may need to do some tinkering to make these singleplayer projects work well with the new SDK base. There are some bugs and crashes that won't be addressed by this base.
1818
- NPC NextBot sensing support from FIREFIGHT RELOADED.
1919
- Integrated Python binaries (on Windows) for more simple buiding.
20-
- Implemented Discord RPC support with the BDSBASE_DISCORD compile definition. Mod authors can change the DiscordAppId parameter in their gameinfo.txt file for more personalized icons. Mods can also use the DiscordAllowMapIcons option to allow map specific icons. Mod icons must be named "ModImage" and map icons must be named the map name.
20+
- Implemented Discord RPC support with the BDSBASE_DISCORD preprocessor definition. Mod authors can change the DiscordAppId parameter in their gameinfo.txt file for more personalized icons. Mods can also use the DiscordAllowMapIcons option to allow map specific icons. Mod icons must be named "ModImage" and map icons must be named the map name.
2121
- Full support of the Half-Life 2 Survivor animation set for all mods.
2222
- reset.bat file in each mod folder, used for cleaning up config/temporary files for easy mod distribution
2323
- Implemented bhopping functionality that can be enabled or disabled by server owners in TF2 and HL2DM.
24-
- Multiplayer NPC support with the BDSBASE_NPC compile definition.
24+
- Multiplayer NPC support with the BDSBASE_NPC preprocessor definition.
2525

2626
## Setup:
2727
Read Autumn's setup guide at README_FROG.md for detailed setup.

game/mod_hl2mp/gameinfo.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
nohimodel 1
99
nocrosshair 1
1010
supportsvr 1
11-
DiscordAppID 1347077140306464838
1211
hidden_maps
1312
{
1413
"test_speakers" 1

game/mod_tf/gameinfo.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
DependsOnAppID 440
2222

23-
DiscordAppID 1347077140306464838
24-
2523
FileSystem
2624
{
2725
SteamAppId 243750

src/game/client/client_greymod.vpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $Configuration
2323
$Compiler
2424
{
2525
$AdditionalIncludeDirectories ".\hl2;.\hl2\elements;.\tf;.\tf\vgui;..\statemachine;$SRCDIR\game\shared\multiplayer;$SRCDIR\game\shared\tf;$SRCDIR\gcsdk\steamextra;$BASE;.\econ"
26-
$PreprocessorDefinitions "$BASE;TF_CLIENT_DLL;USES_ECON_ITEMS;ENABLE_GC_MATCHMAKING;GLOWS_ENABLE;USE_DYNAMIC_ASSET_LOADING;VOTING_ENABLED;NEXT_BOT;GREYMOD"
26+
$PreprocessorDefinitions "$BASE;TF_CLIENT_DLL;USES_ECON_ITEMS;ENABLE_GC_MATCHMAKING;GLOWS_ENABLE;USE_DYNAMIC_ASSET_LOADING;VOTING_ENABLED;NEXT_BOT;GREYMOD;BDSBASE_DISCORD"
2727
$PreprocessorDefinitions "$BASE;SAXXYMAINMENU_ENABLED" [$SAXXYAWARDS_ENABLE]
2828
$PreprocessorDefinitions "$BASE;WORKSHOP_IMPORT_ENABLED" [$WORKSHOP_IMPORT_ENABLE]
2929
$PreprocessorDefinitions "$BASE;SIXENSE" [!$SOURCESDK]

src/game/client/client_survivor2.vpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $Configuration
1414
$Compiler
1515
{
1616
$AdditionalIncludeDirectories "$BASE;hl2mp\ui,.\hl2mp,$SRCDIR\game\shared\hl2mp,.\hl2,.\hl2\elements,$SRCDIR\game\shared\hl2"
17-
$PreprocessorDefinitions "$BASE;HL2MP;HL2_CLIENT_DLL;NEXT_BOT;SURVIVOR2"
17+
$PreprocessorDefinitions "$BASE;HL2MP;HL2_CLIENT_DLL;NEXT_BOT;SURVIVOR2;BDSBASE_DISCORD;BDSBASE_NPC"
1818
}
1919
}
2020

src/game/server/server_greymod.vpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $Configuration
1919
$Compiler
2020
{
2121
$AdditionalIncludeDirectories "$BASE;$SRCDIR\game\shared\hl2;.\tf;.\tf\vgui;$SRCDIR\statemachine;$SRCDIR\game\shared\Multiplayer;$SRCDIR\game\shared\tf"
22-
$PreprocessorDefinitions "$BASE;TF_DLL;ENABLE_GC_MATCHMAKING;GLOWS_ENABLE;USE_DYNAMIC_ASSET_LOADING;NEXT_BOT;GREYMOD"
22+
$PreprocessorDefinitions "$BASE;TF_DLL;ENABLE_GC_MATCHMAKING;GLOWS_ENABLE;USE_DYNAMIC_ASSET_LOADING;NEXT_BOT;GREYMOD;BDSBASE_DISCORD"
2323
$PreprocessorDefinitions "$BASE;DISABLE_GC_CONNECTION;DISABLE_IN_SOURCESDK;INVENTORY_VIA_WEBAPI" [$SOURCESDK]
2424
}
2525
}

src/game/server/server_survivor2.vpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $Configuration
1515
$Compiler
1616
{
1717
$AdditionalIncludeDirectories "$BASE;$SRCDIR\game\shared\hl2,.\hl2,.\hl2mp,$SRCDIR\game\shared\hl2mp"
18-
$PreprocessorDefinitions "$BASE;HL2MP;HL2_DLL;NEXT_BOT;SURVIVOR2"
18+
$PreprocessorDefinitions "$BASE;HL2MP;HL2_DLL;NEXT_BOT;SURVIVOR2;BDSBASE_DISCORD;BDSBASE_NPC"
1919
}
2020
}
2121

0 commit comments

Comments
 (0)