From 385eae892c08dea70c7b2ae8b4ce0bc9a5d6ddff Mon Sep 17 00:00:00 2001 From: bt <99887872+caatge@users.noreply.github.com> Date: Tue, 19 Dec 2023 00:52:54 +0100 Subject: [PATCH] Add gmod9 gamedata. (#2093) --- gamedata/core.games/engine.ep1.txt | 1 + gamedata/core.games/game.gmod9.txt | 24 ++++ gamedata/core.games/master.games.txt | 7 +- gamedata/sdkhooks.games/game.gmod9.txt | 116 ++++++++++++++++ gamedata/sdkhooks.games/master.games.txt | 5 + gamedata/sdktools.games/engine.ep1.txt | 1 + gamedata/sdktools.games/game.gmod9.txt | 167 +++++++++++++++++++++++ gamedata/sdktools.games/master.games.txt | 4 + 8 files changed, 324 insertions(+), 1 deletion(-) create mode 100644 gamedata/core.games/game.gmod9.txt create mode 100644 gamedata/sdkhooks.games/game.gmod9.txt create mode 100644 gamedata/sdktools.games/game.gmod9.txt diff --git a/gamedata/core.games/engine.ep1.txt b/gamedata/core.games/engine.ep1.txt index 44f763e02f..bf093b31a3 100644 --- a/gamedata/core.games/engine.ep1.txt +++ b/gamedata/core.games/engine.ep1.txt @@ -26,6 +26,7 @@ "game" "esmod" "game" "ios" "game" "hl2ctf" + "game" "gmod9" } "Offsets" diff --git a/gamedata/core.games/game.gmod9.txt b/gamedata/core.games/game.gmod9.txt new file mode 100644 index 0000000000..3b353e119a --- /dev/null +++ b/gamedata/core.games/game.gmod9.txt @@ -0,0 +1,24 @@ +/* + modified copy of engine.ep1.txt +*/ + +"Games" +{ + /* CGlobalEntityList */ + "#default" + { + "#supported" + { + "game" "gmod9" + } + + "Offsets" + { + "GetDataDescMap" + { + "windows" "15" + "linux" "16" + } + } + } +} \ No newline at end of file diff --git a/gamedata/core.games/master.games.txt b/gamedata/core.games/master.games.txt index c82e7d50a3..86c19f83e4 100644 --- a/gamedata/core.games/master.games.txt +++ b/gamedata/core.games/master.games.txt @@ -110,7 +110,12 @@ { "game" "dinodday" } - + + "game.gmod9.txt" + { + "game" "gmod9" + } + "blocklist.plugins.txt" { } diff --git a/gamedata/sdkhooks.games/game.gmod9.txt b/gamedata/sdkhooks.games/game.gmod9.txt new file mode 100644 index 0000000000..219731c032 --- /dev/null +++ b/gamedata/sdkhooks.games/game.gmod9.txt @@ -0,0 +1,116 @@ + +"Games" +{ + /* GMod 9.0.4b */ + "gmod9" + { + "Offsets" + { + "EndTouch" + { + "windows" "86" + "linux" "87" + } + "FireBullets" + { + "windows" "96" + "linux" "97" + } + "GroundEntChanged" + { + "windows" "149" + "linux" "150" + } + "OnTakeDamage" + { + "windows" "56" + "linux" "57" + } + "PreThink" + { + "windows" "250" + "linux" "251" + } + "PostThink" + { + "windows" "251" + "linux" "252" + } + "Reload" + { + "windows" "217" + "linux" "218" + } + "SetTransmit" + { + "windows" "23" + "linux" "24" + } + "ShouldCollide" + { + "windows" "19" + "linux" "20" + } + "Spawn" + { + "windows" "25" + "linux" "26" + } + "StartTouch" + { + "windows" "84" + "linux" "85" + } + "Think" + { + "windows" "47" + "linux" "48" + } + "Touch" + { + "windows" "91" + "linux" "92" + } + "TraceAttack" + { + "windows" "55" + "linux" "56" + } + "Use" + { + "windows" "83" + "linux" "84" + } + "VPhysicsUpdate" + { + "windows" "133" + "linux" "134" + } + "Weapon_CanSwitchTo" + { + "windows" "208" + "linux" "209" + } + "Weapon_CanUse" + { + "windows" "202" + "linux" "203" + } + "Weapon_Drop" + { + "windows" "205" + "linux" "206" + } + "Weapon_Equip" + { + "windows" "203" + "linux" "204" + } + "Weapon_Switch" + { + "windows" "206" + "linux" "207" + } + } + } +} diff --git a/gamedata/sdkhooks.games/master.games.txt b/gamedata/sdkhooks.games/master.games.txt index cf0f0479f9..163e8b1123 100644 --- a/gamedata/sdkhooks.games/master.games.txt +++ b/gamedata/sdkhooks.games/master.games.txt @@ -216,4 +216,9 @@ { "game" "tf2classic" } + + "game.gmod9.txt" + { + "game" "gmod9" + } } diff --git a/gamedata/sdktools.games/engine.ep1.txt b/gamedata/sdktools.games/engine.ep1.txt index 2b42e7b036..6bf6fc1e51 100644 --- a/gamedata/sdktools.games/engine.ep1.txt +++ b/gamedata/sdktools.games/engine.ep1.txt @@ -26,6 +26,7 @@ "game" "esmod" "game" "ios" "game" "hl2ctf" + "game" "gmod9" } "Offsets" diff --git a/gamedata/sdktools.games/game.gmod9.txt b/gamedata/sdktools.games/game.gmod9.txt new file mode 100644 index 0000000000..c369331da3 --- /dev/null +++ b/gamedata/sdktools.games/game.gmod9.txt @@ -0,0 +1,167 @@ + +"Games" +{ + /* GMod 9.0.4b */ + "gmod9" + { + "Signatures" + { + /* CBaseEntityOutput::FireOutput */ + "FireOutput" + { + "library" "server" + "windows" "\x83\xEC\x1C\x53\x55\x56\x8B\x71\x14\x85\xF6\x57\x89\x4C\x24\x14\xC7\x44\x24\x2A\x2A\x2A\x2A\x2A\x0F\x84\x2A\x2A\x2A\x2A\x8B\x6C\x24\x48\x8B\x5C\x24\x30\x8B\x46\x14\x8B\x4E\x08\x85\xC9\x50\x55\x75\x45\x8B\x4C\x24\x4C\xD9\x44\x24\x54\xD8\x46\x0C\x8B\x54\x24\x38\x51" + "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" + } + + /* CBaseAnimating::LookupAttachment */ + "LookupAttachment" + { + "library" "server" + "windows" "\x56\xE8\x2A\x2A\x2A\x2A\x8B\xF0\x85\xF6\x74\x21\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x01\x56\xFF\x50\x24\x83\xF8\x03\x75\x10\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x11\x56\xFF\x52\x28\x85\xC0\x75\x06\x33\xC0\x5E\xC2\x04\x00" + "linux" "@_ZN14CBaseAnimating16LookupAttachmentEPKc" + } + + /* CGlobalEntityList::FindEntityByClassname */ + "FindEntityByClassname" + { + "library" "server" + "windows" "\x53\x55\x56\x8B\xF1\x8B\x4C\x24\x10\x85\xC9\x57\x74\x16\x8B\x01\xFF\x50\x08\x8B\x08\x81\xE1\x2A\x2A\x2A\x2A\x41\xC1\xE1\x04\x8B\x3C\x31\xEB\x06" + "linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc" + } + + /* CreateEntityByName */ + "CreateEntityByName" + { + "library" "server" + "windows" "\x56\x8B\x74\x24\x0C\x83\xFE\xFF\x57\x8B\x7C\x24\x0C\x74\x25\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x01\x56\xFF\x50\x54\x85\xC0\xA3\x2A\x2A\x2A\x2A\x75\x10\x56\x57\x68\x2A\x2A\x2A\x2A\xFF\x15\x2A\x2A\x2A\x2A\x83\xC4\x0C\xE8\x2A\x2A\x2A\x2A\x8B\x10\x57\x8B\xC8\xFF\x52\x04\x85\xC0\x5F\xC7\x05\x2A\x2A\x2A\x2A\x2A" + "linux" "@_Z18CreateEntityByNamePKci" + } + + /* DispatchSpawn */ + "DispatchSpawn" + { + "library" "server" + "windows" "\x53\x56\x8B\x74\x24\x0C\x85\xF6\x57\x0F\x84\x2A\x2A\x2A\x2A\x8B\x1D\x2A\x2A\x2A\x2A\x8B\x03\x8B\xCB\xFF\x50\x14\x8B\x16\x8B\xCE\xFF\x52\x08\x8B\x38\x8B\x06\x8B\xCE\xFF\x50\x64\x83\xFF\xFF\x74\x58\x8B\x15\x2A\x2A\x2A\x2A\x8B\xCF\x81\xE1\x2A\x2A\x2A\x2A\xC1\xE1\x04\x8D\x44\x11\x04\x8B\x48" + "linux" "@_Z13DispatchSpawnP11CBaseEntity" + } + + /* CBasePlayer::CommitSuicide */ + "CommitSuicide" + { + "library" "server" + "windows" "\x83\xEC\x44\x56\x8B\xF1\x8B\x86\x2A\x2A\x2A\x2A\x85\xC0\x75\x6E\x8B\x0D\x2A\x2A\x2A\x2A\xD9\x86\x2A\x2A\x2A\x2A\xD8\x59\x0C\xDF\xE0\xF6\xC4\x41\x74\x58\xD9\x41\x0C\xD8\x05\x2A\x2A\x2A\x2A\xD9\x9E\x2A\x2A\x2A\x2A\x8B\x86\x2A\x2A\x2A\x2A\x85\xC0\x74\x14\x8B\xCE\x8B\x01\xFF\x90\x2A\x2A\x2A\x2A\xC7\x86\x2A" + "linux" "@_ZN11CBasePlayer13CommitSuicideEv" + } + } + "Offsets" + { + "m_iHealth" + { + "class" "CBasePlayer" + "prop" "m_iHealth" + } + "GiveNamedItem" + { + "windows" "299" + "linux" "300" + } + "RemovePlayerItem" + { + "windows" "212" + "linux" "213" + } + "Weapon_GetSlot" + { + "windows" "210" + "linux" "211" + } + "Ignite" + { + "windows" "174" + "linux" "175" + } + "Extinguish" + { + "windows" "175" + "linux" "176" + } + "Teleport" + { + "windows" "93" + "linux" "94" + } + "GetVelocity" + { + "windows" "117" + "linux" "118" + } + "EyeAngles" + { + "windows" "109" + "linux" "110" + } + "AcceptInput" + { + "windows" "36" + "linux" "37" + } + "SetEntityModel" + { + "windows" "27" + "linux" "28" + } + "WeaponEquip" + { + "windows" "203" + "linux" "204" + } + "Activate" + { + "windows" "34" + "linux" "35" + } + "PlayerRunCmd" + { + "windows" "315" + "linux" "316" + } + "GiveAmmo" + { + "windows" "199" + "linux" "200" + } + "SetOwnerEntity" + { + "windows" "20" + "linux" "21" + } + "GetAttachment" + { + "windows" "170" + "linux" "171" + } + "DispatchKeyValue" + { + "windows" "32" + "linux" "31" + } + "DispatchKeyValueVector" + { + "windows" "30" + "linux" "33" + } + "DispatchKeyValueFloat" + { + "windows" "31" + "linux" "32" + } + } + + "Keys" + { + "GameRulesProxy" "CHL2MPGameRulesProxy" + "GameRulesDataTable" "hl2mp_gamerules_data" + } + } +} diff --git a/gamedata/sdktools.games/master.games.txt b/gamedata/sdktools.games/master.games.txt index 630e0c9ad0..59cb1d0970 100644 --- a/gamedata/sdktools.games/master.games.txt +++ b/gamedata/sdktools.games/master.games.txt @@ -277,4 +277,8 @@ { "game" "tf2classic" } + "game.gmod9.txt" + { + "game" "gmod9" + } }