From 1ce828b6c84cc27eeb1c5ae71c38ab32ed08ad9c Mon Sep 17 00:00:00 2001 From: dysphie Date: Wed, 26 Jan 2022 15:51:37 -0300 Subject: [PATCH] Add NMRiH support for new collision and attachment natives (#1702) - Add "GetAttachment" offset - Add "SetOwnerEntity" offset - Add "LookupAttachment" signature --- gamedata/sdktools.games/game.nmrih.txt | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gamedata/sdktools.games/game.nmrih.txt b/gamedata/sdktools.games/game.nmrih.txt index ad69f10c..44d1c316 100644 --- a/gamedata/sdktools.games/game.nmrih.txt +++ b/gamedata/sdktools.games/game.nmrih.txt @@ -61,12 +61,33 @@ } } } + + /* CBaseAnimating::LookupAttachment */ + "#default" + { + "Signatures" + { + "LookupAttachment" + { + "library" "server" + "windows" "\x55\x8B\xEC\x56\x8B\xF1\x80\xBE\x31\x03\x00\x00\x00\x75\x2A\x83\xBE\xA4\x04\x00\x00\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\x86\xA4\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" + "linux" "@_ZN14CBaseAnimating16LookupAttachmentEPKc" + "mac" "@_ZN14CBaseAnimating16LookupAttachmentEPKc" + } + } + } /* No More Room in Hell */ "nmrih" { "Offsets" { + "SetOwnerEntity" + { + "windows" "18" + "linux" "19" + "mac" "19" + } "GiveNamedItem" { "windows" "420" @@ -157,6 +178,12 @@ "linux" "260" "mac" "260" } + "GetAttachment" + { + "windows" "210" + "linux" "211" + "mac" "211" + } } } }