From 6470222a0626927df046a4cb13e2c77c52f10aba Mon Sep 17 00:00:00 2001 From: Nicholas Hastings <skamonkey@gmail.com> Date: Wed, 7 Dec 2011 20:17:34 -0500 Subject: [PATCH] Added gamedata support for No More Room in Hell (bug 5162). --- gamedata/core.games/common.games.txt | 1 + gamedata/core.games/engine.ep2.txt | 1 + gamedata/sdktools.games/engine.ep2.txt | 1 + gamedata/sdktools.games/game.nmrih.txt | 137 +++++++++++++++++++++++ gamedata/sdktools.games/master.games.txt | 4 + 5 files changed, 144 insertions(+) create mode 100644 gamedata/sdktools.games/game.nmrih.txt diff --git a/gamedata/core.games/common.games.txt b/gamedata/core.games/common.games.txt index 03f9b1d5..0628e527 100644 --- a/gamedata/core.games/common.games.txt +++ b/gamedata/core.games/common.games.txt @@ -217,6 +217,7 @@ "game" "nucleardawn" "game" "hl2ctf" "game" "ag2" + "game" "nmrih" } "Keys" diff --git a/gamedata/core.games/engine.ep2.txt b/gamedata/core.games/engine.ep2.txt index a89c72b3..dea9219d 100644 --- a/gamedata/core.games/engine.ep2.txt +++ b/gamedata/core.games/engine.ep2.txt @@ -29,6 +29,7 @@ "game" "fistful_of_frags" "game" "cspromod" "game" "ag2" + "game" "nmrih" } "Offsets" diff --git a/gamedata/sdktools.games/engine.ep2.txt b/gamedata/sdktools.games/engine.ep2.txt index f9b98ce5..2fb5edfa 100644 --- a/gamedata/sdktools.games/engine.ep2.txt +++ b/gamedata/sdktools.games/engine.ep2.txt @@ -110,6 +110,7 @@ "game" "fistful_of_frags" "game" "cspromod" "game" "ag2" + "game" "nmrih" } "Offsets" diff --git a/gamedata/sdktools.games/game.nmrih.txt b/gamedata/sdktools.games/game.nmrih.txt new file mode 100644 index 00000000..8b8fbf45 --- /dev/null +++ b/gamedata/sdktools.games/game.nmrih.txt @@ -0,0 +1,137 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your SourceMod install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after SM's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod) + */ + +"Games" +{ + /* No More Room in Hell 1.02 */ + "nmrih" + { + "Offsets" + { + "GiveNamedItem" + { + "windows" "361" + "linux" "362" + } + "RemovePlayerItem" + { + "windows" "240" + "linux" "241" + } + "Weapon_GetSlot" + { + "windows" "238" + "linux" "239" + } + "Ignite" + { + "windows" "195" + "linux" "196" + } + "Extinguish" + { + "windows" "199" + "linux" "200" + } + "Teleport" + { + "windows" "102" + "linux" "103" + } + "CommitSuicide" + { + "windows" "402" + "linux" "402" + } + "GetVelocity" + { + "windows" "132" + "linux" "133" + } + "EyeAngles" + { + "windows" "124" + "linux" "125" + } + "AcceptInput" + { + "windows" "34" + "linux" "35" + } + "SetEntityModel" + { + "windows" "23" + "linux" "24" + } + "WeaponEquip" + { + "windows" "231" + "linux" "232" + } + "Activate" + { + "windows" "31" + "linux" "32" + } + "PlayerRunCmd" + { + "windows" "381" + "linux" "382" + } + + /* Offset into CBaseTempEntity constructor (vs2010 moved it!) */ + "s_pTempEntities" + { + "windows" "19" + } + "GetTEName" + { + "windows" "4" + "linux" "4" + } + "GetTENext" + { + "windows" "8" + "linux" "8" + } + "TE_GetServerClass" + { + "windows" "0" + "linux" "0" + } + } + "Signatures" + { + "CBaseTempEntity" + { + "library" "server" + "windows" "\x55\x8B\xEC\x8B\xC1\x8B\x2A\x2A\xC7\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\x8B\x15\x2A\x2A\x2A\x2A\x89" + } + "s_pTempEntities" + { + "library" "server" + "linux" "@_ZN15CBaseTempEntity15s_pTempEntitiesE" + } + "FindEntityByClassname" + { + "library" "server" + "windows" "\x55\x8B\xEC\x53\x56\x8B\xF1\x8B\x2A\x2A\x57\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\xFF\xD2\x8B\x00\x25\x2A\x2A\x2A\x2A\x40\x03\xC0\x8B\x3C\xC6\xEB\x2A\x8B\xBE\x2A\x2A\x2A\x2A\x85\xFF\x74" + "linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc" + } + "FireOutput" + { + "library" "server" + "windows" "\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\x53\x56\x8B\x2A\x2A\x57\x89" + "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" + } + } + } +} diff --git a/gamedata/sdktools.games/master.games.txt b/gamedata/sdktools.games/master.games.txt index c1d66dab..eee91a59 100644 --- a/gamedata/sdktools.games/master.games.txt +++ b/gamedata/sdktools.games/master.games.txt @@ -209,4 +209,8 @@ { "game" "ag2" } + "game.nmrih.txt" + { + "game" "nmrih" + } }