Skip to content

Instantly share code, notes, and snippets.

@krisives
Created November 11, 2014 09:44
Show Gist options
  • Save krisives/defc03abf5f61c3e3a82 to your computer and use it in GitHub Desktop.
Save krisives/defc03abf5f61c3e3a82 to your computer and use it in GitHub Desktop.
/**
* 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"
{
/* General Temp Entities */
"#default"
{
"Offsets"
{
/* Offset into CBaseTempEntity constructor */
"s_pTempEntities"
{
"windows" "19"
}
"GetTEName"
{
"windows" "4"
"linux" "4"
"mac" "4"
}
"GetTENext"
{
"windows" "8"
"linux" "8"
"mac" "8"
}
"TE_GetServerClass"
{
"windows" "0"
"linux" "0"
"mac" "0"
}
}
"Signatures"
{
"CBaseTempEntity"
{
"library" "server"
"windows" "\x55\x8B\xEC\x8B\xC1\x8B\x4D\x2A\xC7\x00\x2A\x2A\x2A\x2A\x89\x48"
}
"s_pTempEntities"
{
"library" "server"
"linux" "@_ZN15CBaseTempEntity15s_pTempEntitiesE"
"mac" "@_ZN15CBaseTempEntity15s_pTempEntitiesE"
}
}
}
/* CGlobalEntityList */
"#default"
{
"Signatures"
{
/* Functions in CGlobalEntityList */
"FindEntityByClassname"
{
"library" "server"
"windows" "\x55\x8B\xEC\x53\x56\x8B\xF1\x8B\x4D\x2A\x57\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\xFF\xD2\x8B\x00\x25\xFF\x0F\x00\x00\x40\x03\xC0\x8B\x3C\xC6\xEB\x2A\x8B"
"linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
"mac" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
}
}
}
/* General GameRules */
"#default"
{
"Offsets"
{
/* Offset into CreateGameRulesObject */
"g_pGameRules"
{
"windows" "2"
}
}
"Signatures"
{
/* This signature sometimes has multiple matches, but this
* does not matter as g_pGameRules is involved in all of them.
* The same g_pGameRules offset applies to each match.
*
* Sometimes this block of bytes is at the beginning of the static
* CreateGameRulesObject function and sometimes it is in the middle
* of an entirely different function. This depends on the game.
*/
"CreateGameRulesObject"
{
"library" "server"
"windows" "\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2"
}
"g_pGameRules"
{
"library" "server"
"linux" "@g_pGameRules"
"mac" "@g_pGameRules"
}
}
}
/* CBaseEntityOutput::FireOutput */
"#default"
{
"Signatures"
{
"FireOutput"
{
"library" "server"
"windows" "\x55\x8B\xEC\x81\x2A\x2A\x2A\x2A\x2A\x53\x56\x8B\x71\x2A\x57\x89"
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
"mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
}
}
}
/* No More Room in Hell */
"nmrih"
{
"Offsets"
{
"GiveNamedItem"
{
"windows" "413"
"linux" "414"
"mac" "414"
}
"RemovePlayerItem"
{
"windows" "271"
"linux" "272"
"mac" "272"
}
"Weapon_GetSlot"
{
"windows" "269"
"linux" "270"
"mac" "270"
}
"Ignite"
{
"windows" "209"
"linux" "210"
"mac" "210"
}
"Extinguish"
{
"windows" "213"
"linux" "214"
"mac" "214"
}
"Teleport"
{
"windows" "109"
"linux" "110"
"mac" "110"
}
"CommitSuicide"
{
"windows" "452"
"linux" "452"
"mac" "452"
}
"GetVelocity"
{
"windows" "141"
"linux" "142"
"mac" "142"
}
"EyeAngles"
{
"windows" "132"
"linux" "133"
"mac" "133"
}
"AcceptInput"
{
"windows" "36"
"linux" "37"
"mac" "37"
}
"SetEntityModel"
{
"windows" "24"
"linux" "25"
"mac" "25"
}
"WeaponEquip"
{
"windows" "262"
"linux" "263"
"mac" "263"
}
"Activate"
{
"windows" "33"
"linux" "34"
"mac" "34"
}
"PlayerRunCmd"
{
"windows" "431"
"linux" "432"
"mac" "432"
}
"GiveAmmo"
{
"windows" "253"
"linux" "253"
"mac" "253"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment