From d484979fe8127adf2190860b990a1da378b292aa Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 8 Feb 2010 20:10:24 -0800 Subject: [PATCH] Fixed CreateEntityByName for Insurgency (bug 4180, r=dvander). --- gamedata/sdktools.games/engine.ep1.txt | 2 -- gamedata/sdktools.games/game.insurgency.txt | 25 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/gamedata/sdktools.games/engine.ep1.txt b/gamedata/sdktools.games/engine.ep1.txt index 17b7c4b2..8dad899a 100644 --- a/gamedata/sdktools.games/engine.ep1.txt +++ b/gamedata/sdktools.games/engine.ep1.txt @@ -79,7 +79,6 @@ "game" "hl2mp" "game" "ship" "game" "!Dystopia" - "game" "insurgency" "game" "pvkii" "game" "sourceforts" "game" "FortressForever" @@ -158,7 +157,6 @@ { "game" "cstrike" "game" "hl2mp" - "game" "insurgency" "game" "pvkii" "game" "sourceforts" "game" "synergy" diff --git a/gamedata/sdktools.games/game.insurgency.txt b/gamedata/sdktools.games/game.insurgency.txt index f9ffdb1d..59c0b944 100644 --- a/gamedata/sdktools.games/game.insurgency.txt +++ b/gamedata/sdktools.games/game.insurgency.txt @@ -82,9 +82,34 @@ "windows" "288" "linux" "289" } + "g_pGameRules" + { + "windows" "2" + } } "Signatures" { + "Offsets" + { + /* Offset into CreateGameRulesObject */ + "g_pGameRules" + { + "windows" "2" + } + } + + "Signatures" + { + "CreateGameRulesObject" + { + "library" "server" + "windows" "\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x6A\x01\xFF\x50" + } + "g_pGameRules" + { + "library" "server" + "linux" "@g_pGameRules" + } "FireOutput" { "library" "server"