Added natives to CStrike ext to access assists/score in CSGO (bug 5525, r=asherkin).

This commit is contained in:
Nicholas Hastings
2012-12-15 14:36:52 -05:00
parent c0b91dd107
commit ba2915ce4e
5 changed files with 326 additions and 76 deletions
+56 -14
View File
@@ -42,13 +42,6 @@
"linux" "159"
"mac" "185"
}
//Offset into IncrementNumMVPs to find MVP count offset from player
"MVPCountOffset"
{
"windows" "46"
"linux" "47"
"mac" "61"
}
"ClanTagOffset"
{
"windows" "15"
@@ -115,13 +108,6 @@
"linux" "@_ZN12CCSGameRules17CheckRestartRoundEv"
"mac" "@_ZN12CCSGameRules17CheckRestartRoundEv"
}
"IncrementNumMVPs"
{
"library" "server"
"windows" "\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x8B\x50\x34\x81\xEC\x2A\x2A\x2A\x2A\x57\x8B\xF9\xB9\x2A\x2A\x2A\x2A\xFF\xD2\x85\xC0\x74"
"linux" "@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
"mac" "@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
}
"AliasToWeaponID"
{
"library" "server"
@@ -145,4 +131,60 @@
}
}
}
"csgo"
{
"Keys"
{
"AssistsBase" "m_iFrags"
}
"Offsets"
{
"Assists"
{
"windows" "4"
"linux" "4"
"mac" "4"
}
}
}
"csgo"
{
"Keys"
{
"CScoreBase" "m_iWeaponPurchasesThisRound"
}
"Offsets"
{
/* factors in 256 (size of m_iWeaponPurchasesThisRound array (int size * 64 maxplayers)) */
"CScore"
{
"windows" "276"
"linux" "276"
"mac" "276"
}
}
}
"csgo"
{
"Keys"
{
"MVPsBase" "m_iWeaponPurchasesThisRound"
}
"Offsets"
{
"MVPs"
{
/* factors in 256 (size of m_iWeaponPurchasesThisRound array (int size * 64 maxplayers)) */
"windows" "256"
"linux" "256"
"mac" "256"
}
}
}
}
+18 -12
View File
@@ -49,13 +49,6 @@
"linux" "57"
"mac" "481"
}
//Offset into IncrementNumMVPs to find MVP count offset from player
"MVPCountOffset"
{
"windows" "60"
"linux" "49"
"mac" "62"
}
}
"Signatures"
{
@@ -145,12 +138,25 @@
"linux" "@_ZN12CCSGameRules13CheckWinLimitEv"
"mac" "@_ZN12CCSGameRules5ThinkEv"
}
"IncrementNumMVPs"
}
}
"cstrike"
{
"Keys"
{
"MVPsBase" "m_bPlayerDominatingMe"
}
"Offsets"
{
"MVPs"
{
"library" "server"
"windows" "\x55\x8B\xEC\x83\xEC\x2A\x89\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x48\x2A\x89\x2A\x2A\x33\xD2\x83\x7D\x2A\x00\x0F\x95\xC2\x0F\xB6\xC2\x85\xC0\x74\x2A\x68"
"linux" "@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
"mac" "@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
/* factors in 66 (size of m_bPlayerDominatingMe array (bool size * (65 maxplayers + 1)))
... plus another 3 because alignment(?) lolidk */
"windows" "69"
"linux" "69"
"mac" "69"
}
}
}