From cb83a307ecddb5c3d5a58dc57344f4ebed8d50b1 Mon Sep 17 00:00:00 2001 From: awillinger Date: Fri, 18 Aug 2017 15:06:31 +0200 Subject: [PATCH] Fix (parts of) CS:GO gamedata (#656) * Fix SDKTools gamedata (thanks to Rodya) * Fix CStrike Linux gamedata * Fix keys * Fix keys #2 * Adjust Windows offsets as well * Update CommitSuicide (from Bara) --- gamedata/sdktools.games/engine.csgo.txt | 24 ++++++++++++------------ gamedata/sm-cstrike.games/game.csgo.txt | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gamedata/sdktools.games/engine.csgo.txt b/gamedata/sdktools.games/engine.csgo.txt index 366938a6..1e4baf74 100644 --- a/gamedata/sdktools.games/engine.csgo.txt +++ b/gamedata/sdktools.games/engine.csgo.txt @@ -219,9 +219,9 @@ { "GiveNamedItem" { - "windows" "449" - "linux" "450" - "mac" "450" + "windows" "450" + "linux" "451" + "mac" "451" } "RemovePlayerItem" { @@ -255,9 +255,9 @@ } "CommitSuicide" { - "windows" "499" - "linux" "499" - "mac" "499" + "windows" "500" + "linux" "500" + "mac" "500" } "GetVelocity" { @@ -297,15 +297,15 @@ } "PlayerRunCmd" { - "windows" "469" - "linux" "470" - "mac" "470" + "windows" "470" + "linux" "471" + "mac" "471" } "GiveAmmo" { - "windows" "275" - "linux" "276" - "mac" "276" + "windows" "276" + "linux" "277" + "mac" "277" } } } diff --git a/gamedata/sm-cstrike.games/game.csgo.txt b/gamedata/sm-cstrike.games/game.csgo.txt index 14e6efdf..d64adafa 100644 --- a/gamedata/sm-cstrike.games/game.csgo.txt +++ b/gamedata/sm-cstrike.games/game.csgo.txt @@ -58,7 +58,7 @@ "CCSPlayerInventoryOffset" { "windows" "55" - "linux" "87" + "linux" "97" "mac" "109" } "GetItemInLoadout" @@ -97,7 +97,7 @@ { "library" "server" "windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x7C\x01\x00\x00\x53\x56\x57\x6A\x00" - "linux" "\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x9C\x01\x00\x00\x0F\xB6\x55\x14" + "linux" "\x2A\x2A\x2A\x2A\x2A\x2A\x0F\xB6\x55\x14\x89\x75\xF8\x8B\x75\x08" } "CSWeaponDrop"//Wildcard first 6 bytes for CS:S DM (kept for backcompat with old SM versions) {