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
1 change: 1 addition & 0 deletions AMBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ for sdk_target in MMSPlugin.sdk_targets:
os.path.join(sdk['path'], 'common', 'source2_steam_stats.proto'),
os.path.join(sdk['path'], 'common', 'netmessages.proto'),
os.path.join(sdk['path'], 'common', 'networkbasetypes.proto'),
os.path.join(sdk['path'], 'common', 'valveextensions.proto'),
os.path.join(sdk['path'], 'game', 'shared', 'usermessages.proto'),
os.path.join(sdk['path'], 'networksystem', 'networksystem_protomessages.proto'),
])
Expand Down
1 change: 1 addition & 0 deletions cs_scriptExt.cs2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\common" -I
sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\thirdparty/protobuf-3.21.8/src" -I="sdks\hl2sdk-cs2\public" -I="sdks\hl2sdk-cs2\public/engine" -I="sdks\hl2sdk-cs2\public/mathlib" -I="sdks\hl2sdk-cs2\public/tier0" -I="sdks\hl2sdk-cs2\public/tier1" -I="sdks\hl2sdk-cs2\public/entity2" -I="sdks\hl2sdk-cs2\public/game/server" -I="sdks\hl2sdk-cs2\game/shared" -I="sdks\hl2sdk-cs2\game/server" -I="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\gcsdk" -I="E:\Projekty\CSGO\cs2\ScriptExtensions\." --cpp_out="$(ProjectDir)cs_scriptExt.cs2 - Default" "sdks\hl2sdk-cs2\common\netmessages.proto" --dependency_out="$(ProjectDir)cs_scriptExt.cs2 - Default\netmessages.proto.d"
sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\thirdparty/protobuf-3.21.8/src" -I="sdks\hl2sdk-cs2\public" -I="sdks\hl2sdk-cs2\public/engine" -I="sdks\hl2sdk-cs2\public/mathlib" -I="sdks\hl2sdk-cs2\public/tier0" -I="sdks\hl2sdk-cs2\public/tier1" -I="sdks\hl2sdk-cs2\public/entity2" -I="sdks\hl2sdk-cs2\public/game/server" -I="sdks\hl2sdk-cs2\game/shared" -I="sdks\hl2sdk-cs2\game/server" -I="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\gcsdk" -I="E:\Projekty\CSGO\cs2\ScriptExtensions\." --cpp_out="$(ProjectDir)cs_scriptExt.cs2 - Default" "sdks\hl2sdk-cs2\common\networkbasetypes.proto" --dependency_out="$(ProjectDir)cs_scriptExt.cs2 - Default\networkbasetypes.proto.d"
sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\thirdparty/protobuf-3.21.8/src" -I="sdks\hl2sdk-cs2\public" -I="sdks\hl2sdk-cs2\public/engine" -I="sdks\hl2sdk-cs2\public/mathlib" -I="sdks\hl2sdk-cs2\public/tier0" -I="sdks\hl2sdk-cs2\public/tier1" -I="sdks\hl2sdk-cs2\public/entity2" -I="sdks\hl2sdk-cs2\public/game/server" -I="sdks\hl2sdk-cs2\game/shared" -I="sdks\hl2sdk-cs2\game/server" -I="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\gcsdk" -I="E:\Projekty\CSGO\cs2\ScriptExtensions\." --cpp_out="$(ProjectDir)cs_scriptExt.cs2 - Default" "sdks\hl2sdk-cs2\common\engine_gcmessages.proto" --dependency_out="$(ProjectDir)cs_scriptExt.cs2 - Default\engine_gcmessages.proto.d"
sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\thirdparty/protobuf-3.21.8/src" -I="sdks\hl2sdk-cs2\public" -I="sdks\hl2sdk-cs2\public/engine" -I="sdks\hl2sdk-cs2\public/mathlib" -I="sdks\hl2sdk-cs2\public/tier0" -I="sdks\hl2sdk-cs2\public/tier1" -I="sdks\hl2sdk-cs2\public/entity2" -I="sdks\hl2sdk-cs2\public/game/server" -I="sdks\hl2sdk-cs2\game/shared" -I="sdks\hl2sdk-cs2\game/server" -I="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\gcsdk" -I="E:\Projekty\CSGO\cs2\ScriptExtensions\." --cpp_out="$(ProjectDir)cs_scriptExt.cs2 - Default" "sdks\hl2sdk-cs2\common\valveextensions.proto" --dependency_out="$(ProjectDir)cs_scriptExt.cs2 - Default\valveextensions.proto.d"
sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\gcsdk" -I="sdks\hl2sdk-cs2\thirdparty/protobuf-3.21.8/src" -I="sdks\hl2sdk-cs2\public" -I="sdks\hl2sdk-cs2\public/engine" -I="sdks\hl2sdk-cs2\public/mathlib" -I="sdks\hl2sdk-cs2\public/tier0" -I="sdks\hl2sdk-cs2\public/tier1" -I="sdks\hl2sdk-cs2\public/entity2" -I="sdks\hl2sdk-cs2\public/game/server" -I="sdks\hl2sdk-cs2\game/shared" -I="sdks\hl2sdk-cs2\game/server" -I="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\gcsdk" -I="E:\Projekty\CSGO\cs2\ScriptExtensions\." --cpp_out="$(ProjectDir)cs_scriptExt.cs2 - Default" "sdks\hl2sdk-cs2\gcsdks\hl2sdk-cs2\steammessages.proto" --dependency_out="$(ProjectDir)cs_scriptExt.cs2 - Default\steammessages.proto.d"
sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\gcsdk" -I="sdks\hl2sdk-cs2\thirdparty/protobuf-3.21.8/src" -I="sdks\hl2sdk-cs2\public" -I="sdks\hl2sdk-cs2\public/engine" -I="sdks\hl2sdk-cs2\public/mathlib" -I="sdks\hl2sdk-cs2\public/tier0" -I="sdks\hl2sdk-cs2\public/tier1" -I="sdks\hl2sdk-cs2\public/entity2" -I="sdks\hl2sdk-cs2\public/game/server" -I="sdks\hl2sdk-cs2\game/shared" -I="sdks\hl2sdk-cs2\game/server" -I="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\gcsdk" -I="E:\Projekty\CSGO\cs2\ScriptExtensions\." --cpp_out="$(ProjectDir)cs_scriptExt.cs2 - Default" "sdks\hl2sdk-cs2\gcsdks\hl2sdk-cs2\gcsdk_gcmessages.proto" --dependency_out="$(ProjectDir)cs_scriptExt.cs2 - Default\gcsdk_gcmessages.proto.d"
sdks\hl2sdk-cs2\devtools\bin\protoc.exe --proto_path="sdks\hl2sdk-cs2\game\shared" -I="sdks\hl2sdk-cs2\thirdparty/protobuf-3.21.8/src" -I="sdks\hl2sdk-cs2\public" -I="sdks\hl2sdk-cs2\public/engine" -I="sdks\hl2sdk-cs2\public/mathlib" -I="sdks\hl2sdk-cs2\public/tier0" -I="sdks\hl2sdk-cs2\public/tier1" -I="sdks\hl2sdk-cs2\public/entity2" -I="sdks\hl2sdk-cs2\public/game/server" -I="sdks\hl2sdk-cs2\game/shared" -I="sdks\hl2sdk-cs2\game/server" -I="sdks\hl2sdk-cs2\common" -I="sdks\hl2sdk-cs2\gcsdk" -I="E:\Projekty\CSGO\cs2\ScriptExtensions\." --cpp_out="$(ProjectDir)cs_scriptExt.cs2 - Default" "sdks\hl2sdk-cs2\game\shared\gameevents.proto" --dependency_out="$(ProjectDir)cs_scriptExt.cs2 - Default\gameevents.proto.d"
Expand Down
22 changes: 11 additions & 11 deletions gamedata/cs_scriptExt.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{
"library" "server"
"windows" "\x48\x89\x5C\x24\x2A\x48\x89\x74\x24\x2A\x57\x48\x83\xEC\x2A\x49\x8B\xF0\x48\x8B\xD9\x48\x8B\x0D"
"linux" "\x55\x48\x89\xF0\x48\x89\xE5\x41\x57\x49\x89\xFF\x41\x56\x48\x8D\x7D"
"linux" "\x55\x48\x89\xE5\x41\x56\x49\x89\xFE\x41\x55\x48\x8D\x7D"
}
// "multi_manager" is passed to this
"CGameEntitySystem_FindEntityByClassName"
Expand Down Expand Up @@ -122,9 +122,9 @@
"windows" "\x8B\x05\x2A\x2A\x2A\x2A\x85\xC0\x7E\x2A\xFF\xC8\x48\x63\xC8\x48\x8B\x2A\x2A\x2A\x2A\x01\x48\x8B\x04\xC8\xC3"
"linux" "\x8B\x05\x2A\x2A\x2A\x2A\x31\xD2\x85\xC0"
}
// Look for string "OutputConnection:"
// Look for xrefs to string "OutputConnection:"
// There you'll see an object being created with some string values, like 'activator' etc...
// The function right before the one using a string is creating the actual V8 object by just passing in an entity handle.
// The function right before the one using a string (like 'activator') is creating the actual V8 object by just passing in an entity handle.
// On Windows you'll certainly see a few string here that are cs_script's classes.
// On Linux these seem to be separated into a few subroutines.
"CSScript_AssignEntityToObject"
Expand All @@ -139,15 +139,15 @@
"CSScript_CreateEntityObjectFromTemplate"
{
"library" "server"
"windows" "\x48\x89\x5C\x24\x2A\x55\x56\x57\x48\x83\xEC\x2A\x49\x8B\xE8"
"windows" "\x48\x89\x5C\x24\x2A\x55\x56\x57\x48\x83\xEC\x2A\x49\x8B\xE8\x48\xC7\x44\x24"
"linux" "\xE8\x2A\x2A\x2A\x2A\x48\x8B\x7D\x2A\x4C\x89\xE2\xBE\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x4C\x8B\x6D\x2A\xE8\x2A\x2A\x2A\x2A\x4C\x89\xE6\x48\x89\xC7\xE8\x2A\x2A\x2A\x2A\xBE\x2A\x2A\x2A\x2A\x4C\x89\xEF\x48\x89\xC2\xE8\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xBE"
}
// the function is the one containing these strings: "Loading script", ".vts_c", "Invalid script."
// the function is the one containing these strings: "Loading script", "Failed to compile cs_script"
"CSScript_RunScript"
{
"library" "server"
"windows" "\x48\x89\x5C\x24\x2A\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x8D\x6C\x24\x2A\x48\x81\xEC\x2A\x2A\x2A\x2A\x48\x8B\xDA\x4C\x8B\xF9"
"linux" "\x55\x48\x89\xE5\x41\x57\x41\x56\x49\x89\xF6\xBE\x2A\x2A\x2A\x2A\x41\x55\x49\x89\xFD"
"windows" "\x48\x8B\xC4\x55\x53\x56\x41\x54\x48\x8D\x68"
"linux" "\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x49\x89\xFC\x53\x48\x81\xEC\x2A\x2A\x2A\x2A\x8B\x3D"
}
}
"Offsets"
Expand Down Expand Up @@ -217,8 +217,8 @@
}
"CCSPlayerController_Respawn"
{
"windows" "273"
"linux" "275"
"windows" "270"
"linux" "272"
}
// CBaseTrigger
"PassesTriggerFilters"
Expand All @@ -237,8 +237,8 @@
// 2976 (372 * 8) is the offset
"CBasePlayerPawn_CommitSuicide"
{
"windows" "390"
"linux" "390"
"windows" "384"
"linux" "384"
}
"GameEntitySystem"
{
Expand Down
2 changes: 1 addition & 1 deletion sdks/hl2sdk-cs2
Submodule hl2sdk-cs2 updated 42 files
+3 −1 common/netmessages.proto
+13 −0 common/networkbasetypes.proto
+12 −0 common/source2_steam_stats.proto
+5 −0 common/valveextensions.proto
+0 −9 game/shared/base_gcmessages.proto
+0 −5 game/shared/clientmessages.proto
+1 −0 game/shared/cs/cs_gameevents.proto
+9 −0 game/shared/cs/cs_usercmd.proto
+18 −0 game/shared/cstrike15/cstrike15_gcmessages.proto
+1 −0 game/shared/cstrike15/cstrike15_usermessages.proto
+21 −0 game/shared/ehandle.h
+21 −0 game/shared/gameevents.proto
+31 −25 game/shared/igamesystem.h
+11 −0 game/shared/usercmd.proto
+6 −22 game/shared/usermessages.proto
+6 −2 interfaces/interfaces.cpp
+ − lib/linux64/interfaces.a
+ − lib/linux64/libtier0.so
+ − lib/public/win64/interfaces.lib
+ − lib/public/win64/tier0.lib
+16 −1 public/bitvec.h
+1 −0 public/const.h
+3 −1 public/datamap.h
+1 −4 public/eiface.h
+9 −5 public/entity2/entityclass.h
+1 −0 public/entity2/entityinstance.h
+10 −6 public/entity2/entitysystem.h
+15 −0 public/entityhandle.h
+6 −7 public/icvar.h
+12 −4 public/interfaces/interfaces.h
+2 −2 public/iserver.h
+6 −6 public/mathlib/vector.h
+2 −2 public/mathlib/vector2d.h
+4 −4 public/mathlib/vector4d.h
+17 −0 public/mathlib/vectorws.h
+25 −12 public/tier0/logging.h
+15 −1 public/tier1/convar.h
+1 −1 public/tier1/keyvalues3.h
+6 −0 public/tier1/strtools.h
+1 −0 public/tier1/utlleanvector.h
+0 −5 public/tier1/utlstringtoken.h
+1 −1 tier1/keyvalues3.cpp
Loading