Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions CS2Fixes.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>build/cs2fixes.cs2/windows-x86_64;src/utils;src/cs2_sdk;sdk/public;sdk/public/tier0;sdk/game/shared;sdk/game/server;sdk/public/tier1;sdk/public/mathlib;$(MMSOURCE112)/core;$(MMSOURCE112)/third_party/khook/include;$(MMSOURCE_DEV)/core;$(MMSOURCE_DEV)/third_party/khook/include;sdk/public/entity2;sdk/public/game/server;sdk/thirdparty/protobuf-3.21.8/src;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir);$(MMSOURCE_DEV)/core;$(MMSOURCE_DEV)/third_party/khook/include;sdk/thirdparty/protobuf-3.21.8/src;sdk/public;sdk/public/engine2;sdk/public/mathlib;sdk/public/tier0;sdk/public/entity2;sdk/game/shared;sdk/common;src/cs2_sdk;src/utils;public;build/cs2fixes.2.cs2/windows-x86_64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
Expand All @@ -150,7 +150,7 @@
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>build/cs2fixes.cs2/windows-x86_64;src/utils;src/cs2_sdk;sdk/public;sdk/public/tier0;sdk/game/shared;sdk/game/server;sdk/public/tier1;sdk/public/mathlib;$(MMSOURCE112)/core;$(MMSOURCE112)/third_party/khook/include;$(MMSOURCE_DEV)/core;$(MMSOURCE_DEV)/third_party/khook/include;sdk/public/entity2;sdk/public/game/server;sdk/thirdparty/protobuf-3.21.8/src;$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir);$(MMSOURCE_DEV)/core;$(MMSOURCE_DEV)/third_party/khook/include;sdk/thirdparty/protobuf-3.21.8/src;sdk/public;sdk/public/engine2;sdk/public/mathlib;sdk/public/tier0;sdk/public/entity2;sdk/game/shared;sdk/common;src/cs2_sdk;src/utils;public;build/cs2fixes.2.cs2/windows-x86_64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<UndefinePreprocessorDefinitions>%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
Expand All @@ -169,17 +169,20 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="src\buttonwatch.cpp" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\cs_usercmd.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\networkbasetypes.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\network_connection.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\usercmd.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\usermessages.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\cstrike15_gcmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\cstrike15_usermessages.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\gcsdk_gcmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\engine_gcmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\netmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\steammessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cs_usercmd.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\networkbasetypes.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\network_connection.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\usercmd.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\usermessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cstrike15_gcmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cstrike15_usermessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\gcsdk_gcmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\engine_gcmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\netmessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\steammessages.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\valveextensions.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\gameevents.pb.cc" />
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cs_gameevents.pb.cc" />
<ClCompile Include="sdk\entity2\entityidentity.cpp" />
<ClCompile Include="sdk\entity2\entitykeyvalues.cpp" />
<ClCompile Include="sdk\entity2\entitysystem.cpp" />
Expand Down Expand Up @@ -271,6 +274,7 @@
<ClInclude Include="src\cs2_sdk\schema.h" />
<ClInclude Include="src\cs2_sdk\entityio.h" />
<ClInclude Include="src\cs2_sdk\map.h" />
<ClInclude Include="src\cs2_sdk\pushentity.h" />
<ClInclude Include="src\ctimer.h" />
<ClInclude Include="src\customio.h" />
<ClInclude Include="src\detours.h" />
Expand Down
34 changes: 23 additions & 11 deletions CS2Fixes.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -140,37 +140,46 @@
<ClCompile Include="src\panoramavote.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\usermessages.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\usermessages.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\cs_usercmd.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cs_usercmd.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\cstrike15_gcmessages.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cstrike15_gcmessages.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\cstrike15_usermessages.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cstrike15_usermessages.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\engine_gcmessages.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\engine_gcmessages.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\gcsdk_gcmessages.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\gcsdk_gcmessages.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\netmessages.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\netmessages.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\network_connection.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\network_connection.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\networkbasetypes.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\networkbasetypes.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\steammessages.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\steammessages.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.cs2\windows-x86_64\usercmd.pb.cc">
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\usercmd.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\valveextensions.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\gameevents.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="build\cs2fixes.2.cs2\windows-x86_64\cs_gameevents.pb.cc">
<Filter>Source Files\protobuf</Filter>
</ClCompile>
<ClCompile Include="sdk\public\tier0\memoverride.cpp">
Expand Down Expand Up @@ -403,6 +412,9 @@
<ClInclude Include="src\cs2_sdk\map.h">
<Filter>Header Files\cs2_sdk</Filter>
</ClInclude>
<ClInclude Include="src\cs2_sdk\pushentity.h">
<Filter>Header Files\cs2_sdk</Filter>
</ClInclude>
<ClInclude Include="src\entwatch.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down
4 changes: 2 additions & 2 deletions PackageScript
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ for task in MMSPlugin.tasks:
builder.AddCopy(os.path.join('cfg', 'cs2fixes.cfg'), cfg_folder)
builder.AddCopy(os.path.join('cfg', 'maps', 'de_somemap.cfg'), mapcfg_folder)
builder.AddCopy(os.path.join('configs', 'zr', 'playerclass.jsonc.example'), zr_folder)
builder.AddCopy(os.path.join('configs', 'zr', 'weapons.cfg.example'), zr_folder)
builder.AddCopy(os.path.join('configs', 'zr', 'hitgroups.cfg.example'), zr_folder)
builder.AddCopy(os.path.join('configs', 'zr', 'weapons.jsonc.example'), zr_folder)
builder.AddCopy(os.path.join('configs', 'zr', 'hitgroups.jsonc.example'), zr_folder)
builder.AddCopy(os.path.join('configs', 'entwatch', 'maps', 'template.jsonc'), ew_maps_folder)
builder.AddCopy(os.path.join('gamedata', 'cs2fixes.jsonc'), gamedata_folder)

Expand Down
1 change: 1 addition & 0 deletions cfg/cs2fixes.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ cs2f_cvarwhitelist_enable 0 // Whether to enable the custom ConVar whitelist f
cs2f_block_particle_msgs 0 // Whether to block CUserMsg_ParticleManager messages to fix lag/crashes, experimental
cs2f_disable_setmodel 0 // Whether to disable SetModel usage from maps (custom input, cs_script function)
cs2f_allow_duck_spam 0 // Whether to allow duck spamming by removing the duck slowdown, clients will only partially predict [0 = disabled, 1 = both teams, 2 = T only, 3 = CT only]
cs2f_fix_pusher_solid_toggle 0 // Whether to filter movers out of push traces, fixes lag with many players on moving entities

cs2f_beacon_particle "particles/cs2fixes/admin_beacon.vpcf" // .vpcf file to be precached and used for player beacon
cs2f_motd_url "" // Server MOTD URL, shows up as a "Server Website" button in scoreboard
Expand Down
47 changes: 0 additions & 47 deletions configs/zr/hitgroups.cfg.example

This file was deleted.

42 changes: 42 additions & 0 deletions configs/zr/hitgroups.jsonc.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"Generic":
{
"knockback": 1.0 // The knockback multiplier for this hitgroup
},
"Head":
{
"knockback": 1.0
},
"Chest":
{
"knockback": 1.0
},
"Stomach":
{
"knockback": 1.0
},
"LeftArm":
{
"knockback": 1.0
},
"RightArm":
{
"knockback": 1.0
},
"LeftLeg":
{
"knockback": 1.0
},
"RightLeg":
{
"knockback": 1.0
},
"Neck":
{
"knockback": 1.0
},
"Gear":
{
"knockback": 1.0
}
}
Loading