From e135eff1b07af6739a1455ca9b09c1342d37478f Mon Sep 17 00:00:00 2001 From: PerfectLaugh Date: Tue, 19 Nov 2019 11:18:28 +0800 Subject: [PATCH] Fix CSGO Update crash (11/19/2019) (#1125) * Fix CSGO Update crash (11/19/2019) We know what happened when Valve do something big. Not tested on Linux * Fix RoundRespawn on Windows * Fix TerminateRound on Linux x86 * Comment out Linux x64 part of TerminateRound Better leave blank here. (cherry picked from commit bef8562de58cc25a52266cd51f92c74d62f26db1) --- gamedata/sdktools.games/engine.csgo.txt | 24 ++++++++++++------------ gamedata/sm-cstrike.games/game.csgo.txt | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/gamedata/sdktools.games/engine.csgo.txt b/gamedata/sdktools.games/engine.csgo.txt index 1d0de848ca..0825f5b67e 100644 --- a/gamedata/sdktools.games/engine.csgo.txt +++ b/gamedata/sdktools.games/engine.csgo.txt @@ -244,10 +244,10 @@ { "GiveNamedItem" { - "windows" "456" - "linux" "457" - "linux64" "457" - "mac64" "457" + "windows" "457" + "linux" "458" + "linux64" "458" + "mac64" "458" } "RemovePlayerItem" { @@ -286,10 +286,10 @@ } "CommitSuicide" { - "windows" "506" - "linux" "506" - "linux64" "506" - "mac64" "506" + "windows" "507" + "linux" "507" + "linux64" "507" + "mac64" "507" } "GetVelocity" { @@ -335,10 +335,10 @@ } "PlayerRunCmd" { - "windows" "476" - "linux" "477" - "linux64" "477" - "mac64" "477" + "windows" "477" + "linux" "478" + "linux64" "478" + "mac64" "478" } "GiveAmmo" { diff --git a/gamedata/sm-cstrike.games/game.csgo.txt b/gamedata/sm-cstrike.games/game.csgo.txt index a8790aa418..ef4a027a31 100644 --- a/gamedata/sm-cstrike.games/game.csgo.txt +++ b/gamedata/sm-cstrike.games/game.csgo.txt @@ -107,7 +107,7 @@ "RoundRespawn" { "library" "server" - "windows" "\x55\x8B\xEC\x83\xEC\x0C\x53\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A\x57\x8B\x01" + "windows" "\x55\x8B\xEC\x83\xEC\x0C\x53\x56\x57\x8B\xF9\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x01" "linux" "\x55\x89\xE5\x57\x56\x53\x83\xEC\x4C\xA1\x2A\x2A\x2A\x2A\x8B\x5D\x08\x89\x04\x24" "linux64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x53\x48\x89\xFB\x48\x83\xEC\x18\x4C\x8B\x25\x85\x17\xB4\x00" "mac64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x54\x53\x48\x83\xEC\x10\x49\x89\xFC\x4C\x8D\x3D\xD7\xB9\x90\x00" @@ -140,8 +140,8 @@ { "library" "server" "windows" "\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x2A\x53\x8B\xD9\xF3\x0F\x2A\x2A\x2A\x2A\x56\x57\x89\x2A\x2A\x2A\x83\xBB" - "linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\xBC\x00\x00\x00\x8B\x7D\x08\x8B\x9F" - "linux64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x49\x89\xFE\x41\x55\x41\x54\x53\x48\x81\xEC\x98\x00\x00\x00\x89\xB5\x68\xFF\xFF\xFF" + "linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\xBC\x00\x00\x00\x8B\x7D\x08\x8B\x87\xB4\x0B\x00\x00" + //"linux64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x49\x89\xFE\x41\x55\x41\x54\x53\x48\x81\xEC\x98\x00\x00\x00\x89\xB5\x68\xFF\xFF\xFF" "mac64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x53\x48\x81\xEC\x08\x01\x00\x00\x41\x89\xF6" } //In CS:GO this is actually CCSGameRules::CheckRestartRound(void) but to keep same gamedata as cs:s.