Skip to content

Commit 9f81a40

Browse files
committed
Merge branch 'main' into khook
2 parents c8059eb + 9c6ac9f commit 9f81a40

116 files changed

Lines changed: 714 additions & 389 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ jobs:
5858
path: ambuild
5959

6060
- name: Install AMBuild
61+
shell: bash
6162
run: |
63+
if [ "$RUNNER_OS" == "Windows" ]; then
64+
pip install setuptools
65+
fi
6266
cd ambuild && python setup.py install && cd ..
6367
6468
- name: Install Clang 21

AMBuilder

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ for sdk_target in MMSPlugin.sdk_targets:
7272
'src/buttonwatch.cpp',
7373
'src/topdefender.cpp',
7474
'src/idlemanager.cpp',
75+
'src/mapmigrations.cpp',
7576
'sdk/entity2/entitysystem.cpp',
7677
'sdk/entity2/entityidentity.cpp',
7778
'sdk/entity2/entitykeyvalues.cpp',
@@ -80,6 +81,7 @@ for sdk_target in MMSPlugin.sdk_targets:
8081

8182
protoc_builder = builder.tools.Protoc(protoc = sdk_target.protoc, sources = [
8283
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
84+
os.path.join(sdk['path'], 'common', 'source2_steam_stats.proto'),
8385
os.path.join(sdk['path'], 'common', 'netmessages.proto'),
8486
os.path.join(sdk['path'], 'common', 'networkbasetypes.proto'),
8587
os.path.join(sdk['path'], 'common', 'engine_gcmessages.proto'),

CS2Fixes.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@
213213
<ClCompile Include="src\zombiereborn.cpp" />
214214
<ClCompile Include="src\entitylistener.cpp" />
215215
<ClCompile Include="src\leader.cpp" />
216+
<ClCompile Include="src\mapmigrations.cpp" />
216217
<ClCompile Include="sdk\tier1\convar.cpp" />
217218
<ClCompile Include="src\utils\entity.cpp" />
218219
<ClCompile Include="src\utils\plat_unix.cpp" />
@@ -291,6 +292,7 @@
291292
<ClInclude Include="src\zombiereborn.h" />
292293
<ClInclude Include="src\entitylistener.h" />
293294
<ClInclude Include="src\leader.h" />
295+
<ClCompile Include="src\mapmigrations.h" />
294296
<ClInclude Include="src\utils\entity.h" />
295297
<ClInclude Include="src\utils\module.h" />
296298
<ClInclude Include="src\utils\plat.h" />

CS2Fixes.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@
200200
<ClCompile Include="src\topdefender.cpp">
201201
<Filter>Source Files</Filter>
202202
</ClCompile>
203+
<ClCompile Include="src\mapmigrations.cpp">
204+
<Filter>Source Files</Filter>
205+
</ClCompile>
203206
</ItemGroup>
204207
<ItemGroup>
205208
<ClInclude Include="src\mempatch.h">
@@ -427,5 +430,8 @@
427430
<ClInclude Include="src\topdefender.h">
428431
<Filter>Header Files</Filter>
429432
</ClInclude>
433+
<ClInclude Include="src\mapmigrations.h">
434+
<Filter>Header Files</Filter>
435+
</ClInclude>
430436
</ItemGroup>
431437
</Project>

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt update && apt install -y clang-21
99
RUN ln -sf /usr/bin/clang-21 /usr/bin/clang && ln -sf /usr/bin/clang++-21 /usr/bin/clang++
1010
RUN git clone https://github.com/alliedmodders/ambuild
1111
RUN cd ambuild && python setup.py install && cd ..
12-
RUN git clone --recurse-submodules -b k/sourcehook_alternative https://github.com/alliedmodders/metamod-source
12+
RUN git clone --recurse-submodules -b fix-submodule https://github.com/Vauff/metamod-source
1313
RUN git config --global --add safe.directory /app
1414

1515
COPY ./docker-entrypoint.sh ./

cfg/cs2fixes/cs2fixes.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,7 @@ entwatch_glow_team 0 // Whether dropped item glow is only visible to the tea
162162
// Hud settings
163163
cs2f_fix_hud_flashing 0 // Whether to fix hud flashing using a workaround, this BREAKS warmup so pick one or the other
164164
cs2f_disable_hud_outside_round 0 // Whether to disable hud messages that would flash when a round is not ongoing, since flashing fix cannot run then
165-
cs2f_hud_duration_leeway 2 // Extra seconds duration to leave hud messages visible (without priority), reduces transition flashes between different priority messages
165+
cs2f_hud_duration_leeway 2 // Extra seconds duration to leave hud messages visible (without priority), reduces transition flashes between different priority messages
166+
167+
// Map migrations
168+
cs2f_mapmigrations_20260121 2 // Current mode for 2026-01-21 CS2 update map migrations. [0 = Force disabled, 1 = Force enabled, 2 = Automatically enabled for maps updated before 2026-01-21 & disabled if updated after]

0 commit comments

Comments
 (0)