Fix CS_GetWeaponPrice returning incorrect value for M4A1 in CS:GO

--HG--
extra : amend_source : b4fa218795b59a82f98c0c8142e3bf36161f88d6
This commit is contained in:
Ruben Gonzalez
2014-02-12 19:03:14 -05:00
parent c5f496670d
commit 162c69bfda
3 changed files with 101 additions and 10 deletions
+15 -2
View File
@@ -49,6 +49,19 @@
"linux" "41"
"mac" "22"
}
//Offset into HandleCommand_Buy_Internal
"CCSPlayerInventoryOffset"
{
"windows" "285"
"linux" "87"
"mac" "109"
}
"GetItemInLoadout"
{
"windows" "8"
"linux" "9"
"mac" "9"
}
}
"Signatures"
{
@@ -66,10 +79,10 @@
"linux" "@_ZN9CCSPlayer10SwitchTeamEi"
"mac" "@_ZN9CCSPlayer10SwitchTeamEi"
}
"HandleCommand_Buy_Internal"
"HandleCommand_Buy_Internal"//Wildcard first 6 bytes for getting address for weapon price.
{
"library" "server"
"windows" "\x55\x8B\xEC\x83\xE4\x2A\x81\xEC\x2A\x2A\x2A\x2A\x83\x3D\x2A\x2A\x2A\x2A\x00\x53\x56\x57\x8B\xF9"
"windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x2A\x2A\x2A\x2A\x83\x3D\x2A\x2A\x2A\x2A\x00\x53\x56\x57\x8B\xF9"
"linux" "@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKcib"
"mac" "@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKcib"
}