From f3f696f16e1bc7f8dedc534d3f4556b1820a5f89 Mon Sep 17 00:00:00 2001 From: dysphie Date: Tue, 1 Sep 2026 14:42:58 -0500 Subject: [PATCH] nmrih 1.15.0 gamedata (#2557) --- gamedata/sdkhooks.games/game.nmrih.txt | 148 +++++++++++++--------- gamedata/sdktools.games/game.nmrih.txt | 169 ++++++++++++++----------- 2 files changed, 183 insertions(+), 134 deletions(-) diff --git a/gamedata/sdkhooks.games/game.nmrih.txt b/gamedata/sdkhooks.games/game.nmrih.txt index 91fa3b3c..08cf179b 100644 --- a/gamedata/sdkhooks.games/game.nmrih.txt +++ b/gamedata/sdkhooks.games/game.nmrih.txt @@ -4,143 +4,173 @@ { "Offsets" { + "EntityListeners" + { + "windows" "131108" + "windows64" "262200" + "linux" "131108" + "linux64" "262200" + } "Blocked" { - "windows" "106" - "linux" "107" - "mac" "107" + "windows" "110" + "windows64" "110" + "linux" "111" + "linux64" "111" } "EndTouch" { - "windows" "104" - "linux" "105" - "mac" "105" + "windows" "108" + "windows64" "108" + "linux" "109" + "linux64" "109" } "FireBullets" { - "windows" "116" - "linux" "117" - "mac" "117" + "windows" "120" + "windows64" "120" + "linux" "121" + "linux64" "121" } "GroundEntChanged" { - "windows" "181" - "linux" "183" - "mac" "183" + "windows" "181" + "windows64" "181" + "linux" "182" + "linux64" "182" } "OnTakeDamage" { - "windows" "64" - "linux" "65" - "mac" "65" + "windows" "68" + "windows64" "68" + "linux" "69" + "linux64" "69" } "OnTakeDamage_Alive" { - "windows" "280" - "linux" "281" - "mac" "281" + "windows" "283" + "windows64" "283" + "linux" "284" + "linux64" "284" } "PreThink" { - "windows" "352" - "linux" "353" - "mac" "353" + "windows" "355" + "windows64" "355" + "linux" "356" + "linux64" "356" } "PostThink" { - "windows" "332" - "linux" "333" - "mac" "333" + "windows" "335" + "windows64" "335" + "linux" "336" + "linux64" "336" } "Reload" { - "windows" "275" - "linux" "276" - "mac" "276" + "windows" "278" + "windows64" "278" + "linux" "279" + "linux64" "279" } "SetTransmit" { "windows" "22" + "windows64" "22" "linux" "23" - "mac" "23" + "linux64" "23" } "ShouldCollide" { "windows" "17" + "windows64" "17" "linux" "18" - "mac" "18" + "linux64" "18" } "Spawn" { "windows" "24" + "windows64" "24" "linux" "25" - "mac" "25" + "linux64" "25" } "StartTouch" { - "windows" "102" - "linux" "103" - "mac" "103" + "windows" "106" + "windows64" "106" + "linux" "107" + "linux64" "107" } "Think" { "windows" "49" + "windows64" "49" "linux" "50" - "mac" "50" + "linux64" "50" } "Touch" { - "windows" "103" - "linux" "104" - "mac" "104" + "windows" "107" + "windows64" "107" + "linux" "108" + "linux64" "108" } "TraceAttack" { - "windows" "62" - "linux" "63" - "mac" "63" + "windows" "66" + "windows64" "66" + "linux" "67" + "linux64" "67" } "Use" { - "windows" "100" - "linux" "101" - "mac" "101" + "windows" "104" + "windows64" "104" + "linux" "105" + "linux64" "105" } "VPhysicsUpdate" { "windows" "161" + "windows64" "161" "linux" "162" - "mac" "162" + "linux64" "162" } "Weapon_CanSwitchTo" { - "windows" "274" - "linux" "275" - "mac" "275" + "windows" "277" + "windows64" "277" + "linux" "278" + "linux64" "278" } "Weapon_CanUse" { - "windows" "268" - "linux" "269" - "mac" "269" + "windows" "271" + "windows64" "271" + "linux" "272" + "linux64" "272" } "Weapon_Drop" { - "windows" "271" - "linux" "272" - "mac" "272" + "windows" "274" + "windows64" "274" + "linux" "275" + "linux64" "275" } "Weapon_Equip" { - "windows" "269" - "linux" "270" - "mac" "270" + "windows" "272" + "windows64" "272" + "linux" "273" + "linux64" "273" } "Weapon_Switch" { - "windows" "272" - "linux" "273" - "mac" "273" + "windows" "275" + "windows64" "275" + "linux" "276" + "linux64" "276" } } } diff --git a/gamedata/sdktools.games/game.nmrih.txt b/gamedata/sdktools.games/game.nmrih.txt index 3e46e91a..7819545d 100644 --- a/gamedata/sdktools.games/game.nmrih.txt +++ b/gamedata/sdktools.games/game.nmrih.txt @@ -10,19 +10,10 @@ */ "Games" -{ - /* General GameRules */ - "#default" +{ + /* No More Room in Hell */ + "nmrih" { - "Offsets" - { - /* Offset into CreateGameRulesObject */ - "g_pGameRules" - { - "windows" "5" - } - } - "Signatures" { /* This signature sometimes has multiple matches, but this @@ -36,153 +27,181 @@ "CreateGameRulesObject" { "library" "server" - "windows" "\x55\x8B\xEC\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x6A\x01" + "windows" "\x55\x8B\xEC\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x6A\x01\xFF\x50\x34" + "windows64" "\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x30\x48\x8B\xF9\x48\x8B\x0D\xD4\xA3\x75\x00" } + "g_pGameRules" { "library" "server" "linux" "@g_pGameRules" - "mac" "@g_pGameRules" + "linux64" "@g_pGameRules" } - } - } - /* CBaseEntityOutput::FireOutput */ - "#default" - { - "Signatures" - { + /* CBaseEntityOutput::FireOutput */ "FireOutput" { "library" "server" "windows" "\x55\x8B\xEC\x81\xEC\x24\x01\x00\x00\x53\x8B\x5D\x20\x8B\xC1\x56\x57" + "windows64" "\x4C\x8B\xDC\x55\x41\x55\x41\x56\x41\x57\x49\x8D\xAB\xD8\xFE\xFF\xFF" "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" - "mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" } - } - } - /* CBaseAnimating::LookupAttachment */ - "#default" - { - "Signatures" - { + /* CBaseAnimating::LookupAttachment */ "LookupAttachment" { "library" "server" - "windows" "\x55\x8B\xEC\x56\x8B\xF1\x80\xBE\x35\x03\x00\x00\x00\x75\x2A\x83\xBE\xA8\x04\x00\x00\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\x86\xA8\x04\x00\x00\x85\xC0\x74\x2A\x83\x38\x00\x74\x2A\xFF\x75\x08\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x08\x40" + "windows" "\x55\x8B\xEC\x56\x8B\xF1\x80\xBE\x31\x03\x00\x00\x00\x75\x2A\x83\xBE\x9C\x04\x00\x00\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\x86\x9C\x04\x00\x00\x85\xC0\x74\x2A\x83\x38\x00\x74\x2A\xFF\x75\x08\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x08\x40" + "windows64" "\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x20\x80\xB9\xF5\x03\x00\x00\x00\x48\x8B\xFA\x48\x8B\xD9\x75\x2A\x48\x83\xB9\xC8\x05\x00\x00\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x48\x85\xC0\x74\x2A\x48\x8B\xCB\xE8\x2A\x2A\x2A\x2A\x48\x8B\x8B\xC8\x05\x00\x00\x48\x85\xC9\x74\x2A\x48\x83\x39\x00\x74\x2A\x48\x8B\xD7\xE8" "linux" "@_ZN14CBaseAnimating16LookupAttachmentEPKc" - "mac" "@_ZN14CBaseAnimating16LookupAttachmentEPKc" } } - } - - /* No More Room in Hell */ - "nmrih" - { + "Offsets" { + /* Offset into CreateGameRulesObject */ + "g_pGameRules" + { + "windows" "5" + "windows64" "16" + } + "SetOwnerEntity" { "windows" "18" + "windows64" "18" "linux" "19" - "mac" "19" + "linux64" "19" } + "GiveNamedItem" { - "windows" "420" - "linux" "421" - "mac" "421" + "windows" "424" + "windows64" "424" + "linux" "425" + "linux64" "425" } + "RemovePlayerItem" { - "windows" "278" - "linux" "279" - "mac" "279" + "windows" "281" + "windows64" "281" + "linux" "282" + "linux64" "282" } + "Weapon_GetSlot" { - "windows" "276" - "linux" "277" - "mac" "277" + "windows" "279" + "windows64" "279" + "linux" "280" + "linux64" "280" } + "Ignite" { - "windows" "214" - "linux" "215" - "mac" "215" + // TODO: This appears to be off by one and calling IgniteLifetime. + // But subtracting one to call Ignite instead results in a crash.. + "windows" "218" + "windows64" "218" + "linux" "219" + "linux64" "219" } + "Extinguish" { - "windows" "218" - "linux" "219" - "mac" "219" + "windows" "221" + "windows64" "221" + "linux" "222" + "linux64" "222" } + "Teleport" { - "windows" "112" - "linux" "113" - "mac" "113" + "windows" "116" + "windows64" "116" + "linux" "117" + "linux64" "117" } + "CommitSuicide" { - "windows" "459" - "linux" "459" - "mac" "459" + "windows" "462" + "windows64" "462" + "linux" "463" + "linux64" "463" } + "GetVelocity" { "windows" "144" + "windows64" "144" "linux" "145" - "mac" "145" + "linux64" "145" } + "EyeAngles" { "windows" "135" + "windows64" "135" "linux" "136" - "mac" "136" + "linux64" "136" } + "AcceptInput" { "windows" "38" + "windows64" "38" "linux" "39" - "mac" "39" + "linux64" "39" } + "SetEntityModel" { "windows" "26" + "windows64" "26" "linux" "27" - "mac" "27" + "linux64" "27" } + "WeaponEquip" { - "windows" "269" - "linux" "270" - "mac" "270" + "windows" "272" + "windows64" "272" + "linux" "273" + "linux64" "273" } + "Activate" { "windows" "35" + "windows64" "35" "linux" "36" - "mac" "36" + "linux64" "36" } + "PlayerRunCmd" { - "windows" "438" - "linux" "439" - "mac" "439" + "windows" "442" + "windows64" "442" + "linux" "443" + "linux64" "443" } + "GiveAmmo" { - "windows" "260" - "linux" "260" - "mac" "260" + "windows" "263" + "windows64" "263" + "linux" "263" + "linux64" "263" } + "GetAttachment" { - "windows" "210" - "linux" "211" - "mac" "211" + "windows" "213" + "windows64" "213" + "linux" "214" + "linux64" "214" } }